Changeset 13900 for trunk/psphot/src/psphotImageMedian.c
- Timestamp:
- Jun 19, 2007, 4:40:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotImageMedian.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotImageMedian.c
r13866 r13900 40 40 // generate the median in NxN boxes, clipping heavily 41 41 // linear interpolation to generate full-scale model 42 bool psphotImageMedian (pmConfig *config, const pmFPAview *view )42 bool psphotImageMedian (pmConfig *config, const pmFPAview *view, psMaskType maskVal) 43 43 { 44 44 bool status = true; … … 195 195 // XXX don't bother trying if there are no valid pixels... 196 196 197 if (psImageBackground(stats, subset, submask, 0xff, rng)) {197 if (psImageBackground(stats, subset, submask, maskVal, rng)) { 198 198 if (stats->options & PS_STAT_ROBUST_QUARTILE) { 199 199 modelData[iy][ix] = stats->robustMedian; … … 205 205 psStatsOptions currentOptions = stats->options; 206 206 stats->options = PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV; 207 if (!psImageBackground(stats, subset, submask, 0xff, rng)) {207 if (!psImageBackground(stats, subset, submask, maskVal, rng)) { 208 208 psLogMsg ("psphot", PS_LOG_WARN, "Failed to estimate background using ROBUST_MEDIAN for " 209 209 "(%dx%d, (row0,col0) = (%d,%d)",
Note:
See TracChangeset
for help on using the changeset viewer.
