Changeset 21183 for trunk/psphot/src/psphotOutput.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotOutput.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotOutput.c
r20237 r21183 74 74 for (int j = 0; j < source->pixels->numCols; j++) { 75 75 // skip masked points 76 if (source->maskObj->data. U8[i][j]) {76 if (source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[i][j]) { 77 77 continue; 78 78 } … … 87 87 source->pixels->data.F32[i][j], 88 88 1.0 / source->weight->data.F32[i][j], 89 source->maskObj->data. U8[i][j]);89 source->maskObj->data.PS_TYPE_IMAGE_MASK_DATA[i][j]); 90 90 } 91 91 } … … 237 237 238 238 // XXX add args as needed 239 bool psphotDumpPSFStars (pmReadout *readout, pmPSFtry *try, float radius, ps MaskType maskVal, psMaskType markVal) {239 bool psphotDumpPSFStars (pmReadout *readout, pmPSFtry *try, float radius, psImageMaskType maskVal, psImageMaskType markVal) { 240 240 241 241 psphotSaveImage (NULL, readout->image, "rawstars.fits"); … … 243 243 for (int i = 0; i < try->sources->n; i++) { 244 244 // masked for: bad model fit, outlier in parameters 245 if (try->mask->data. U8[i] & PSFTRY_MASK_ALL)245 if (try->mask->data.PS_TYPE_VECTOR_MASK_DATA[i] & PSFTRY_MASK_ALL) 246 246 continue; 247 247 … … 256 256 psImageKeepCircle (source->maskObj, x, y, radius, "OR", markVal); 257 257 pmModelSub (source->pixels, source->maskObj, source->modelPSF, PM_MODEL_OP_FULL, maskVal); 258 psImageKeepCircle (source->maskObj, x, y, radius, "AND", PS_NOT_ U8(markVal));258 psImageKeepCircle (source->maskObj, x, y, radius, "AND", PS_NOT_IMAGE_MASK(markVal)); 259 259 } 260 260 … … 264 264 265 265 // masked for: bad model fit, outlier in parameters 266 if (try->mask->data. U8[i] & PSFTRY_MASK_ALL) continue;266 if (try->mask->data.PS_TYPE_VECTOR_MASK_DATA[i] & PSFTRY_MASK_ALL) continue; 267 267 268 268 pmSource *source = try->sources->data[i];
Note:
See TracChangeset
for help on using the changeset viewer.
