Changeset 10080 for trunk/psModules/src/detrend/pmMaskBadPixels.c
- Timestamp:
- Nov 18, 2006, 1:37:07 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmMaskBadPixels.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmMaskBadPixels.c
r10026 r10080 23 23 psImage *exMask = mask->mask; 24 24 25 int rowMax = in Mask->row0 + inMask->numRows;26 int colMax = in Mask->col0 + inMask->numCols;27 28 if ( exMask->row0 > inMask->row0 || exMask->col0 > inMask->col0 ||29 exMask->row0 + exMask->numRows < rowMax || exMask->col0 + exMask->numCols < colMax) {30 psError( PS_ERR_BAD_PARAMETER_SIZE, true,31 "Input image size exceeds that of mask image: (%d, %d) vs (%d, %d)",32 inMask->numRows, inMask->numCols, exMask->numRows, exMask->numCols);25 int rowMax = input->row0 + inMask->numRows; 26 int colMax = input->col0 + inMask->numCols; 27 28 if (mask->row0 > input->row0 || mask->col0 > input->col0 || 29 mask->row0 + exMask->numRows < rowMax || mask->col0 + exMask->numCols < colMax) { 30 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 31 "Input image size exceeds that of mask image: (%d, %d) vs (%d, %d)", 32 inMask->numRows, inMask->numCols, exMask->numRows, exMask->numCols); 33 33 return false; 34 34 } … … 36 36 // Determine total offset based on image offset with chip offset 37 37 // XXX if we choose to correct for the readout location, apply input->col0,row0 here 38 int offCol = in Mask->col0 - exMask->col0;39 int offRow = in Mask->row0 - exMask->row0;38 int offCol = input->col0 - mask->col0; 39 int offRow = input->row0 - mask->row0; 40 40 41 41 // masks are both of type PS_TYPE_MASK
Note:
See TracChangeset
for help on using the changeset viewer.
