Changeset 13483 for trunk/psLib/src/imageops/psImageInterpolate.h
- Timestamp:
- May 22, 2007, 4:55:01 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageInterpolate.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageInterpolate.h
r12741 r13483 7 7 * @author Paul Price, Institute for Astronomy 8 8 * 9 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-0 4-04 22:42:02$9 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-05-23 02:55:01 $ 11 11 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii 12 12 */ 13 13 14 #ifndef PS_IMAGE_ PIXEL_INTERPOLATE_H15 #define PS_IMAGE_ PIXEL_INTERPOLATE_H14 #ifndef PS_IMAGE_INTERPOLATE_H 15 #define PS_IMAGE_INTERPOLATE_H 16 16 17 17 … … 28 28 } psImageInterpolateMode; 29 29 30 /// Status of interpolation 31 typedef enum { 32 PS_INTERPOLATE_STATUS_ERROR = 0, ///< There was an error 33 PS_INTERPOLATE_STATUS_OFF, ///< The pixel fell completely off the image or in the border 34 PS_INTERPOLATE_STATUS_BAD, ///< The pixel is bad 35 PS_INTERPOLATE_STATUS_POOR, ///< The pixel is poor 36 PS_INTERPOLATE_STATUS_GOOD, ///< The pixel is good 37 } psImageInterpolateStatus; 30 38 31 39 /// Options for general interpolation. … … 35 43 /// included. 36 44 typedef struct { 37 psImageInterpolateMode mode; // Interpolation mode38 const psImage *image; // Input image for interpolation39 const psImage *variance; // Variance image for interpolation40 const psImage *mask; // Mask image for interpolation41 psMaskType maskVal; // Value to mask42 double badImage; // Image value if x,y location is not good43 double badVariance; // Variance value if x,y location is not good44 psMaskType badMask; // Mask value to give bad pixels45 psMaskType poorMask; // Mask value to give poor pixels46 float poorFrac; // Fraction of flux in bad pixels before output is marked bad45 psImageInterpolateMode mode; ///< Interpolation mode 46 const psImage *image; ///< Input image for interpolation 47 const psImage *variance; ///< Variance image for interpolation 48 const psImage *mask; ///< Mask image for interpolation 49 psMaskType maskVal; ///< Value to mask 50 double badImage; ///< Image value if x,y location is not good 51 double badVariance; ///< Variance value if x,y location is not good 52 psMaskType badMask; ///< Mask value to give bad pixels 53 psMaskType poorMask; ///< Mask value to give poor pixels 54 float poorFrac; ///< Fraction of flux in bad pixels before output is marked bad 47 55 } psImageInterpolateOptions; 48 56 … … 64 72 65 73 /// Interpolate image pixel value given floating point coordinates. 66 boolpsImageInterpolate(double *imageValue, ///< Return value for image67 double *varianceValue, ///< Return value for variance68 psMaskType *maskValue, ///< Return value for mask69 float x, float y, ///< Location to which to interpolate70 const psImageInterpolateOptions *options ///< Options for interpolation74 psImageInterpolateStatus psImageInterpolate(double *imageValue, ///< Return value for image 75 double *varianceValue, ///< Return value for variance 76 psMaskType *maskValue, ///< Return value for mask 77 float x, float y, ///< Location to which to interpolate 78 const psImageInterpolateOptions *options ///< Options 71 79 ); 72 80
Note:
See TracChangeset
for help on using the changeset viewer.
