Changeset 745 for trunk/psLib/src/image/psImage.h
- Timestamp:
- May 19, 2004, 3:27:01 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r727 r745 5 5 * This file defines the basic type for an image struct and functions useful in manupulating images. 6 6 * 7 * @author Robert DeSonia, MHPCC 7 8 * @author Ross Harman, MHPCC 8 * 9 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-05- 19 01:20:02$9 * 10 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-05-20 01:27:01 $ 11 12 * 12 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 82 83 ); 83 84 85 /** Resize a given image to the given size/type. 86 * 87 * return psImage* Resized psImage. 88 * 89 */ 90 psImage* psImageRealloc( 91 psImage* old, ///< the psImage to recycle by resizing image buffer 92 unsigned int numCols, ///< the desired number of columns in image 93 unsigned int numRows, ///< the desired number of rows in image 94 const psElemType type ///< the desired datatype of the image 95 ); 96 84 97 /** Create a subimage of the specified area. 85 98 * … … 129 142 ); 130 143 131 /** Resize a given image to the given size/type. 132 * 133 * return psImage* Resized psImage. 134 * 135 */ 136 psImage* psImageRealloc( 137 psImage* old, ///< the psImage to recycle by resizing image buffer 138 unsigned int numCols, ///< the desired number of columns in image 139 unsigned int numRows, ///< the desired number of rows in image 140 const psElemType type ///< the desired datatype of the image 144 /** Read an image or subimage from a FITS file specified by a filename. 145 * 146 * return psImage* The image read from the specified file. NULL signifies that a problem had 147 * occured. 148 */ 149 psImage* psImageReadSection( 150 psImage* output, ///< the output psImage to recycle, or NULL if new psImage desired 151 int col0, ///< the column index of the origin to start reading 152 int row0, ///< the row index of the origin to start reading 153 int numCols, ///< the number of desired columns to read 154 int numRows, ///< the number of desired rows to read 155 int z, ///< the z index to read if file is organized as a 3D image cube. 156 char* extname, 157 ///< the image extension to read (this should match the EXTNAME keyword in the extension If NULL, 158 ///< the extnum parameter is to be used instead 159 int extnum, 160 ///< the image extension to read (0=PHU, 1=first extension, etc.) This is only used if extname is 161 ///< NULL 162 char* filename ///< the filename of the FITS image file to read 163 ); 164 165 /** Read an image or subimage from a FITS file from a file descriptor 166 * 167 * return psImage* The image read from the specified file descriptor. NULL signifies that a problem 168 * had occured. 169 */ 170 psImage* psImageFReadSection( 171 psImage* output, ///< the output psImage to recycle, or NULL if new psImage desired 172 int col0, ///< the column index of the origin to start reading 173 int row0, ///< the row index of the origin to start reading 174 int numCols, ///< the number of desired columns to read 175 int numRows, ///< the number of desired rows to read 176 int z, ///< the z index to read if file is organized as a 3D image cube. 177 char* extname, 178 ///< the image extension to read (this should match the EXTNAME keyword in the extension If NULL, 179 ///< the extnum parameter is to be used instead 180 int extnum, 181 ///< the image extension to read (0=PHU, 1=first extension, etc.) This is only used if extname is 182 ///< NULL 183 FILE* f ///< the file descriptor of the FITS file 184 ); 185 186 /** Read an image or subimage from a FITS file specified by a filename. 187 * 188 * return psImage* NULL if an error, otherwise same as input psImage 189 */ 190 psImage* psImageWriteSection( 191 psImage* input, ///< the psImage to write 192 int col0, ///< the column index of the origin to start writing 193 int row0, ///< the row index of the origin to start writing 194 int z, ///< the z index to start writing 195 char* extname, 196 ///< the image extension to write (this should match the EXTNAME keyword in the extension If NULL, 197 ///< the extnum parameter is to be used instead 198 int extnum, 199 ///< the image extension to write (0=PHU, 1=first extension, etc.) This is only used if extname is 200 ///< NULL 201 char* filename ///< the filename of the FITS image file to write 202 ); 203 204 /** Read an image or subimage from a FITS file from a file descriptor. 205 * 206 * return psImage* NULL if an error, otherwise same as input psImage 207 */ 208 psImage* psImageFWriteSection( 209 psImage* input, ///< the psImage to write 210 int col0, ///< the column index of the origin to start writing 211 int row0, ///< the row index of the origin to start writing 212 int z, ///< the z index to start writing 213 char* extname, 214 ///< the image extension to write (this should match the EXTNAME keyword in the extension If NULL, 215 ///< the extnum parameter is to be used instead 216 int extnum, 217 ///< the image extension to write (0=PHU, 1=first extension, etc.) This is only used if extname is 218 ///< NULL 219 FILE* f ///< the file descriptor of the FITS file 141 220 ); 142 221
Note:
See TracChangeset
for help on using the changeset viewer.
