Changeset 31359
- Timestamp:
- Apr 24, 2011, 9:41:09 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110404/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageGeomManip.c (modified) (1 diff)
-
psImageMaskOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageGeomManip.c
r23989 r31359 702 702 } \ 703 703 /* note: output(i,j) = input(i+0.5-dx,j+0.5-dy) */ \ 704 /* positive dx,dy moves pixel i-dx,j-dy to i, y*/ \704 /* positive dx,dy moves pixel i-dx,j-dy to i,j */ \ 705 705 /* also: pixel center is 0.5,0.5 */ \ 706 706 for (int row = 0; row < numRows; row++) { \ -
branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageMaskOps.c
r25753 r31359 146 146 for (int iy = 0; iy < image->numRows; iy++) { \ 147 147 for (int ix = 0; ix < image->numCols; ix++) { \ 148 dx = ix + image->col0 - x; \149 dy = iy + image->row0 - y; \148 dx = ix + 0.5 + image->col0 - x; \ 149 dy = iy + 0.5 + image->row0 - y; \ 150 150 r2 = PS_SQR(dx) + PS_SQR(dy); \ 151 151 if (r2 <= R2) { \ … … 197 197 for (int iy = 0; iy < image->numRows; iy++) { \ 198 198 for (int ix = 0; ix < image->numCols; ix++) { \ 199 dx = ix + image->col0 - x; \200 dy = iy + image->row0 - y; \199 dx = ix + 0.5 + image->col0 - x; \ 200 dy = iy + 0.5 + image->row0 - y; \ 201 201 r2 = PS_SQR(dx) + PS_SQR(dy); \ 202 202 if (r2 > R2) { \
Note:
See TracChangeset
for help on using the changeset viewer.
