Changeset 18492 for trunk/psModules/src/imcombine/pmPSFEnvelope.c
- Timestamp:
- Jul 11, 2008, 5:57:34 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
r16833 r18492 34 34 #define PEAK_FLUX 1.0e4 // Peak flux for each source 35 35 #define SKY_VALUE 0.0e0 // Sky value for fake image 36 #define WEIGHT_VAL 1.0 // Weighting for image 36 #define WEIGHT_VAL 10.0 // Weighting for image 37 #define WEIGHT_FACTOR 10.0 // Factor to multiply image by to get weighting 37 38 #define PSF_STATS PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV // Statistics options for measuring PSF 38 39 … … 199 200 psFree(envelope); 200 201 201 // XXX This seems the best way to set the weight image so that pixels aren't rejected as "insignificant" 202 readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "*", readout->image); 202 // XXX Setting the weight seems to be an art 203 // Can't set it too high so that pixels are rejected as insignificant 204 // Can't set it too low so that it's hard to get to the minimum 205 // Have also tried: 206 // *** readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "*", readout->image); 207 // *** readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "*", psScalarAlloc(WEIGHT_FACTOR, PS_TYPE_F32)); 208 readout->weight = (psImage*)psBinaryOp(NULL, readout->image, "+", psScalarAlloc(PS_SQR(WEIGHT_VAL), PS_TYPE_F32)); 203 209 readout->mask = psImageAlloc(numCols, numRows, PS_TYPE_MASK); 204 210 psImageInit(readout->mask, 0); … … 258 264 options->psfFieldYo = 0; 259 265 260 pmSourceFitModelInit (15, 0.01, WEIGHT_VAL, options->poissonErrorsPhotLMM);266 pmSourceFitModelInit(50, 0.01, WEIGHT_VAL, false); 261 267 262 268 pmPSFtry *try = pmPSFtryModel(fakes, modelName, options, 0, 0xff);
Note:
See TracChangeset
for help on using the changeset viewer.
