Changeset 19383 for trunk/psLib/src/fits/psFitsImage.h
- Timestamp:
- Sep 4, 2008, 9:51:09 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsImage.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsImage.h
r15630 r19383 4 4 * @author Robert DeSonia, MHPCC 5 5 * 6 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $7 * @date $Date: 200 7-11-16 01:04:56$6 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-09-05 07:51:09 $ 8 8 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 9 9 */ … … 23 23 24 24 /// Return the dimensions and type of the FITS image 25 bool psFitsImageSize(int *numCols, int *numRows, ///< Size of image 26 psElemType *type, ///< Type of image 27 const psFits *fits, ///< FITS file pointer 28 psRegion region ///< Region in the FITS image to read 25 bool psFitsImageSize( 26 int *numCols, int *numRows, ///< Size of image 27 psElemType *type, ///< Type of image 28 const psFits *fits, ///< FITS file pointer 29 psRegion region ///< Region in the FITS image to read 29 30 ); 30 31 … … 33 34 * @return psImage* the read image or NULL if there was an error. 34 35 */ 35 psImage *psFitsReadImage(36 const psFits * fits,///< the psFits object37 psRegion region, ///< the region in the FITS image to read38 int z ///< the z-plane in the FITS image cube to read36 psImage *psFitsReadImage( 37 const psFits *fits, ///< the psFits object 38 psRegion region, ///< the region in the FITS image to read 39 int z ///< the z-plane in the FITS image cube to read 39 40 ); 40 41 41 // Read an image into an extant buffer 42 psImage* psFitsReadImageBuffer(psImage *output, // Output image buffer 43 const psFits *fits, // the psFits object 44 psRegion region, // the region in the FITS image to read 45 int z // the z-plane in the FITS image cube to read 46 ); 42 /** Read an image into an extant buffer 43 */ 44 psImage *psFitsReadImageBuffer( 45 psImage *output, ///< Output image buffer 46 const psFits *fits, ///< the psFits object 47 psRegion region, ///< the region in the FITS image to read 48 int z ///< the z-plane in the FITS image cube to read 49 ); 47 50 48 /** Writes an image, given the desired region and z-plane. 51 /** Writes an image to a FITS file 52 * 53 * A new IMAGE HDU is appended to the end of the FITS file. 49 54 * 50 55 * @return bool TRUE is the write was successful, otherwise FALSE. 51 56 */ 52 57 bool psFitsWriteImage( 53 psFits * fits,///< the psFits object54 psMetadata *header, ///< header items for the new HDU. Can be NULL.55 const psImage * input,///< the image to output56 int depth, ///< the number of z-planes of the FITS image data cube57 const char * extname///< FITS extension name58 psFits *fits, ///< the psFits object 59 psMetadata *header, ///< header items for the new HDU. Can be NULL. 60 const psImage *input, ///< the image to output 61 int depth, ///< the number of z-planes of the FITS image data cube 62 const char *extname ///< FITS extension name 58 63 ); 59 64 60 /** Writes an image, given the desired region and z-plane. A new IMAGE HDU is 61 * appended to the end of the FITS file. 65 /** Writes an image to a FITS file, optionally using the supplied mask image to do statistics when compressing 66 * 67 * A new IMAGE HDU is appended to the end of the FITS file. 68 * 69 * @return bool TRUE is the write was successful, otherwise FALSE. 70 */ 71 bool psFitsWriteImageWithMask( 72 psFits *fits, ///< the psFits object 73 psMetadata *header, ///< header items for the new HDU. Can be NULL. 74 const psImage *input, ///< the image to output 75 const psImage *mask, ///< the mask image 76 psMaskType maskVal, ///< value to mask 77 int depth, ///< the number of z-planes of the FITS image data cube 78 const char *extname ///< FITS extension name 79 ); 80 81 /** Insert an image in a FITS file 62 82 * 63 83 * @return bool TRUE is the write was successful, otherwise FALSE. 64 84 */ 65 85 bool psFitsInsertImage( 66 psFits * fits,///< the psFits object67 psMetadata *header, ///< header items for the new HDU. Can be NULL.68 const psImage * input,///< the image to output69 int depth, ///< the number of z-planes of the FITS image data cube70 const char * extname,///< FITS extension name71 bool after ///< if TRUE, inserts HDU after current HDU, otherwise before86 psFits *fits, ///< the psFits object 87 psMetadata *header, ///< header items for the new HDU. Can be NULL. 88 const psImage *input, ///< the image to output 89 int depth, ///< the number of z-planes of the FITS image data cube 90 const char *extname, ///< FITS extension name 91 bool after ///< if TRUE, inserts HDU after current HDU, otherwise before 72 92 ); 73 93 74 /** Updates the FITS file image, given the desired region and z-plane. a new 75 * IMAGE HDU is inserted before or after, depending on the AFTER parameter, 76 * the current HDU. 94 /** Insert an image in a FITS file, optionally using the supplied mask image to do statistics when compressing 95 * 96 * @return bool TRUE is the write was successful, otherwise FALSE. 97 */ 98 bool psFitsInsertImageWithMask( 99 psFits *fits, ///< the psFits object 100 psMetadata *header, ///< header items for the new HDU. Can be NULL. 101 const psImage *input, ///< the image to output 102 const psImage *mask, ///< the mask image 103 psMaskType maskVal, ///< value to mask 104 int depth, ///< the number of z-planes of the FITS image data cube 105 const char *extname, ///< FITS extension name 106 bool after ///< if TRUE, inserts HDU after current HDU, otherwise before 107 ); 108 109 /** Updates an existing FITS file image 77 110 * 78 111 * @return bool TRUE is the write was successful, otherwise FALSE. 79 112 */ 80 113 bool psFitsUpdateImage( 81 psFits* fits, ///< the psFits object 82 const psImage* input, ///< the image to output 83 int x0, ///< psImage's x-axis origin in FITS image coordinates 84 int y0, ///< psImage's y-axis origin in FITS image coordinates 85 int z ///< the z-planes of the FITS image data cube to write 114 psFits *fits, ///< the psFits object 115 const psImage *input, ///< the image to output 116 int x0, ///< psImage's x-axis origin in FITS image coordinates 117 int y0, ///< psImage's y-axis origin in FITS image coordinates 118 int z ///< the z-planes of the FITS image data cube to write 119 ); 120 121 /** Updates an existing FITS file image, optionally using the supplied mask image to do statistics when 122 ** compressing 123 * 124 * @return bool TRUE is the write was successful, otherwise FALSE. 125 */ 126 bool psFitsUpdateImageWithMask( 127 psFits *fits, ///< the psFits object 128 const psImage *input, ///< the image to output 129 const psImage *mask, ///< the mask image 130 psMaskType maskVal, ///< value to mask 131 int x0, ///< psImage's x-axis origin in FITS image coordinates 132 int y0, ///< psImage's y-axis origin in FITS image coordinates 133 int z ///< the z-planes of the FITS image data cube to write 86 134 ); 87 135 88 136 psArray *psFitsReadImageCube(const psFits *fits, psRegion region); 137 89 138 bool psFitsWriteImageCube(psFits *fits, psMetadata *header, const psArray *input, const char *extname); 139 90 140 bool psFitsUpdateImageCube(psFits *fits, const psArray *input, int x0, int y0); 91 141
Note:
See TracChangeset
for help on using the changeset viewer.
