Changeset 19286
- Timestamp:
- Aug 29, 2008, 11:01:16 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceSize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceSize.c
r18870 r19286 178 178 // for each of the neighboring rows, mark the high pixels if they have a marked neighbor 179 179 // first go up: 180 for (int iy = yo; iy >= 0; iy--) {180 for (int iy = PS_MIN(yo, mask->numRows-2); iy >= 0; iy--) { 181 181 // mark the pixels in this row to the left, then the right 182 182 for (int ix = 0; ix < pixels->numCols; ix++) { … … 194 194 } 195 195 // next go down: 196 for (int iy = yo+1; iy < pixels->numRows; iy++) {196 for (int iy = PS_MIN(yo+1, mask->numRows-1); iy < pixels->numRows; iy++) { 197 197 // mark the pixels in this row to the left, then the right 198 198 for (int ix = 0; ix < pixels->numCols; ix++) {
Note:
See TracChangeset
for help on using the changeset viewer.
