- Timestamp:
- May 5, 2013, 2:20:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpPixelsLit.c
r23688 r35512 64 64 for (int y = 0; y < numRows; y++) { 65 65 for (int x = 0; x < numCols; x++) { 66 if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValue)) { 67 if (y > yMax) { 68 yMax = y; 69 } 70 if (y < yMin) { 71 yMin = y; 72 } 73 if (x > xMax) { 74 xMax = x; 75 } 76 if (x < xMin) { 77 xMin = x; 78 } 79 } 66 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValue) { continue; } 67 xMin = PS_MIN (xMin, x); 68 xMax = PS_MAX (xMax, x); 69 yMin = PS_MIN (yMin, y); 70 yMax = PS_MAX (yMax, y); 80 71 } 81 72 } 82 73 74 // XXX need to add these in a container appropriate to the element 83 75 if (stats) { 84 76 psMetadataAddS32(stats, PS_LIST_TAIL, "RANGE.XMIN", 0, "Minimum valid x value", xMin);
Note:
See TracChangeset
for help on using the changeset viewer.
