Index: trunk/psLib/src/imageops/psImagePixelExtract.c
===================================================================
--- trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 4162)
+++ trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 4206)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-05-19 02:08:21 $
+ *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-10 02:30:47 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -28,8 +28,5 @@
                        const psImage* restrict mask,
                        psU32 maskVal,
-                       psS32 col0,
-                       psS32 row0,
-                       psS32 col1,
-                       psS32 row1,
+                       psRegion region,
                        psImageCutDirection direction,
                        const psStats* stats)
@@ -42,4 +39,8 @@
     psS32 delta = 1;
     psF64* outData;
+    psS32 row0 = region.y0;
+    psS32 row1 = region.y1;
+    psS32 col0 = region.x0;
+    psS32 col1 = region.x1;
 
     if (in == NULL || in->data.V == NULL) {
@@ -271,13 +272,11 @@
                      psVector* cutRows,
                      const psImage* in,
-                     const psImage* restrict mask,
+                     const psImage* mask,
                      psU32 maskVal,
-                     float startCol,
-                     float startRow,
-                     float endCol,
-                     float endRow,
+                     psRegion region,
                      psU32 nSamples,
                      psImageInterpolateMode mode)
 {
+
     if (in == NULL || in->data.V == NULL) {
         psError(PS_ERR_BAD_PARAMETER_NULL, true,
@@ -297,4 +296,8 @@
     }
 
+    float startCol = region.x0;
+    float startRow = region.y0;
+    float endCol = region.x1;
+    float endRow = region.y1;
     if (startCol < 0 || startCol >= numCols ||
             startRow < 0 || startRow >= numRows ||
Index: trunk/psLib/src/imageops/psImagePixelExtract.h
===================================================================
--- trunk/psLib/src/imageops/psImagePixelExtract.h	(revision 4162)
+++ trunk/psLib/src/imageops/psImagePixelExtract.h	(revision 4206)
@@ -8,6 +8,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-06-08 23:40:45 $
+*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-06-10 02:30:47 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -65,8 +65,5 @@
     const psImage* mask,               ///< the mask for the input image.
     psU32 maskVal,                     ///< the mask value to apply to the mask
-    psS32 col0,                        ///< the leftmost column of the slice region
-    psS32 row0,                        ///< the bottommost row of the slice region
-    psS32 col1,                        ///< exclusive end column of the slice region
-    psS32 row1,                        ///< exclusive end row of the slice region
+    psRegion region,                   ///< the slice region
     psImageCutDirection direction,     ///< the slice dimension and direction
     const psStats* stats               ///< the statistic to perform in slice operation
@@ -96,8 +93,5 @@
     const psImage* mask,               ///< the mask for the input image.
     psU32 maskVal,                     ///< the mask value to apply to the mask
-    float startCol,                    ///< the column of the start of the cut line
-    float startRow,                    ///< the row of the start of the cut line
-    float endCol,                      ///< the column of the end of the cut line
-    float endRow,                      ///< the row of the end of the cut line
+    psRegion region,                   ///< the start and end points to cut along
     psU32 nSamples,                    ///< the number of samples along the cut
     psImageInterpolateMode mode        ///< the interpolation method to use
