IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

Location:
trunk/psLib/src/imageops
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageStats.c

    r1407 r1440  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-07 00:06:06 $
     12*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-09 23:34:58 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737    NOTE: verify that image/mask have the correct types, and sizes.
    3838 *****************************************************************************/
    39 psStats *psImageStats(psStats * stats, psImage * in, psImage * mask, int maskVal)
    40 {
    41     psVector *junkData = NULL;
    42     psVector *junkMask = NULL;
     39psStats* psImageStats(psStats* stats, psImage* in, psImage* mask, int maskVal)
     40{
     41    psVector* junkData = NULL;
     42    psVector* junkMask = NULL;
    4343
    4444    if (stats == NULL) {
     
    9595    NOTE: verify that image/mask have the, correct types and  sizes.
    9696 *****************************************************************************/
    97 psHistogram *psImageHistogram(psHistogram * out, psImage * in, psImage * mask, unsigned int maskVal)
    98 {
    99     psVector *junkData = NULL;
    100     psVector *junkMask = NULL;
     97psHistogram* psImageHistogram(psHistogram* out, psImage* in, psImage* mask, unsigned int maskVal)
     98{
     99    psVector* junkData = NULL;
     100    psVector* junkMask = NULL;
    101101
    102102    // NOTE: Verify this action.
     
    183183}
    184184
    185 psPolynomial1D **p_psCreateChebyshevPolys(int maxChebyPoly)
    186 {
    187     psPolynomial1D **chebPolys = NULL;
     185psPolynomial1D* *p_psCreateChebyshevPolys(int maxChebyPoly)
     186{
     187    psPolynomial1D* *chebPolys = NULL;
    188188    int i = 0;
    189189    int j = 0;
    190190
    191     chebPolys = (psPolynomial1D **) psAlloc(maxChebyPoly * sizeof(psPolynomial1D *));
     191    chebPolys = (psPolynomial1D* *) psAlloc(maxChebyPoly * sizeof(psPolynomial1D* ));
    192192    for (i = 0; i < maxChebyPoly; i++) {
    193193        chebPolys[i] = psPolynomial1DAlloc(i + 1);
     
    224224        over all pixels (x,y) in the image.
    225225 *****************************************************************************/
    226 psPolynomial2D *psImageFitPolynomial(const psImage * input, psPolynomial2D * coeffs)
     226psPolynomial2D* psImageFitPolynomial(const psImage* input, psPolynomial2D* coeffs)
    227227{
    228228    int x = 0;
     
    231231    int j = 0;
    232232    float **sums = NULL;
    233     psPolynomial1D **chebPolys = NULL;
     233    psPolynomial1D* *chebPolys = NULL;
    234234    int maxChebyPoly = 0;
    235235    float *cScalingFactors = NULL;
     
    327327 
    328328 *****************************************************************************/
    329 int psImageEvalPolynomial(const psImage * input, const psPolynomial2D * coeffs)
     329int psImageEvalPolynomial(const psImage* input, const psPolynomial2D* coeffs)
    330330{
    331331    int x = 0;
     
    334334    int j = 0;
    335335    float **sums = NULL;
    336     psPolynomial1D **chebPolys = NULL;
     336    psPolynomial1D* *chebPolys = NULL;
    337337    int maxChebyPoly = 0;
    338338    float *cScalingFactors = NULL;
  • trunk/psLib/src/imageops/psImageStats.h

    r1426 r1440  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-09 22:44:25 $
     12*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-09 23:34:58 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2828
    2929/// This routine must determine the various statistics for the image.
    30 psStats *psImageStats(psStats * stats,  ///< defines statistics to be calculated
    31                       psImage * in,     ///< image (or subimage) to calculate stats
    32                       psImage * mask,   ///< mask data for image (NULL ok)
     30psStats* psImageStats(psStats* stats,  ///< defines statistics to be calculated
     31                      psImage* in,     ///< image (or subimage) to calculate stats
     32                      psImage* mask,   ///< mask data for image (NULL ok)
    3333                      int maskVal);     ///< mask Mask for mask
    3434
    35 psHistogram *psImageHistogram(psHistogram * out,        ///< input histogram description & target
    36                               psImage * in,     ///< Image data to be histogramed.
    37                               psImage * mask,   ///< mask data for image (NULL ok)
     35psHistogram* psImageHistogram(psHistogram* out,        ///< input histogram description & target
     36                              psImage* in,     ///< Image data to be histogramed.
     37                              psImage* mask,   ///< mask data for image (NULL ok)
    3838                              unsigned int maskVal);    ///< mask Mask for mask
    3939
    4040/// Fit a 2-D polynomial surface to an image.
    41 psPolynomial2D *psImageFitPolynomial(const psImage * input,     ///< image to fit
    42                                      psPolynomial2D * coeffs    ///< coefficient structure carries in
     41psPolynomial2D* psImageFitPolynomial(const psImage* input,     ///< image to fit
     42                                     psPolynomial2D* coeffs    ///< coefficient structure carries in
    4343                                     // desired terms & target
    4444                                    );
    4545
    4646/// Evaluate a 2-D polynomial surface to image pixels.
    47 int psImageEvalPolynomial(const psImage * input,        ///< image to fit
    48                           const psPolynomial2D * coeffs ///< coefficient structure carries in desired terms
     47int psImageEvalPolynomial(const psImage* input,        ///< image to fit
     48                          const psPolynomial2D* coeffs ///< coefficient structure carries in desired terms
    4949                         );
    5050
Note: See TracChangeset for help on using the changeset viewer.