Changeset 18555 for trunk/psphot/src/psphotRadiusChecks.c
- Timestamp:
- Jul 15, 2008, 10:25:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadiusChecks.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadiusChecks.c
r14655 r18555 7 7 // and a per-object radius is calculated) 8 8 9 bool psphotInitRadiusPSF(const psMetadata *recipe, 10 const pmModelType type) 11 { 9 bool psphotInitRadiusPSF(const psMetadata *recipe, const pmModelType type) { 10 12 11 bool status = true; 13 12 … … 20 19 21 20 // call this function whenever you (re)-define the PSF model 22 bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model )21 bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model, psMaskType markVal) 23 22 { 24 23 psF32 *PAR = model->params->data.F32; … … 47 46 48 47 // set the mask to flag the excluded pixels 49 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);48 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", markVal); 50 49 return status; 51 50 } 52 51 53 bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, float dR) {52 bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, psMaskType markVal, float dR) { 54 53 55 54 psF32 *PAR = model->params->data.F32; … … 69 68 70 69 // set the mask to flag the excluded pixels 71 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);70 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", markVal); 72 71 return status; 73 72 } … … 87 86 88 87 // call this function whenever you (re)-define the EXT model 89 bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model ) {88 bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model, psMaskType markVal) { 90 89 91 90 psF32 *PAR = model->params->data.F32; … … 102 101 103 102 // set the mask to flag the excluded pixels 104 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);103 psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", markVal); 105 104 return status; 106 105 }
Note:
See TracChangeset
for help on using the changeset viewer.
