IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2006, 12:25:31 PM (20 years ago)
Author:
gusciora
Message:

Misc code cleaning

File:
1 edited

Legend:

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

    r5841 r6186  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.86 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-12-24 00:33:17 $
     11 *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-01-23 22:25:31 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    212212
    213213    return (scalingFactors);
    214 }
    215 
    216 // XXX: Use a static array of Chebyshev polynomials.
    217 psPolynomial1D **p_psCreateChebyshevPolys(psS32 maxChebyPoly)
    218 {
    219     PS_ASSERT_INT_POSITIVE(maxChebyPoly, NULL);
    220     psPolynomial1D **chebPolys = NULL;
    221     psS32 i = 0;
    222     psS32 j = 0;
    223 
    224     chebPolys = (psPolynomial1D **) psAlloc(maxChebyPoly * sizeof(psPolynomial1D *));
    225     for (i = 0; i < maxChebyPoly; i++) {
    226         // XXX: verify this, poly nOrder/nTerms change.
    227         chebPolys[i] = psPolynomial1DAlloc(i, PS_POLYNOMIAL_ORD);
    228     }
    229 
    230     // Create the Chebyshev polynomials.
    231     // Polynomial i has i-th order.
    232     chebPolys[0]->coeff[0] = 1;
    233     chebPolys[1]->coeff[1] = 1;
    234     for (i = 2; i < maxChebyPoly; i++) {
    235         for (j = 0; j < (1 + chebPolys[i - 1]->nX); j++) {
    236             chebPolys[i]->coeff[j + 1] = 2 * chebPolys[i - 1]->coeff[j];
    237         }
    238         for (j = 0; j < (1 + chebPolys[i - 2]->nX); j++) {
    239             chebPolys[i]->coeff[j] -= chebPolys[i - 2]->coeff[j];
    240         }
    241     }
    242 
    243     return (chebPolys);
    244214}
    245215
     
    302272    // Determine how many Chebyshev polynomials
    303273    // are needed, then create them.
    304     // XXX: recorde or verify the poly order/nterm change
     274    // XXX: record or verify the poly order/nterm change
    305275    maxChebyPoly = coeffs->nX;
    306276    if (coeffs->nY > coeffs->nX) {
Note: See TracChangeset for help on using the changeset viewer.