Changeset 2375 for trunk/psLib/src/image/psImage.h
- Timestamp:
- Nov 16, 2004, 10:00:21 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r2204 r2375 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-1 0-27 00:57:31 $13 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-11-16 20:00:21 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 75 75 psImage; 76 76 77 /** Basic image region structure. 78 * 79 * Struct for specifying a rectangular area in an image. 80 * 81 */ 82 typedef struct 83 { 84 double x0; ///< the first column of the region. 85 double x1; ///< the last column of the region. 86 double y0; ///< the first row of the region. 87 double y1; ///< the last row of the region. 88 } 89 psRegion; 90 77 91 /** Create an image of the specified size and type. 78 92 * … … 84 98 */ 85 99 psImage* psImageAlloc( 86 psU32 numCols, ///< Number of rows in image.87 psU32 numRows, ///< Number of columns in image.100 psU32 numCols, ///< Number of rows in image. 101 psU32 numRows, ///< Number of columns in image. 88 102 const psElemType type ///< Type of data for image. 103 ); 104 105 /** Create an image of the specified size and type. 106 * 107 * Uses psLib memory allocation functions to create an image struct of the 108 * specified size and type. 109 * 110 * @return psImage* : Pointer to psImage. 111 * 112 */ 113 psRegion* psRegionAlloc( 114 double x0, ///< the first column of the region. 115 double x1, ///< the last column of the region. 116 double y0, ///< the first row of the region. 117 double y1 ///< the last row of the region. 118 ); 119 120 psRegion* psRegionFromString( 121 char* region ///< image rectangular region in the form '[x0:x1,y0:y1]' 89 122 ); 90 123 … … 96 129 psImage* psImageRecycle( 97 130 psImage* old, ///< the psImage to recycle by resizing image buffer 98 psU32 numCols, ///< the desired number of columns in image99 psU32 numRows, ///< the desired number of rows in image131 psU32 numCols, ///< the desired number of columns in image 132 psU32 numRows, ///< the desired number of rows in image 100 133 const psElemType type ///< the desired datatype of the image 101 134 );
Note:
See TracChangeset
for help on using the changeset viewer.
