Changeset 19009 for trunk/psModules/src/imcombine/pmPSFEnvelope.c
- Timestamp:
- Aug 11, 2008, 12:38:55 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmPSFEnvelope.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmPSFEnvelope.c
r18788 r19009 146 146 // Get the radius 147 147 pmModel *model = pmModelFromPSFforXY(psf, x, y, PEAK_FLUX); // Model for source 148 float srcRadius = model->modelRadius(model->params, WEIGHT_VAL); // Radius for source148 float srcRadius = model->modelRadius(model->params, PS_SQR(WEIGHT_VAL)); // Radius for source 149 149 if (srcRadius > maxRadius) { 150 150 maxRadius = srcRadius; … … 167 167 } 168 168 psFree(fakeRO); 169 170 if (maxRadius > radius) { 171 maxRadius = radius; 172 } 169 173 170 174 #ifdef TESTING … … 215 219 // *** readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "*", readout->image); 216 220 // *** readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "*", psScalarAlloc(WEIGHT_FACTOR, PS_TYPE_F32)); 217 readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "+", psScalarAlloc( PS_SQR(WEIGHT_VAL), PS_TYPE_F32));221 readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "+", psScalarAlloc(WEIGHT_VAL, PS_TYPE_F32)); 218 222 readout->mask = psImageAlloc(numCols, numRows, PS_TYPE_MASK); 219 223 psImageInit(readout->mask, 0);
Note:
See TracChangeset
for help on using the changeset viewer.
