Changeset 12978 for branches/eam_02_branch/psphot/src/psphotRadiusChecks.c
- Timestamp:
- Apr 23, 2007, 4:54:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_02_branch/psphot/src/psphotRadiusChecks.c
r12792 r12978 25 25 bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model) 26 26 { 27 psF32 *PAR = model->params->data.F32; 28 29 // XXX do we have a better value for the sky noise level? not really... 27 30 pmMoments *moments = source->moments; 28 // do we have a better value for the sky noise level?29 // not really...30 31 31 32 // set the fit radius based on the object flux limit and the model … … 46 47 } 47 48 48 bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit); 49 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit); 50 51 // set the mask to flag the excluded pixels 52 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK); 49 53 return status; 50 54 } 51 55 52 56 bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, float dR) { 57 58 psF32 *PAR = model->params->data.F32; 53 59 54 60 pmMoments *moments = source->moments; … … 63 69 } 64 70 65 bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit); 71 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit); 72 73 // set the mask to flag the excluded pixels 74 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK); 66 75 return status; 67 76 } … … 86 95 bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model) { 87 96 97 psF32 *PAR = model->params->data.F32; 98 88 99 pmMoments *moments = source->moments; 89 100 if (moments == NULL) return false; … … 94 105 95 106 // redefine the pixels if needed 96 bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit); 107 bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit); 108 109 // set the mask to flag the excluded pixels 110 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK); 97 111 return status; 98 112 }
Note:
See TracChangeset
for help on using the changeset viewer.
