Index: trunk/psLib/src/image/psImage.h
===================================================================
--- trunk/psLib/src/image/psImage.h	(revision 2204)
+++ trunk/psLib/src/image/psImage.h	(revision 2375)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-27 00:57:31 $
+ *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-11-16 20:00:21 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -75,4 +75,18 @@
 psImage;
 
+/** Basic image region structure.
+ *
+ * Struct for specifying a rectangular area in an image.
+ *
+ */
+typedef struct
+{
+    double x0;                         ///< the first column of the region.
+    double x1;                         ///< the last column of the region.
+    double y0;                         ///< the first row of the region.
+    double y1;                         ///< the last row of the region.
+}
+psRegion;
+
 /** Create an image of the specified size and type.
  *
@@ -84,7 +98,26 @@
  */
 psImage* psImageAlloc(
-    psU32 numCols,              ///< Number of rows in image.
-    psU32 numRows,              ///< Number of columns in image.
+    psU32 numCols,                     ///< Number of rows in image.
+    psU32 numRows,                     ///< Number of columns in image.
     const psElemType type              ///< Type of data for image.
+);
+
+/** Create an image of the specified size and type.
+ *
+ * Uses psLib memory allocation functions to create an image struct of the
+ * specified size and type.
+ *
+ * @return psImage* : Pointer to psImage.
+ *
+ */
+psRegion* psRegionAlloc(
+    double x0,                         ///< the first column of the region.
+    double x1,                         ///< the last column of the region.
+    double y0,                         ///< the first row of the region.
+    double y1                          ///< the last row of the region.
+);
+
+psRegion* psRegionFromString(
+    char* region                       ///< image rectangular region in the form '[x0:x1,y0:y1]'
 );
 
@@ -96,6 +129,6 @@
 psImage* psImageRecycle(
     psImage* old,                      ///< the psImage to recycle by resizing image buffer
-    psU32 numCols,              ///< the desired number of columns in image
-    psU32 numRows,              ///< the desired number of rows in image
+    psU32 numCols,                     ///< the desired number of columns in image
+    psU32 numRows,                     ///< the desired number of rows in image
     const psElemType type              ///< the desired datatype of the image
 );
