Changeset 41382 for trunk/ppSub/src/ppSubReadoutSubtract.c
- Timestamp:
- Jun 23, 2020, 3:29:09 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutSubtract.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutSubtract.c
r31435 r41382 33 33 bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images. 34 34 bool addPair = psMetadataLookupBool(&mdok, recipe, "ADD.NOT.SUBTRACT"); // add instead of subtracting 35 bool doApplyMaskNaN = psMetadataLookupBool(&mdok, recipe, "APPLY.PIXELNAN"); // NaN the pixels underneath masks 35 36 36 37 pmFPAview *view = ppSubViewReadout(); // View to readout … … 73 74 // NAN the masked pixels in the diff image (pixels masked in A are not yet NAN'ed in B) 74 75 psImageMaskType maskVal = pmConfigMaskGet("MASK.VALUE", config) | pmConfigMaskGet("BLANK", config); // Bits to mask in inputs 75 for (int iy = 0; iy < outRO->image->numRows; iy++) { 76 if(doApplyMaskNaN) { 77 for (int iy = 0; iy < outRO->image->numRows; iy++) { 76 78 for (int ix = 0; ix < outRO->image->numCols; ix++) { 77 79 if ((outRO->mask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & maskVal) == 0) continue; 78 80 outRO->image->data.F32[iy][ix] = NAN; 79 81 } 82 } 80 83 } 81 84
Note:
See TracChangeset
for help on using the changeset viewer.
