Changeset 20945 for trunk/psModules/src/objects/pmSource.h
- Timestamp:
- Dec 9, 2008, 11:16:09 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.h
r19906 r20945 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-1 0-06 13:05:13$5 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-12-09 21:16:09 $ 7 7 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 8 8 */ … … 11 11 # define PM_SOURCE_H 12 12 13 # include "pmSourceExtendedPars.h" 13 #include <pslib.h> 14 #include "pmPeaks.h" 15 #include "pmModel.h" 16 #include "pmMoments.h" 17 #include "pmSourceExtendedPars.h" 14 18 15 19 /// @addtogroup Objects Object Detection / Analysis Functions … … 24 28 */ 25 29 typedef enum { 26 PM_SOURCE_TYPE_UNKNOWN, ///< not yet classified27 PM_SOURCE_TYPE_DEFECT, ///< a cosmic-ray28 PM_SOURCE_TYPE_SATURATED, ///< random saturated pixels (eg, bleed trails)29 PM_SOURCE_TYPE_STAR, ///< a good-quality star (subtracted model is PSF)30 PM_SOURCE_TYPE_EXTENDED, ///< an extended object (eg, galaxy) (subtracted model is EXT)30 PM_SOURCE_TYPE_UNKNOWN, ///< not yet classified 31 PM_SOURCE_TYPE_DEFECT, ///< a cosmic-ray 32 PM_SOURCE_TYPE_SATURATED, ///< random saturated pixels (eg, bleed trails) 33 PM_SOURCE_TYPE_STAR, ///< a good-quality star (subtracted model is PSF) 34 PM_SOURCE_TYPE_EXTENDED, ///< an extended object (eg, galaxy) (subtracted model is EXT) 31 35 } pmSourceType; 32 36 … … 59 63 * XXX do I have to re-organize this (again!) to allow an arbitrary set of extended model fits?? 60 64 * XXX put the Mag and Err inside the pmModel? 61 * XXX keep the modelEXT or add to the psArray 62 * 65 * XXX keep the modelEXT or add to the psArray 66 * 63 67 * 64 68 */ 65 69 struct pmSource { 66 70 const int id; ///< Unique ID for object 67 int seq; ///< ID for output (generated on write)71 int seq; ///< ID for output (generated on write) 68 72 pmPeak *peak; ///< Description of peak pixel. 69 73 psImage *pixels; ///< Rectangular region including object pixels. … … 76 80 pmModel *modelPSF; ///< PSF Model fit (parameters and type) 77 81 pmModel *modelEXT; ///< EXT Model fit used for subtraction (parameters and type) 78 psArray *modelFits; ///< collection of extended source models (best == modelEXT)82 psArray *modelFits; ///< collection of extended source models (best == modelEXT) 79 83 pmSourceType type; ///< Best identification of object. 80 84 pmSourceMode mode; ///< analysis flags set for object. 81 psArray *blends; ///< collection of sources thought to be confused with object85 psArray *blends; ///< collection of sources thought to be confused with object 82 86 float psfMag; ///< calculated from flux in modelPSF 83 87 float extMag; ///< calculated from flux in modelEXT … … 85 89 float apMag; ///< apMag corresponding to psfMag or extMag (depending on type) 86 90 float pixWeight; ///< model-weighted coverage of valid pixels 87 float psfChisq; ///< probability of PSF91 float psfChisq; ///< probability of PSF 88 92 float crNsigma; ///< Nsigma deviation from PSF to CR 89 93 float extNsigma; ///< Nsigma deviation from PSF to EXT … … 186 190 */ 187 191 pmPSFClump pmSourcePSFClump( 188 psRegion *region, ///< restrict measurement to specified region192 psRegion *region, ///< restrict measurement to specified region 189 193 psArray *source, ///< The input pmSource 190 194 psMetadata *metadata ///< Contains classification parameters … … 202 206 */ 203 207 bool pmSourceRoughClass( 204 psRegion *region, ///< restrict measurement to specified region208 psRegion *region, ///< restrict measurement to specified region 205 209 psArray *sources, ///< The input pmSources 206 210 psMetadata *metadata, ///< Contains classification parameters
Note:
See TracChangeset
for help on using the changeset viewer.
