Changeset 12451
- Timestamp:
- Mar 15, 2007, 1:36:14 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotImageMedian.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotImageMedian.c
r12436 r12451 63 63 } 64 64 65 psMetadataConfigPrint (stderr, recipe);66 67 65 // optionally set the sigma clipping 68 66 stats->clipSigma = psMetadataLookupF32 (&status, recipe, "SKY_CLIP_SIGMA"); 69 67 if (!status) { 70 stats->clipSigma = 1.0; 68 if ((stats->options & PS_STAT_FITTED_MEAN) || (stats->options & PS_STAT_FITTED_MEAN_V2)) { 69 stats->clipSigma = 1.0; 70 } else { 71 stats->clipSigma = 3.0; 72 } 71 73 } 72 74 … … 166 168 continue; 167 169 } 168 169 170 psImage *submask = psImageSubset (mask, region); 170 171 … … 177 178 // XXX psImageBackground will probably be renamed psImageStats 178 179 // XXX don't bother trying if there are no valid pixels... 179 if (psImageBackground(stats, subset, submask, 0xff, rng)) { 180 181 if (psImageBackground(stats, subset, submask, 0xff, rng)) { 180 182 if (stats->options & PS_STAT_ROBUST_QUARTILE) { 181 183 modelData[iy][ix] = stats->robustMedian;
Note:
See TracChangeset
for help on using the changeset viewer.
