Changeset 18440
- Timestamp:
- Jul 9, 2008, 10:11:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotWeightBias.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotWeightBias.c
r13035 r18440 6 6 // XXX eventually, we should be able to do this with linear fitting... 7 7 // XXX UNUSED 8 bool psphotWeightBias (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf ) {8 bool psphotWeightBias (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, psMaskType markVal) { 9 9 10 10 int Nfit = 0; … … 66 66 67 67 // extend source radius as needed 68 psphotCheckRadiusPSF (readout, source, PSF );68 psphotCheckRadiusPSF (readout, source, PSF, markVal); 69 69 70 70 x = PSF->params->data.F32[2]; … … 72 72 73 73 // fit PSF model (set/unset the pixel mask) 74 psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "OR", PM_MASK_MARK);74 psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "OR", markVal); 75 75 pmSourceFitModel (source, PSF, PM_SOURCE_FIT_NORM); 76 psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "AND", PS_NOT_U8( PM_MASK_MARK));76 psImageKeepCircle (source->mask, x, y, PSF->radiusFit, "AND", PS_NOT_U8(markVal)); 77 77 78 78 // re-subtract PSF for object, leave local sky
Note:
See TracChangeset
for help on using the changeset viewer.
