Changeset 29126 for branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c
- Timestamp:
- Sep 7, 2010, 9:31:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c
r29124 r29126 96 96 97 97 // fprintf (stderr, "xMin, xMax: %d, %d -> ", xMin, xMax); 98 float xRaw = xMin; 99 float yRaw = yMin; 98 100 99 101 // Ensure we're not going to go outside the bounds of the image … … 103 105 yMax = PS_MIN(numRows - border - 1, yMax); 104 106 105 if (xMax < xMin) return false; 106 if (yMax < yMin) return false; 107 if (xMax < xMin) { 108 fprintf (stderr, "%f,%f : x-border\n", xRaw, yRaw); 109 return false; 110 } 111 if (yMax < yMin) { 112 fprintf (stderr, "%f,%f : y-border\n", xRaw, yRaw); 113 return false; 114 } 107 115 108 116 psAssert (xMin <= xMax, "x mismatch?"); … … 118 126 if (subMask && subMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & 119 127 (PM_SUBTRACTION_MASK_BORDER | PM_SUBTRACTION_MASK_REJ)) { 128 fprintf (stderr, "%f,%f : masked\n", xRaw, yRaw); 120 129 return false; 121 130 } … … 133 142 } 134 143 144 if (!found) { 145 fprintf (stderr, "%f,%f : fails flux test\n", xRaw, yRaw); 146 } 135 147 return found; 136 148 } … … 431 443 // Take stamps off the top of the (sorted) list 432 444 for (int j = xList->n - 1; j >= 0 && !goodStamp; j--) { 445 fprintf (stderr, "%d : xList: %ld elements\n", i, xList->n); 433 446 // Chop off the top of the list 434 447 xList->n = j;
Note:
See TracChangeset
for help on using the changeset viewer.
