Changeset 24905
- Timestamp:
- Jul 22, 2009, 9:52:11 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmPattern.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmPattern.c
r24903 r24905 48 48 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); // Random number generator 49 49 if (!psImageBackground(stats, NULL, ro->image, ro->mask, maskVal, rng)) { 50 psWarning("Unable to calculate statistics on readout."); 50 psWarning("Unable to calculate statistics on readout; masking entire readout."); 51 psErrorClear(); 51 52 psFree(stats); 52 53 psFree(rng); 53 return false; 54 psImageInit(image, NAN); 55 if (mask) { 56 psBinaryOp(mask, mask, "|", psScalarAlloc(maskBad, PS_TYPE_IMAGE_MASK)); 57 } 58 if (ro->variance) { 59 psImageInit(image, NAN); 60 } 61 return true; 54 62 } 55 63 float lower = stats->robustMedian - thresh * stats->robustStdev; // Lower bound for data
Note:
See TracChangeset
for help on using the changeset viewer.
