IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2005, 11:57:31 AM (21 years ago)
Author:
gusciora
Message:

Modified psSpline fitting function calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imsubtract/pmSubtractBias.c

    r5170 r5188  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-09-28 20:43:52 $
     8 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-09-29 21:57:30 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    236236        // Fit a spline to the old overscan vector.
    237237        mySpline = (psSpline1D *) fitSpec;
     238        // XXX: Does it make any sense to have a psSpline argument?
    238239        if (mySpline == NULL) {
    239240            mustFreeSpline = 1;
     
    242243        //
    243244        // NOTE: Since the X arg in the psVectorFitSpline1D() function is NULL,
    244         // splines enpoints will be from 0.0 to overscanVector->n-1.  Must scale
     245        // splines endpoints will be from 0.0 to overscanVector->n-1.  Must scale
    245246        // properly when doing the spline eval.
    246247        //
    247         mySpline = psVectorFitSpline1D(mySpline, NULL, overscanVector, NULL);
     248        //        mySpline = psVectorFitSpline1D(mySpline, NULL, overscanVector, NULL);
     249        mySpline = psVectorFitSpline1D(NULL, overscanVector);
    248250        if (mySpline == NULL) {
    249251            psError(PS_ERR_UNKNOWN, false, "ScaleOverscanVector()(2): Could not fit a spline to the psVector.\n");
     
    593595                }
    594596            } else if (fit == PM_FIT_SPLINE) {
     597                // XXX: This makes no sense
     598                // XXX: must free mySpline?
    595599                mySpline = (psSpline1D *) fitSpec;
    596                 mySpline = psVectorFitSpline1D(mySpline, NULL, overscanVector, NULL);
     600                mySpline = psVectorFitSpline1D(NULL, overscanVector);
    597601                if (mySpline == NULL) {
    598602                    psError(PS_ERR_UNKNOWN, false, "Could not fit a spline to overscan vector.  Returning in image.\n");
Note: See TracChangeset for help on using the changeset viewer.