Changeset 9595 for trunk/psphot/src/psphotGrowthCurve.c
- Timestamp:
- Oct 16, 2006, 4:24:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotGrowthCurve.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotGrowthCurve.c
r9529 r9595 5 5 // the 'center' option 6 6 7 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf) { 7 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf) { 8 8 9 9 // bool status; … … 15 15 pmModel *modelRef = pmModelAlloc(psf->type); 16 16 17 // use center of the image 17 // use center of the image 18 18 xc = 0.5*readout->image->numCols + readout->image->col0; 19 19 yc = 0.5*readout->image->numRows + readout->image->row0; … … 41 41 for (int i = 0; i < psf->growth->radius->n; i++) { 42 42 43 psImageInit (image, 0.0);43 psImageInit (image, 0.0); 44 44 45 radius = psf->growth->radius->data.F32[i];45 radius = psf->growth->radius->data.F32[i]; 46 46 47 psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK);47 psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK); 48 48 49 pmModelAdd (image, mask, model, false, false);49 pmModelAdd (image, mask, model, false, false); 50 50 51 pmSourcePhotometryAper (&apMag, model, image, mask);51 pmSourcePhotometryAper (&apMag, model, image, mask); 52 52 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; 55 55 } 56 56 … … 62 62 63 63 psLogMsg ("psphot.growth", 4, "GrowthCurve : apLoss : %f\n", psf->growth->apLoss); 64 64 65 65 psFree (view); 66 66 psFree (image);
Note:
See TracChangeset
for help on using the changeset viewer.
