IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2007, 9:27:04 AM (19 years ago)
Author:
eugene
Message:

changed mask to coeffMask, define PS_POLY_MASK_FIT,SET; distinguish between coeffs masked for fitting (FIT) and masked for evaluation (SET)

File:
1 edited

Legend:

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

    r14924 r15254  
    1111 *  @author Eugene Magnier, IfA
    1212 *
    13  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2007-09-20 23:54:25 $
     13 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-10-09 19:25:44 $
    1515 *
    1616 *  Copyright 2007 Institute for Astronomy, University of Hawaii
     
    153153    // allocate a 2D polynomial to fit a quadratic to the valid neighbor pixels.
    154154    psPolynomial2D *poly = psPolynomial2DAlloc (PS_POLYNOMIAL_ORD, 2, 2);
    155     poly->mask[2][2] = 1;
    156     poly->mask[2][1] = 1;
    157     poly->mask[1][2] = 1;
     155    poly->coeffMask[2][2] = PS_POLY_MASK_SET;
     156    poly->coeffMask[2][1] = PS_POLY_MASK_SET;
     157    poly->coeffMask[1][2] = PS_POLY_MASK_SET;
    158158
    159159    for (int iy = 0; iy < state->numRows; iy++) {
     
    275275    // allocate a 2D polynomial to fit a quadratic to the valid neighbor pixels.
    276276    psPolynomial2D *poly2o = psPolynomial2DAlloc (PS_POLYNOMIAL_ORD, 2, 2);
    277     poly2o->mask[2][2] = 1;
    278     poly2o->mask[2][1] = 1;
    279     poly2o->mask[1][2] = 1;
     277    poly2o->coeffMask[2][2] = PS_POLY_MASK_SET;
     278    poly2o->coeffMask[2][1] = PS_POLY_MASK_SET;
     279    poly2o->coeffMask[1][2] = PS_POLY_MASK_SET;
    280280
    281281    // allocate a 2D polynomial to fit a plane to the valid neighbor pixels.
    282282    psPolynomial2D *poly1o = psPolynomial2DAlloc (PS_POLYNOMIAL_ORD, 1, 1);
    283     poly2o->mask[1][1] = 1;
     283    poly2o->coeffMask[1][1] = PS_POLY_MASK_SET;
    284284
    285285    for (int iy = 0; iy < state->numRows; iy++) {
Note: See TracChangeset for help on using the changeset viewer.