IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2007, 3:20:29 PM (19 years ago)
Author:
magnier
Message:

incorporating updates from eam_02_branch (cached models, pmPSF FITS IO)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.h

    r11253 r13034  
    33 * @author EAM, IfA; GLG, MHPCC
    44 *
    5  * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    6  * @date $Date: 2007-01-24 02:54:15 $
     5 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     6 * @date $Date: 2007-04-26 01:20:29 $
    77 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    88 */
     
    1313/// @addtogroup Objects Object Detection / Analysis Functions
    1414/// @{
    15 
    16 /**
    17  * In the object analysis process, we will use specific mask values to mark the
    18  * 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 values
    21  * outside of the PSPHOT code.  Perhaps we can set up a registered set of mask
    22  * values with specific meanings that other functions can add to or define?
    23  
    24  * XXX We will only use the PM_MASK_xxx mask values
    25 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 */
    3215
    3316/** pmSourceType enumeration
     
    7558typedef struct
    7659{
    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.
    8772    psArray *blends;
    88     float psfMag;   ///< calculated from flux in modelPsf
    89     float extMag;   ///< calculated from flux in modelEXT
    90     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 pixels
    93     psRegion region;   // area on image covered by selected pixels
    94     float sky, skyErr;   //?< The sky and its error at the center of the object
     73    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
    9580}
    9681pmSource;
     
    225210);
    226211
    227 
    228 // select the model used for this source
    229 pmModel *pmSourceSelectModel (pmSource *source);
     212pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source);
     213
     214bool pmSourceAdd (pmSource *source, pmModelOpMode mode);
     215bool pmSourceSub (pmSource *source, pmModelOpMode mode);
     216
     217bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add);
     218bool pmSourceCacheModel (pmSource *source);
    230219
    231220/// @}
Note: See TracChangeset for help on using the changeset viewer.