Changeset 20945
- Timestamp:
- Dec 9, 2008, 11:16:09 AM (17 years ago)
- Location:
- trunk/psModules/src/objects
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmFootprint.h
r18828 r20945 3 3 * @author RHL, Princeton & IfA; EAM, IfA 4 4 * 5 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2008- 08-01 00:00:17$5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-12-09 21:16:09 $ 7 7 * Copyright 2006 Institute for Astronomy, University of Hawaii 8 8 */ … … 10 10 #ifndef PM_FOOTPRINT_H 11 11 #define PM_FOOTPRINT_H 12 13 #include <pslib.h> 14 #include "pmSpan.h" 15 16 12 17 typedef struct { 13 18 const int id; //!< unique ID … … 17 22 psArray *peaks; //!< the peaks lying in this footprint 18 23 psRegion region; //!< A region describing the psImage the footprints live in 19 bool normalized; //!< Are the spans sorted? 24 bool normalized; //!< Are the spans sorted? 20 25 } pmFootprint; 21 26 … … 27 32 void pmFootprintSetBBox(pmFootprint *fp); 28 33 29 pmSpan *pmFootprintAddSpan(pmFootprint *fp, // the footprint to add to30 const int y, // row to add31 int x0, // range of32 int x1); // columns34 pmSpan *pmFootprintAddSpan(pmFootprint *fp, // the footprint to add to 35 const int y, // row to add 36 int x0, // range of 37 int x1); // columns 33 38 34 39 psArray *pmFootprintsFind(const psImage *img, const float threshold, const int npixMin); … … 45 50 psImage *pmSetFootprintID(psImage *idImage, const pmFootprint *fp, const int id); 46 51 void pmSetFootprintArrayIDsForImage(psImage *idImage, 47 const psArray *footprints, // the footprints to insert48 const bool relativeIDs); // show IDs starting at 0, not pmFootprint->id52 const psArray *footprints, // the footprints to insert 53 const bool relativeIDs); // show IDs starting at 0, not pmFootprint->id 49 54 50 55 psErrorCode pmFootprintsAssignPeaks(psArray *footprints, const psArray *peaks); -
trunk/psModules/src/objects/pmModel.h
r17395 r20945 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2008- 04-08 18:33:16$7 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-12-09 21:16:09 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 13 13 # ifndef PM_MODEL_H 14 14 # define PM_MODEL_H 15 16 #include <pslib.h> 17 #include "pmPSF.h" 15 18 16 19 /// @addtogroup Objects Object Detection / Analysis Functions … … 87 90 float chisq; ///< Fit chi-squared. 88 91 float chisqNorm; ///< re-normalized fit chi-squared. 89 float mag; ///< integrated model magnitude90 float magErr; ///< integrated model magnitude error92 float mag; ///< integrated model magnitude 93 float magErr; ///< integrated model magnitude error 91 94 int nDOF; ///< number of degrees of freedom 92 95 int nIter; ///< number of iterations to reach min -
trunk/psModules/src/objects/pmPSF.h
r15697 r20945 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $9 * @date $Date: 200 7-11-27 03:14:57$8 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2008-12-09 21:16:09 $ 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 11 11 */ … … 13 13 # ifndef PM_PSF_H 14 14 # define PM_PSF_H 15 16 #include <pslib.h> 17 #include "pmTrend2D.h" 18 #include "pmGrowthCurve.h" 19 #include "pmResiduals.h" 20 #include "pmFPA.h" 15 21 16 22 /// @addtogroup Objects Object Detection / Analysis Functions -
trunk/psModules/src/objects/pmPeaks.h
r20937 r20945 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2008-12-0 8 02:51:14$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2008-12-09 21:16:09 $ 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 15 15 */ … … 17 17 # ifndef PM_PEAKS_H 18 18 # define PM_PEAKS_H 19 20 #include <pslib.h> 21 #include "pmFootprint.h" 19 22 20 23 /// @addtogroup Objects Object Detection / Analysis Functions … … 59 62 float SN; ///< S/N implied by detection level 60 63 bool assigned; ///< is peak assigned to a source? 61 pmPeakType type; ///< Description of peak.62 pmFootprint *footprint; ///< reference to containing footprint64 pmPeakType type; ///< Description of peak. 65 pmFootprint *footprint; ///< reference to containing footprint 63 66 } 64 67 pmPeak; -
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 -
trunk/psModules/src/objects/pmSpan.h
r18828 r20945 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2008- 08-01 00:00:17$5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-12-09 21:16:09 $ 7 7 * Copyright 2006 Institute for Astronomy, University of Hawaii 8 8 */ … … 10 10 # ifndef PM_SPAN_H 11 11 # define PM_SPAN_H 12 13 #include <pslib.h> 12 14 13 15 /// @addtogroup Objects Object Detection / Analysis Functions
Note:
See TracChangeset
for help on using the changeset viewer.
