Index: /branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageGeomManip.c
===================================================================
--- /branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageGeomManip.c	(revision 31358)
+++ /branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageGeomManip.c	(revision 31359)
@@ -702,5 +702,5 @@
     } \
     /* note: output(i,j) = input(i+0.5-dx,j+0.5-dy) */ \
-    /* positive dx,dy moves pixel i-dx,j-dy to i,y */ \
+    /* positive dx,dy moves pixel i-dx,j-dy to i,j */ \
     /* also: pixel center is 0.5,0.5 */ \
     for (int row = 0; row < numRows; row++) { \
Index: /branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageMaskOps.c
===================================================================
--- /branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageMaskOps.c	(revision 31358)
+++ /branches/eam_branches/ipp-20110404/psLib/src/imageops/psImageMaskOps.c	(revision 31359)
@@ -146,6 +146,6 @@
     for (int iy = 0; iy < image->numRows; iy++) { \
         for (int ix = 0; ix < image->numCols; ix++) { \
-            dx = ix + image->col0 - x; \
-            dy = iy + image->row0 - y; \
+            dx = ix + 0.5 + image->col0 - x; \
+            dy = iy + 0.5 + image->row0 - y; \
             r2 = PS_SQR(dx) + PS_SQR(dy); \
             if (r2 <= R2) { \
@@ -197,6 +197,6 @@
     for (int iy = 0; iy < image->numRows; iy++) { \
         for (int ix = 0; ix < image->numCols; ix++) { \
-            dx = ix + image->col0 - x; \
-            dy = iy + image->row0 - y; \
+            dx = ix + 0.5 + image->col0 - x; \
+            dy = iy + 0.5 + image->row0 - y; \
             r2 = PS_SQR(dx) + PS_SQR(dy); \
             if (r2 > R2) { \
