- Timestamp:
- Nov 8, 2007, 12:59:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psModules/src/imcombine/pmSubtractionStamps.h
r14802 r15516 9 9 typedef enum { 10 10 PM_SUBTRACTION_STAMP_INIT, ///< Initial state 11 PM_SUBTRACTION_STAMP_FOUND, ///< Found a suitable source for this stamp 12 PM_SUBTRACTION_STAMP_CALCULATE, ///< Calculate matrix and vector values for this stamp 11 13 PM_SUBTRACTION_STAMP_USED, ///< Use this stamp 12 14 PM_SUBTRACTION_STAMP_REJECTED, ///< This stamp has been rejected 13 PM_SUBTRACTION_STAMP_CALCULATE, ///< Calculate matrix and vector values for this stamp14 15 PM_SUBTRACTION_STAMP_NONE ///< No stamp in this region 15 16 } pmSubtractionStampStatus; … … 54 55 float flux; ///< Flux 55 56 float xNorm, yNorm; ///< Normalised position 56 psKernel * reference;///< Reference image postage stamp57 psKernel *i nput;///< Input image postage stamp57 psKernel *image1; ///< Reference image postage stamp 58 psKernel *image2; ///< Input image postage stamp 58 59 psKernel *weight; ///< Weight image postage stamp 59 psArray *convolutions; ///< Convolutions of the reference for each kernel component 60 psArray *convolutions1; ///< Convolutions of image 1 for each kernel component 61 psArray *convolutions2; ///< Convolutions of image 2 for each kernel component 60 62 psImage *matrix; ///< Associated matrix 61 63 psVector *vector; ///< Assoicated vector … … 72 74 const psRegion *region, ///< Region to search, or NULL 73 75 float threshold, ///< Threshold for stamps in the image 74 float spacing ///< Rough spacing for stamps 76 float spacing, ///< Rough spacing for stamps 77 pmSubtractionMode mode ///< Mode for subtraction 75 78 ); 76 79 77 80 /// Set stamps based on a list of x,y 78 ///79 /// We may optionally apply an exclusion zone around each star --- this is important when we're convolving to80 /// a specified PSF; less so when we're only trying to get a good subtraction.81 81 pmSubtractionStampList *pmSubtractionStampsSet(const psVector *x, ///< x coordinates for each stamp 82 82 const psVector *y, ///< y coordinates for each stamp … … 86 86 const psRegion *region, ///< Region to search, or NULL 87 87 float spacing, ///< Rough spacing for stamps 88 int exclusionZone ///< Exclusion zone around each star88 pmSubtractionMode mode ///< Mode for subtraction 89 89 ); 90 90 91 /// 91 /// Set stamps based on a list of sources 92 92 pmSubtractionStampList *pmSubtractionStampsSetFromSources( 93 const psArray *sources, ///< Sources for each stamp 94 const psImage *subMask, ///< Mask, or NULL 95 const psRegion *region, ///< Region to search, or NULL 96 float spacing, ///< Rough spacing for stamps 97 int exclusionZone ///< Exclusion zone around each star 93 const psArray *sources, ///< Sources for each stamp 94 const psImage *subMask, ///< Mask, or NULL 95 const psRegion *region, ///< Region to search, or NULL 96 float spacing, ///< Rough spacing for stamps 97 pmSubtractionMode mode ///< Mode for subtraction 98 ); 99 100 /// Set stamps based on values in a file 101 pmSubtractionStampList *pmSubtractionStampsSetFromFile( 102 const char *filename, ///< Filename of file containing x,y (or x,y,flux) on each line 103 const psImage *subMask, ///< Mask, or NULL 104 const psRegion *region, ///< Region to search, or NULL 105 float spacing, ///< Rough spacing for stamps 106 pmSubtractionMode mode ///< Mode for subtraction 98 107 ); 99 108 … … 107 116 ); 108 117 109 /// Generate target for stamps based on list110 bool pmSubtractionStampsGenerate(pmSubtractionStampList *stamps, ///< Stamps111 float fwhm, ///< FWHM for each stamp112 int footprint, ///< Stamp footprint size113 int size ///< Kernel half-size114 );115 116 118 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
