IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2005, 12:49:29 PM (21 years ago)
Author:
gusciora
Message:

Implementing the psPoly nOrder/nTerm switch.

File:
1 edited

Legend:

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

    r5090 r5096  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-09-22 02:47:16 $
     11 *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-09-22 22:49:29 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    349349    // Free the Chebyshev polynomials that were
    350350    // created in this routine.
    351     for (i = 0; i < maxChebyPoly; i++) {
     351    for (i = 0; i < maxChebyPoly + 1; i++) {
    352352        psFree(chebPolys[i]);
    353353    }
     
    453453        maxChebyPoly = coeffs->COOL_2D_nY;
    454454    }
    455     chebPolys = 1 + p_psCreateChebyshevPolys(maxChebyPoly);
     455    chebPolys = p_psCreateChebyshevPolys(maxChebyPoly + 1);
    456456
    457457    // Compute the sums[][] data structure.
     
    498498    // Free the Chebyshev polynomials that were
    499499    // created in this routine.
    500     for (i = 0; i < maxChebyPoly; i++) {
     500    for (i = 0; i < maxChebyPoly + 1; i++) {
    501501        psFree(chebPolys[i]);
    502502    }
     
    545545    }
    546546
    547     chebPolys = 1 + p_psCreateChebyshevPolys(maxChebyPoly);
     547    chebPolys = p_psCreateChebyshevPolys(maxChebyPoly + 1);
    548548
    549549    for (x = 0; x < input->numRows; x++) {
     
    574574    // created in this routine.
    575575    // XXX: Use static data structures here.
    576     for (i = 0; i < maxChebyPoly; i++) {
     576    for (i = 0; i < maxChebyPoly + 1; i++) {
    577577        psFree(chebPolys[i]);
    578578    }
Note: See TracChangeset for help on using the changeset viewer.