Changeset 13591 for trunk/psModules/src/camera/pmFPAMaskWeight.c
- Timestamp:
- Jun 1, 2007, 5:51:03 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMaskWeight.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMaskWeight.c
r12696 r13591 93 93 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 94 94 95 bool pmReadoutSetMask(pmReadout *readout )95 bool pmReadoutSetMask(pmReadout *readout, psMaskType satMask, psMaskType badMask) 96 96 { 97 97 PS_ASSERT_PTR_NON_NULL(readout, false); … … 131 131 for (int j = 0; j < image->numCols; j++) { 132 132 if (imageData[i][j] >= saturation) { 133 maskData[i][j] |= PM_MASK_SAT;133 maskData[i][j] |= satMask; 134 134 } 135 135 if (imageData[i][j] <= bad) { 136 maskData[i][j] |= PM_MASK_BAD;136 maskData[i][j] |= badMask; 137 137 } 138 138 } … … 145 145 // pixels. currently, it will set mask bits if (value <= BAD) or (value >= SATURATION) 146 146 // should we optionally ignore these tests? 147 bool pmReadoutGenerateMask(pmReadout *readout )147 bool pmReadoutGenerateMask(pmReadout *readout, psMaskType satMask, psMaskType badMask) 148 148 { 149 149 PS_ASSERT_PTR_NON_NULL(readout, false); … … 188 188 } 189 189 190 return pmReadoutSetMask(readout );190 return pmReadoutSetMask(readout, satMask, badMask); 191 191 } 192 192 … … 282 282 } 283 283 284 bool pmReadoutGenerateMaskWeight(pmReadout *readout, bool poisson)284 bool pmReadoutGenerateMaskWeight(pmReadout *readout, psMaskType satMask, psMaskType badMask, bool poisson) 285 285 { 286 286 PS_ASSERT_PTR_NON_NULL(readout, false); … … 288 288 bool success = true; // Was everything successful? 289 289 290 success &= pmReadoutGenerateMask(readout );290 success &= pmReadoutGenerateMask(readout, satMask, badMask); 291 291 success &= pmReadoutGenerateWeight(readout, poisson); 292 292 … … 294 294 } 295 295 296 bool pmCellGenerateMaskWeight(pmCell *cell, bool poisson)296 bool pmCellGenerateMaskWeight(pmCell *cell, psMaskType satMask, psMaskType badMask, bool poisson) 297 297 { 298 298 PS_ASSERT_PTR_NON_NULL(cell, false); … … 302 302 for (int i = 0; i < readouts->n; i++) { 303 303 pmReadout *readout = readouts->data[i]; // The readout 304 pmReadoutGenerateMaskWeight(readout, poisson );304 pmReadoutGenerateMaskWeight(readout, poisson, satMask, badMask); 305 305 } 306 306
Note:
See TracChangeset
for help on using the changeset viewer.
