Changeset 23679 for branches/pap/pswarp/pswarpPixelsLit.c
- Timestamp:
- Apr 2, 2009, 12:06:37 PM (17 years ago)
- File:
-
- 1 moved
-
branches/pap/pswarp/pswarpPixelsLit.c (moved) (moved from branches/pap/pswarp/src/pswarpPixelFraction.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/pswarp/pswarpPixelsLit.c
r23677 r23679 21 21 #include "pswarp.h" 22 22 23 bool pswarpPixel Fraction(const pmReadout *readout, psMetadata *stats, const pmConfig *config)23 bool pswarpPixelsLit(const pmReadout *readout, psMetadata *stats, const pmConfig *config) 24 24 { 25 25 PS_ASSERT_PTR_NON_NULL(readout, false); … … 52 52 // output mask bits 53 53 psImageMaskType maskValue = psMetadataLookupImageMask(&status, recipe, "MASK.OUTPUT"); 54 psAssert (status, "MASK.OUTPUT was not defined");54 psAssert(status, "MASK.OUTPUT was not defined"); 55 55 56 56 psImage *image = readout->image; ///< Image of interest … … 62 62 int xMin = INT_MAX, xMax = -INT_MAX, yMin = INT_MAX, yMax = -INT_MAX; 63 63 64 long numGood = 0; ///< Number of bad pixels65 64 for (int y = 0; y < numRows; y++) { 66 65 for (int x = 0; x < numCols; x++) { 67 if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValue)) 66 if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValue)) { 68 67 if (y > yMax) { 69 68 yMax = y;
Note:
See TracChangeset
for help on using the changeset viewer.
