Changeset 13034 for trunk/psModules/src/objects/pmSource.h
- Timestamp:
- Apr 25, 2007, 3:20:29 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.h
r11253 r13034 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-0 1-24 02:54:15$5 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-26 01:20:29 $ 7 7 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 8 8 */ … … 13 13 /// @addtogroup Objects Object Detection / Analysis Functions 14 14 /// @{ 15 16 /**17 * In the object analysis process, we will use specific mask values to mark the18 * image pixels. The following structure defines the relevant mask values.19 *20 * XXX: This is probably a bad solution: we will want to set mask values21 * outside of the PSPHOT code. Perhaps we can set up a registered set of mask22 * values with specific meanings that other functions can add to or define?23 24 * XXX We will only use the PM_MASK_xxx mask values25 typedef enum {26 PM_SOURCE_MASK_CLEAR = 0x00,27 PM_SOURCE_MASK_INVALID = 0x01,28 PM_SOURCE_MASK_SATURATED = 0x02,29 PM_SOURCE_MASK_MARKED = 0x08,30 } psphotMaskValues;31 */32 15 33 16 /** pmSourceType enumeration … … 75 58 typedef struct 76 59 { 77 const int id; ///< Unique ID for object 78 pmPeak *peak; ///< Description of peak pixel. 79 psImage *pixels; ///< Rectangular region including object pixels. 80 psImage *weight; ///< Image variance. 81 psImage *mask; ///< Mask which marks pixels associated with objects. 82 pmMoments *moments; ///< Basic moments measure for the object. 83 pmModel *modelPSF; ///< PSF Model fit (parameters and type) 84 pmModel *modelEXT; ///< EXT (floating) Model fit (parameters and type). 85 pmSourceType type; ///< Best identification of object. 86 pmSourceMode mode; ///< Best identification of object. 60 const int id; ///< Unique ID for object 61 pmPeak *peak; ///< Description of peak pixel. 62 psImage *pixels; ///< Rectangular region including object pixels. 63 psImage *weight; ///< Image variance. 64 psImage *modelFlux; ///< cached copy of the model for this source 65 psImage *maskObj; ///< unique mask for this object which marks included pixels associated with objects. 66 psImage *maskView; ///< view into global image mask for this object region 67 pmMoments *moments; ///< Basic moments measure for the object. 68 pmModel *modelPSF; ///< PSF Model fit (parameters and type) 69 pmModel *modelEXT; ///< EXT (floating) Model fit (parameters and type). 70 pmSourceType type; ///< Best identification of object. 71 pmSourceMode mode; ///< Best identification of object. 87 72 psArray *blends; 88 float psfMag; ///< calculated from flux in modelPsf89 float extMag; ///< calculated from flux in modelEXT90 float errMag; ///< error in psfMag OR extMag (depending on type)91 float apMag; ///< apMag corresponding to psfMag or extMag (depending on type)92 float pixWeight; // model-weighted coverage of valid pixels93 psRegion region; // area on image covered by selected pixels94 float sky, skyErr; //?< The sky and its error at the center of the object73 float psfMag; ///< calculated from flux in modelPsf 74 float extMag; ///< calculated from flux in modelEXT 75 float errMag; ///< error in psfMag OR extMag (depending on type) 76 float apMag; ///< apMag corresponding to psfMag or extMag (depending on type) 77 float pixWeight; // model-weighted coverage of valid pixels 78 psRegion region; // area on image covered by selected pixels 79 float sky, skyErr; //?< The sky and its error at the center of the object 95 80 } 96 81 pmSource; … … 225 210 ); 226 211 227 228 // select the model used for this source 229 pmModel *pmSourceSelectModel (pmSource *source); 212 pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source); 213 214 bool pmSourceAdd (pmSource *source, pmModelOpMode mode); 215 bool pmSourceSub (pmSource *source, pmModelOpMode mode); 216 217 bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add); 218 bool pmSourceCacheModel (pmSource *source); 230 219 231 220 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
