Changeset 35118 for trunk/ppBackground/src/ppBackgroundRestore.c
- Timestamp:
- Feb 7, 2013, 1:40:20 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ppBackground/src/ppBackgroundRestore.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppBackground/src/ppBackgroundRestore.c
r34813 r35118 35 35 36 36 bool ppBackgroundRestore(pmChip *chip, const pmChip *background, const pmChip *pattern, 37 const pmFPAview *oldView, pmConfig *config )37 const pmFPAview *oldView, pmConfig *config, psImageMaskType maskBad) 38 38 { 39 39 PS_ASSERT_PTR_NON_NULL(chip, false); … … 120 120 } 121 121 122 psImage *auxMask = psMetadataLookupPtr(NULL, ro->analysis, "EXPNUM"); 123 if (auxMask) { 124 if (auxMask->numCols != mask->numCols || auxMask->numRows != mask->numRows) { 125 psError(PPBACKGROUND_ERR_DATA, true, "auxiliary mask size (%d x %d) does not match input size (%d x %d)", 126 auxMask->numCols, auxMask->numRows, numCols, numRows); 127 return false; 128 } 129 // Arno's masks are floating point, fix later and zero means bad 130 #define AUXMASK_DATA F32 131 for (int y = 0; y < numRows; y++) { 132 for (int x = 0; x < numCols; x++) { 133 if (auxMask->data.AUXMASK_DATA[y][x] == 0) { 134 mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] |= maskBad; 135 } 136 } 137 } 138 } 139 140 122 141 ro->data_exists = true; 123 142 ro->parent->data_exists = true;
Note:
See TracChangeset
for help on using the changeset viewer.
