Changeset 36710 for trunk/psModules
- Timestamp:
- Apr 30, 2014, 7:04:03 PM (12 years ago)
- Location:
- trunk/psModules/src/imcombine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStack.c
r36651 r36710 835 835 psImageMaskType goodMask, // Value for good pixels 836 836 bool safe, // Safe combination? 837 int nminpix, // Minimum number of input per pixel 837 838 float invTotalWeight // Inverse of total weight for all inputs 838 839 ) … … 854 855 CHECKPIX(x, y, "bad vs good : %x %x %x\n", maskValue, badMask, blankMask); 855 856 856 switch (num) { 857 //MEH -- hackish adding of lower limit for input per pixel 858 int numN = num; 859 if (num < nminpix) { 860 CHECKPIX(x, y, "Nmin (%d) inputs (%d) to combine, pixel %d,%d is manually set bad\n", nminpix, numN, x, y); 861 numN = 0; 862 } 863 switch (numN) { 857 864 case 0: { 858 865 // Nothing to combine: it's bad … … 1518 1525 bool useVariance, 1519 1526 bool safe, 1527 int nminpix, 1520 1528 bool rejection) 1521 1529 { … … 1692 1700 psImageMaskType goodMask = 0; // OR of mask bits in all good input pixels 1693 1701 combineExtract(&num, &suspect, &badMask, &goodMask, buffer, combinedImage, combinedMask, combinedVariance, input, weights, exps, addVariance, reject, x, y, badMaskBits, suspectMaskBits); 1694 combinePixels(combinedImage, combinedMask, combinedVariance, exp, expnum, expweight, num, buffer, x, y, blankMaskBits, badMask, goodMask, safe, totalExpWeight);1702 combinePixels(combinedImage, combinedMask, combinedVariance, exp, expnum, expweight, num, buffer, x, y, blankMaskBits, badMask, goodMask, safe, nminpix, totalExpWeight); 1695 1703 1696 1704 if (iter > 0) { -
trunk/psModules/src/imcombine/pmStack.h
r34842 r36710 61 61 bool useVariance, ///< Use variance values for rejection? 62 62 bool safe, ///< Play safe with small numbers of input pixels (mask if N <= 2)? 63 int nminpix, ///< Minimum number input per pixel to combine 63 64 bool rejectInspect ///< Reject pixels instead of marking them for inspection? 64 65 );
Note:
See TracChangeset
for help on using the changeset viewer.
