Changeset 42160 for branches/eam_branches/ipp-20220316/psModules
- Timestamp:
- Apr 4, 2022, 4:42:29 PM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316/psModules/src/detrend
- Files:
-
- 2 edited
-
pmOverscan.c (modified) (4 diffs)
-
pmOverscan.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/psModules/src/detrend/pmOverscan.c
r42147 r42160 40 40 41 41 opts->minValid = 0.0; // default value if not defined 42 opts->maxValid = (float) 0x10000; // default value if not defined 42 43 opts->maskVal = 0x0001; // default value if not defined 43 44 … … 314 315 // declare the readout dead and mask 315 316 316 if ( reduced < overscanOpts->minValid) {317 if ((reduced < overscanOpts->minValid) || (reduced > overscanOpts->maxValid)) { 317 318 fprintf (stderr, "bad overscan (1) %f, masking readout\n", reduced); 318 319 psImage *mask = input->mask; … … 398 399 // declare the readout dead and mask 399 400 400 if ( vectorStats->sampleMean < overscanOpts->minValid) {401 if ((vectorStats->sampleMean < overscanOpts->minValid) || (vectorStats->sampleMean > overscanOpts->maxValid)) { 401 402 fprintf (stderr, "bad overscan (2) %f, masking readout\n", vectorStats->sampleMean); 402 403 psImage *mask = input->mask; … … 497 498 // declare the readout dead and mask 498 499 499 if ( vectorStats->sampleMean < overscanOpts->minValid) {500 if ((vectorStats->sampleMean < overscanOpts->minValid) || (vectorStats->sampleMean > overscanOpts->maxValid)) { 500 501 fprintf (stderr, "bad overscan (3) %f, masking readout\n", vectorStats->sampleMean); 501 502 psImage *mask = input->mask; -
branches/eam_branches/ipp-20220316/psModules/src/detrend/pmOverscan.h
r42147 r42160 44 44 float gauss; ///< Gaussian smoothing sigma 45 45 float minValid; ///< if overscan is too low, readout is dead : mask 46 float maxValid; ///< if overscan is too high, readout is dead : mask 46 47 psImageMaskType maskVal; ///< Mask value to give dead readouts 47 48
Note:
See TracChangeset
for help on using the changeset viewer.
