Changeset 42148
- Timestamp:
- Mar 29, 2022, 3:03:37 PM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316/ppImage/src
- Files:
-
- 2 edited
-
ppImageOptions.c (modified) (2 diffs)
-
ppImageSetMaskBits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/ppImage/src/ppImageOptions.c
r41918 r42148 217 217 } 218 218 219 bool mdok; 219 220 int boxcar = psMetadataLookupS32(NULL, recipe, "OVERSCAN.BOXCAR"); 220 221 float gauss = psMetadataLookupF32(NULL, recipe, "OVERSCAN.GAUSS"); 222 float minValid = psMetadataLookupF32(&mdok, recipe, "OVERSCAN.MIN.VALID"); 223 if (!mdok) { minValid = 0.0; } 221 224 222 225 // Fill in the options … … 226 229 options->overscan->constant = psMetadataLookupBool(NULL, recipe, "OVERSCAN.CONSTANT"); 227 230 options->overscan->value = psMetadataLookupF32(NULL, recipe, "OVERSCAN.VALUE"); 231 options->overscan->minValid = minValid; 232 options->overscan->maskVal = 0x0001; 228 233 229 234 psFree(overscanStats); -
branches/eam_branches/ipp-20220316/ppImage/src/ppImageSetMaskBits.c
r37406 r42148 27 27 options->blankMask = pmConfigMaskGet("BLANK", config); 28 28 psAssert (options->blankMask, "blank mask not set"); 29 if (options->overscan) { 30 options->overscan->maskVal = options->blankMask; 31 } 29 32 30 33 // mask for saturated data (default to RANGE if not defined)
Note:
See TracChangeset
for help on using the changeset viewer.
