Changeset 15443 for trunk/psModules/src/imcombine/pmSubtraction.h
- Timestamp:
- Nov 2, 2007, 4:28:24 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtraction.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtraction.h
r15325 r15443 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-1 0-17 02:45:40$8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-11-03 02:28:24 $ 10 10 * 11 11 * Copyright 2004-207 Institute for Astronomy, University of Hawaii … … 16 16 17 17 #include <pslib.h> 18 #include "pmSubtractionKernels.h" 19 #include "pmSubtractionStamps.h" 18 19 #include <pmHDU.h> 20 #include <pmFPA.h> 21 #include <pmSubtractionKernels.h> 22 #include <pmSubtractionStamps.h> 20 23 21 24 /// @addtogroup imcombine Image Combinations 22 25 /// @{ 23 26 27 /// Mask values for the subtraction mask 24 28 typedef enum { 25 PM_SUBTRACTION_MASK_CLEAR = 0x00, // No masking 26 PM_SUBTRACTION_MASK_REF = 0x01, // Reference image is bad 27 PM_SUBTRACTION_MASK_INPUT = 0x02, // Input image is bad 28 PM_SUBTRACTION_MASK_CONVOLVE = 0x04, // If convolved, would be bad 29 PM_SUBTRACTION_MASK_FOOTPRINT = 0x08, // Bad pixel within the stamp footprint 30 PM_SUBTRACTION_MASK_BORDER = 0x10, // Image border 31 PM_SUBTRACTION_MASK_REJ = 0x20, // Previously tried as a stamp, and rejected 29 PM_SUBTRACTION_MASK_CLEAR = 0x00, // No masking 30 PM_SUBTRACTION_MASK_BAD_1 = 0x01, // Image 1 is bad 31 PM_SUBTRACTION_MASK_BAD_2 = 0x02, // Image 2 is bad 32 PM_SUBTRACTION_MASK_CONVOLVE_1 = 0x04, // If image 1 is convolved, would be bad 33 PM_SUBTRACTION_MASK_CONVOLVE_2 = 0x08, // If image 2 is convolved, would be bad 34 PM_SUBTRACTION_MASK_FOOTPRINT_1 = 0x10, // Bad pixel within the stamp footprint of image 1 35 PM_SUBTRACTION_MASK_FOOTPRINT_2 = 0x20, // Bad pixel within the stamp footprint of image 2 36 PM_SUBTRACTION_MASK_BORDER = 0x40, // Image border 37 PM_SUBTRACTION_MASK_REJ = 0x80, // Previously tried as a stamp, and rejected 32 38 } pmSubtractionMasks; 33 39 … … 45 51 bool pmSubtractionConvolveStamp(pmSubtractionStamp *stamp, ///< Stamp to convolve 46 52 const pmSubtractionKernels *kernels, ///< Kernel parameters 47 int footprint ///< Half-size of region over which to calculate equation 53 int footprint, ///< Half-size of region over which to calculate equation 54 pmSubtractionMode mode ///< Mode for subtraction (which to convolve) 48 55 ); 49 56 … … 51 58 bool pmSubtractionCalculateEquation(pmSubtractionStampList *stamps, ///< Stamps 52 59 const pmSubtractionKernels *kernels, ///< Kernel parameters 53 int footprint ///< Half-size of region over which to calculate equation 60 int footprint, ///< Half-size of region over which to calculate equation 61 pmSubtractionMode mode ///< Mode for subtraction (which to convolve) 54 62 ); 55 63 … … 59 67 ); 60 68 69 /// Calculate deviations 70 psVector *pmSubtractionCalculateDeviations(pmSubtractionStampList *stamps, ///< Stamps 71 const psVector *solution, ///< Solution vector 72 int footprint, ///< Half-size of stamp 73 const pmSubtractionKernels *kernels, ///< Kernel parameters 74 pmSubtractionMode mode ///< Mode for subtraction 75 ); 76 61 77 /// Reject stamps 62 78 int pmSubtractionRejectStamps(pmSubtractionStampList *stamps, ///< Stamps 79 const psVector *deviations, ///< Deviations for each stamp 63 80 psImage *subMask, ///< Subtraction mask 64 const psVector *solution, ///< Solution vector65 int footprint, ///< Region to mask if stamp is bad66 81 float sigmaRej, ///< Number of RMS deviations above zero at which to reject 67 const pmSubtractionKernels *kernels ///< Kernel parameters82 int footprint ///< Half-size of stamp 68 83 ); 69 84 … … 81 96 82 97 /// Convolve image in preparation for subtraction 83 bool pmSubtractionConvolve(psImage **outImage, ///< Output image 84 psImage **outWeight, ///< Output weight map (or NULL) 85 psImage **outMask, ///< Output mask (or NULL) 86 const psImage *inImage, ///< Input image 87 const psImage *inWeight, ///< Input weight map (or NULL) 98 bool pmSubtractionConvolve(pmReadout *out, ///< Output image 99 const pmReadout *ro1, // Input image 1 100 const pmReadout *ro2, // Input image 2 88 101 const psImage *subMask, ///< Subtraction mask (or NULL) 89 102 psMaskType blank, ///< Mask value for blank regions … … 91 104 const psVector *solution, ///< The solution vector 92 105 const pmSubtractionKernels *kernels, ///< Kernel parameters 106 pmSubtractionMode mode, ///< Mode for subtraction 93 107 bool useFFT ///< Use Fast Fourier Transform for the convolution? 94 108 );
Note:
See TracChangeset
for help on using the changeset viewer.
