Changeset 21183 for trunk/psModules/src/detrend/pmRemnance.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmRemnance.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmRemnance.c
r20669 r21183 13 13 14 14 bool pmRemnance(pmReadout *ro, ///< Readout with input image 15 ps MaskType maskVal, ///< Value of mask16 ps MaskType maskRem, ///< Value to give remance15 psImageMaskType maskVal, ///< Value of mask 16 psImageMaskType maskRem, ///< Value to give remance 17 17 int size, ///< Size of accumulation patches 18 18 float threshold ///< Threshold for masking … … 23 23 PM_ASSERT_READOUT_MASK(ro, false); 24 24 25 psImage *image = ro->image, *mask = ro->mask; // Mask and image from readout 25 psImage *image = ro->image; 26 psImage *mask = ro->mask; // Mask and image from readout 27 26 28 int numCols = image->numCols, numRows = image->numRows; // Size of image 27 29 … … 33 35 psErrorClear(); 34 36 psWarning("Unable to calculate image statistics: masking entire readout."); 35 psBinaryOp(mask, mask, "|", psScalarAlloc(maskRem, PS_TYPE_ MASK));37 psBinaryOp(mask, mask, "|", psScalarAlloc(maskRem, PS_TYPE_IMAGE_MASK)); 36 38 psFree(stats); 37 39 psFree(rng); … … 57 59 } 58 60 for (int y = min; y < max; y++) { 59 if (mask->data.PS_TYPE_ MASK_DATA[y][x] & maskVal) {61 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskVal) { 60 62 continue; 61 63 } … … 84 86 } 85 87 for (int y = 0; y < maxMask; y++) { 86 mask->data.PS_TYPE_ MASK_DATA[y][x] |= maskRem;88 mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] |= maskRem; 87 89 } 88 90 numMasked += maxMask;
Note:
See TracChangeset
for help on using the changeset viewer.
