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/math/psPolynomialUtils.c

    r15049 r15254  
    159159
    160160    psPolynomial2D *poly = psPolynomial2DAlloc (PS_POLYNOMIAL_ORD, 2, 2);
    161     poly->mask[2][2] = 1;
    162     poly->mask[1][2] = 1;
    163     poly->mask[2][1] = 1;
     161    poly->coeffMask[2][2] = PS_POLY_MASK_SET;
     162    poly->coeffMask[1][2] = PS_POLY_MASK_SET;
     163    poly->coeffMask[2][1] = PS_POLY_MASK_SET;
    164164
    165165    poly->coeff[0][0] = Foo*(5.0/9.0) - (Fxp + Fxm)/3.0 - (Fyp + Fym)/3.0 ;
     
    212212    for (int i = 0; i < nXout + 1; i++) {
    213213        for (int j = 0; j < nYout + 1; j++) {
    214             out->mask[i][j] = poly->mask[i+1][j];
     214            out->coeffMask[i][j] = poly->coeffMask[i+1][j];
    215215            out->coeff[i][j] = poly->coeff[i+1][j] * (i+1);
    216216        }
     
    240240    for (int i = 0; i < nXout + 1; i++) {
    241241        for (int j = 0; j < nYout + 1; j++) {
    242             out->mask[i][j] = poly->mask[i][j+1];
     242            out->coeffMask[i][j] = poly->coeffMask[i][j+1];
    243243            out->coeff[i][j] = poly->coeff[i][j+1] * (j+1);
    244244        }
Note: See TracChangeset for help on using the changeset viewer.