00001 00002 /** @file psImageIO.h 00003 * 00004 * @brief Contains image input/output routines 00005 * 00006 * This file defines the file input/output functions for the psImage structure. 00007 * 00008 * @ingroup ImageIO 00009 * 00010 * @author Robert DeSonia, MHPCC 00011 * 00012 * @version $Revision: 1.9 $ $Name: rel5_0 $ 00013 * @date $Date: 2005/02/17 19:26:24 $ 00014 * 00015 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 00016 */ 00017 #ifndef PS_IMAGEIO_H 00018 #define PS_IMAGEIO_H 00019 00020 #include "psImage.h" 00021 00022 /// @addtogroup ImageIO 00023 /// @{ 00024 00025 /** Read an image or subimage from a FITS file specified by a filename. 00026 * 00027 * return psImage* The image read from the specified file. NULL 00028 * signifies that a problem had occured. 00029 */ 00030 psImage* psImageReadSection( 00031 psImage* output, 00032 /**< the output psImage to recycle, or NULL if new psImage desired */ 00033 00034 psS32 col0, 00035 /**< the column index of the origin to start reading */ 00036 00037 psS32 row0, 00038 /**< the row index of the origin to start reading */ 00039 00040 psS32 numCols, 00041 /**< the number of desired columns to read */ 00042 00043 psS32 numRows, 00044 /**< the number of desired rows to read */ 00045 00046 psS32 z, 00047 /**< the z index to read if file is organized as a 3D image cube. */ 00048 00049 char *extname, 00050 /**< the image extension to read (this should match the EXTNAME keyword in 00051 * the extension If NULL, the extnum parameter is to be used instead 00052 */ 00053 00054 psS32 extnum, 00055 /**< the image extension to read (0=PHU, 1=first extension, etc.) This is 00056 * only used if extname is NULL 00057 */ 00058 00059 char *filename 00060 /**< the filename of the FITS image file to read */ 00061 ); 00062 00063 /** Read an image or subimage from a FITS file specified by a filename. 00064 * 00065 * return psBool TRUE is successful, otherwise FALSE. 00066 */ 00067 psBool psImageWriteSection( 00068 psImage* input, 00069 /**< the psImage to write */ 00070 00071 psS32 col0, 00072 /**< the column index of the origin to start writing */ 00073 00074 psS32 row0, 00075 /**< the row index of the origin to start writing */ 00076 00077 psS32 z, 00078 /**< the z index to start writing */ 00079 00080 char *extname, 00081 /**< the image extension to write (this should match the EXTNAME keyword in 00082 * the extension If NULL, the extnum parameter is to be used instead 00083 */ 00084 00085 psS32 extnum, 00086 /**< the image extension to write (0=PHU, 1=first extension, etc.) This is 00087 * only used if extname is NULL. 00088 */ 00089 00090 char *filename 00091 /**< the filename of the FITS image file to write */ 00092 ); 00093 00094 /// @} 00095 00096 #endif
1.3.9.1