IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2006, 4:24:03 PM (20 years ago)
Author:
Paul Price
Message:

NOT_U8 and NOT_U16 macros were moved into psLib (and renamed with PS_ prefix). Updating files that use these macros so that they compile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotGrowthCurve.c

    r9529 r9595  
    55//     the 'center' option
    66
    7 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf) { 
     7bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf) {
    88
    99    // bool status;
     
    1515    pmModel *modelRef = pmModelAlloc(psf->type);
    1616
    17     // use center of the image 
     17    // use center of the image
    1818    xc = 0.5*readout->image->numCols + readout->image->col0;
    1919    yc = 0.5*readout->image->numRows + readout->image->row0;
     
    4141    for (int i = 0; i < psf->growth->radius->n; i++) {
    4242
    43         psImageInit (image, 0.0);
     43        psImageInit (image, 0.0);
    4444
    45         radius = psf->growth->radius->data.F32[i];
     45        radius = psf->growth->radius->data.F32[i];
    4646
    47         psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK);
     47        psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK);
    4848
    49         pmModelAdd (image, mask, model, false, false);
     49        pmModelAdd (image, mask, model, false, false);
    5050
    51         pmSourcePhotometryAper (&apMag, model, image, mask);
     51        pmSourcePhotometryAper (&apMag, model, image, mask);
    5252
    53         psImageKeepCircle (mask, xc, yc, radius, "AND", NOT_U8(PM_MASK_MARK));
    54         psf->growth->apMag->data.F32[i] = apMag;
     53        psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(PM_MASK_MARK));
     54        psf->growth->apMag->data.F32[i] = apMag;
    5555    }
    5656
     
    6262
    6363    psLogMsg ("psphot.growth", 4, "GrowthCurve : apLoss : %f\n", psf->growth->apLoss);
    64    
     64
    6565    psFree (view);
    6666    psFree (image);
Note: See TracChangeset for help on using the changeset viewer.