Changeset 23679
- Timestamp:
- Apr 2, 2009, 12:06:37 PM (17 years ago)
- Location:
- branches/pap/pswarp
- Files:
-
- 3 edited
- 1 moved
-
pswarpPixelsLit.c (moved) (moved from branches/pap/pswarp/src/pswarpPixelFraction.c ) (3 diffs)
-
src/Makefile.am (modified) (1 diff)
-
src/pswarp.h (modified) (1 diff)
-
src/pswarpLoop.c (modified) (1 diff)
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; -
branches/pap/pswarp/src/Makefile.am
r23170 r23679 24 24 pswarpMatchRange.c \ 25 25 pswarpParseCamera.c \ 26 pswarpPixel Fraction.c \26 pswarpPixelsLit.c \ 27 27 pswarpSetMaskBits.c \ 28 28 pswarpSetThreads.c \ -
branches/pap/pswarp/src/pswarp.h
r23487 r23679 102 102 const char *filename, const char *argname); 103 103 104 /// Check to see if the readout has a minimum fraction of "lit"pixels105 bool pswarpPixel Fraction(const pmReadout *readout, ///< Readout to inspect106 psMetadata *stats, ///< Statistics to update with the result107 const pmConfig *config ///< Configuration104 /// Get the range of lit pixels 105 bool pswarpPixelsLit(const pmReadout *readout, ///< Readout to inspect 106 psMetadata *stats, ///< Statistics to update with the result 107 const pmConfig *config ///< Configuration 108 108 ); 109 109 -
branches/pap/pswarp/src/pswarpLoop.c
r23677 r23679 290 290 pmFPA *outFPA = outChip->parent; ///< Output FP 291 291 292 if (pswarpPixel Fraction(output, stats, config)) {292 if (pswarpPixelsLit(output, stats, config)) { 293 293 psError(PS_ERR_UNKNOWN, false, "Unable to calculate pixel regions."); 294 294 psFree(cells);
Note:
See TracChangeset
for help on using the changeset viewer.
