- Timestamp:
- Nov 24, 2021, 7:11:32 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c
r41927 r41933 1515 1515 } 1516 1516 1517 # define MIN_GOOD_PERCENTILE 21518 1517 # define SUSPECT_FRACTION 0.65 1519 1518 … … 1610 1609 if (fabs(image->data.F32[yIn][xIn]) > 1e5) continue; // XXX this cut is a bit arbitrary.. 1611 1610 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & badMaskBits) continue; 1611 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & suspectMaskBits) continue; 1612 1612 1613 1613 // count the number of times a given mask bit is set in the input pixels. … … 1629 1629 // accumulate exposure times if required 1630 1630 if (expTime) { expTime->data.F32[nGood] = data->exp; } 1631 1632 1631 nGood ++; 1633 1632 } … … 1641 1640 // rejection needs to be symmetric 1642 1641 1643 # define AT_LEAST 0 1642 // 'AT_LEAST' means we reject at least 'rejectFraction' of values, but it could 1643 // be a higher percentage for smaller numbers of inputs. 1644 # define AT_LEAST 1 1645 # define MIN_GOOD_PERCENTILE 3 1644 1646 # if (AT_LEAST) 1645 1647 int Ns = MIN(MAX(1, 0.5*rejectFraction * nGood), nGood);
Note:
See TracChangeset
for help on using the changeset viewer.
