Changeset 21183 for trunk/ppMerge/src/ppMergeMask.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeMask.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeMask.c
r18756 r21183 26 26 float smoothScale = psMetadataLookupF32(&mdok, config->arguments, "MASK.SMOOTH.SCALE"); // Radius to grow mask 27 27 28 ps MaskType markVal;29 ps MaskType maskValRaw;28 psImageMaskType markVal; 29 psImageMaskType maskValRaw; 30 30 if (!pmConfigMaskSetBits (&maskValRaw, &markVal, config)) { 31 31 psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values"); … … 34 34 35 35 char *maskOutName = psMetadataLookupStr (&mdok, config->arguments, "MASK.SET.VALUE"); 36 ps MaskType maskValOut = pmConfigMaskGet (maskOutName, config);36 psImageMaskType maskValOut = pmConfigMaskGet (maskOutName, config); 37 37 if (!maskValOut) { 38 38 psError (PS_ERR_UNKNOWN, true, "Undefined output mask bit value"); … … 137 137 int x = pixel % numCols; 138 138 int y = pixel / numCols; 139 if (mask && (mask->data.PS_TYPE_ MASK_DATA[y][x] & maskValRaw)) continue;140 if (outMask && (outMask->data.PS_TYPE_ MASK_DATA[y][x] & maskValOut)) continue;139 if (mask && (mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValRaw)) continue; 140 if (outMask && (outMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValOut)) continue; 141 141 if (!isfinite(image->data.F32[y][x])) continue; 142 142
Note:
See TracChangeset
for help on using the changeset viewer.
