Changeset 21183 for trunk/psLib/src/fits
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 4 edited
-
psFitsImage.c (modified) (9 diffs)
-
psFitsImage.h (modified) (6 diffs)
-
psFitsScale.c (modified) (3 diffs)
-
psFitsScale.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsImage.c
r19384 r21183 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $10 * @date $Date: 200 8-09-05 08:08:33$9 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2009-01-27 06:39:37 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 251 251 const psImage *image, // Image to convert 252 252 const psImage *mask, // Mask image, or NULL 253 ps MaskType maskVal, // Value to mask253 psImageMaskType maskVal, // Value to mask 254 254 psRandom *rng, // Random number generator 255 255 bool newScaleZero // Determine a new BSCALE and BZERO? … … 506 506 507 507 bool psFitsWriteImageWithMask(psFits *fits, psMetadata *header, const psImage *input, 508 const psImage *mask, ps MaskType maskVal, int numZPlanes,508 const psImage *mask, psImageMaskType maskVal, int numZPlanes, 509 509 const char *extname) 510 510 { … … 525 525 526 526 bool psFitsInsertImageWithMask(psFits *fits, psMetadata *header, const psImage *image, 527 const psImage *mask, ps MaskType maskVal, int numZPlanes,527 const psImage *mask, psImageMaskType maskVal, int numZPlanes, 528 528 const char *extname, bool after) 529 529 { … … 532 532 PS_ASSERT_IMAGE_NON_NULL(image, false); 533 533 if (mask) { 534 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_ MASK, false);534 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_IMAGE_MASK, false); 535 535 PS_ASSERT_IMAGES_SIZE_EQUAL(mask, image, false); 536 536 } … … 706 706 } 707 707 708 bool psFitsUpdateImageWithMask(psFits *fits, const psImage *input, const psImage *mask, ps MaskType maskVal,708 bool psFitsUpdateImageWithMask(psFits *fits, const psImage *input, const psImage *mask, psImageMaskType maskVal, 709 709 int x0, int y0, int z) 710 710 { … … 713 713 PS_ASSERT_IMAGE_NON_NULL(input, false); 714 714 if (mask) { 715 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_ MASK, false);715 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_IMAGE_MASK, false); 716 716 PS_ASSERT_IMAGES_SIZE_EQUAL(mask, input, false); 717 717 } … … 896 896 897 897 bool psFitsWriteImageCubeWithMask(psFits *fits, psMetadata *header, const psArray *input, 898 const psArray *masks, ps MaskType maskVal, const char *extname)898 const psArray *masks, psImageMaskType maskVal, const char *extname) 899 899 { 900 900 PS_ASSERT_FITS_NON_NULL(fits, false); … … 976 976 977 977 bool psFitsUpdateImageCubeWithMask(psFits *fits, const psArray *input, 978 const psArray *masks, ps MaskType maskVal, int x0, int y0)978 const psArray *masks, psImageMaskType maskVal, int x0, int y0) 979 979 { 980 980 PS_ASSERT_FITS_NON_NULL(fits, false); -
trunk/psLib/src/fits/psFitsImage.h
r19384 r21183 4 4 * @author Robert DeSonia, MHPCC 5 5 * 6 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $7 * @date $Date: 200 8-09-05 08:08:33$6 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2009-01-27 06:39:37 $ 8 8 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 9 9 */ … … 74 74 const psImage *input, ///< the image to output 75 75 const psImage *mask, ///< the mask image 76 ps MaskType maskVal,///< value to mask76 psImageMaskType maskVal, ///< value to mask 77 77 int depth, ///< the number of z-planes of the FITS image data cube 78 78 const char *extname ///< FITS extension name … … 101 101 const psImage *input, ///< the image to output 102 102 const psImage *mask, ///< the mask image 103 ps MaskType maskVal,///< value to mask103 psImageMaskType maskVal, ///< value to mask 104 104 int depth, ///< the number of z-planes of the FITS image data cube 105 105 const char *extname, ///< FITS extension name … … 128 128 const psImage *input, ///< the image to output 129 129 const psImage *mask, ///< the mask image 130 ps MaskType maskVal,///< value to mask130 psImageMaskType maskVal, ///< value to mask 131 131 int x0, ///< psImage's x-axis origin in FITS image coordinates 132 132 int y0, ///< psImage's y-axis origin in FITS image coordinates … … 157 157 const psArray *input, ///< Array of images 158 158 const psArray *masks, ///< Array of masks 159 ps MaskType maskVal,///< Value to mask159 psImageMaskType maskVal, ///< Value to mask 160 160 const char *extname ///< Name of extension 161 161 ); … … 175 175 const psArray *input, ///< Array of images 176 176 const psArray *masks, ///< Array of masks 177 ps MaskType maskVal,///< Value to mask177 psImageMaskType maskVal, ///< Value to mask 178 178 int x0, ///< x origin of images in FITS image coordinates 179 179 int y0 ///< y origin of images in FITS image coordinates -
trunk/psLib/src/fits/psFitsScale.c
r19383 r21183 100 100 const psImage *image, // Image to scale 101 101 const psImage *mask, // Mask image 102 ps MaskType maskVal, // Value to mask102 psImageMaskType maskVal, // Value to mask 103 103 const psFitsOptions *options // FITS options 104 104 ) … … 167 167 168 168 bool psFitsScaleDetermine(double *bscale, double *bzero, long *blank, const psImage *image, 169 const psImage *mask, ps MaskType maskVal, const psFits *fits)169 const psImage *mask, psImageMaskType maskVal, const psFits *fits) 170 170 { 171 171 PS_ASSERT_PTR_NON_NULL(bscale, false); … … 174 174 PS_ASSERT_IMAGE_NON_NULL(image, false); 175 175 if (mask) { 176 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_ MASK, false);176 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_IMAGE_MASK, false); 177 177 PS_ASSERT_IMAGES_SIZE_EQUAL(mask, image, false); 178 178 } -
trunk/psLib/src/fits/psFitsScale.h
r19383 r21183 13 13 const psImage *image, ///< Image to scale 14 14 const psImage *mask, ///< Mask image 15 ps MaskType maskVal, ///< Value to mask15 psImageMaskType maskVal, ///< Value to mask 16 16 const psFits *fits ///< FITS options 17 17 );
Note:
See TracChangeset
for help on using the changeset viewer.
