IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:22:26 PM (19 years ago)
Author:
Paul Price
Message:

Extensive changes to APIs to allow use of a nominated value to mask
against (the maskVal). Previously, the mask values were either
hard-coded (e.g., PM_MASK_SAT) or taken as anything non-zero. The
code is tested under psphot (which has similar changes) and does not
crash, but neither is it successful in marking all bad pixels (EAM
will investigate). For this reason, I have left the "gutter" pixels
(cell gaps) set to 0 instead of NAN in pmFPAMosaic.

File:
1 edited

Legend:

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

    r13567 r13898  
    33 * @author EAM, IfA; GLG, MHPCC
    44 *
    5  * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    6  * @date $Date: 2007-05-31 12:30:19 $
     5 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     6 * @date $Date: 2007-06-20 02:22:26 $
    77 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    88 */
     
    5959typedef struct
    6060{
    61     const int id;                       ///< Unique ID for object
    62     pmPeak *peak;                       ///< Description of peak pixel.
    63     psImage *pixels;                    ///< Rectangular region including object pixels.
    64     psImage *weight;                    ///< Image variance.
    65     psImage *modelFlux;                 ///< cached copy of the model for this source
    66     psImage *maskObj;                   ///< unique mask for this object which marks included pixels associated with objects.
    67     psImage *maskView;                  ///< view into global image mask for this object region
    68     pmMoments *moments;                 ///< Basic moments measure for the object.
    69     pmModel *modelPSF;                  ///< PSF Model fit (parameters and type)
    70     pmModel *modelEXT;                  ///< EXT (floating) Model fit (parameters and type).
    71     pmSourceType type;                  ///< Best identification of object.
    72     pmSourceMode mode;                  ///< Best identification of object.
     61    const int id;                       ///< Unique ID for object
     62    pmPeak *peak;                       ///< Description of peak pixel.
     63    psImage *pixels;                    ///< Rectangular region including object pixels.
     64    psImage *weight;                    ///< Image variance.
     65    psImage *modelFlux;                 ///< cached copy of the model for this source
     66    psImage *maskObj;                   ///< unique mask for this object which marks included pixels associated with objects.
     67    psImage *maskView;                  ///< view into global image mask for this object region
     68    pmMoments *moments;                 ///< Basic moments measure for the object.
     69    pmModel *modelPSF;                  ///< PSF Model fit (parameters and type)
     70    pmModel *modelEXT;                  ///< EXT (floating) Model fit (parameters and type).
     71    pmSourceType type;                  ///< Best identification of object.
     72    pmSourceMode mode;                  ///< Best identification of object.
    7373    psArray *blends;
    74     float psfMag;                       ///< calculated from flux in modelPsf
    75     float extMag;                       ///< calculated from flux in modelEXT
    76     float errMag;                       ///< error in psfMag OR extMag (depending on type)
    77     float apMag;               ///< apMag corresponding to psfMag or extMag (depending on type)
    78     float pixWeight;                    // model-weighted coverage of valid pixels
    79     psRegion region;                    // area on image covered by selected pixels
    80     float sky, skyErr;                  //?< The sky and its error at the center of the object
     74    float psfMag;                       ///< calculated from flux in modelPsf
     75    float extMag;                       ///< calculated from flux in modelEXT
     76    float errMag;                       ///< error in psfMag OR extMag (depending on type)
     77    float apMag;               ///< apMag corresponding to psfMag or extMag (depending on type)
     78    float pixWeight;                    // model-weighted coverage of valid pixels
     79    psRegion region;                    // area on image covered by selected pixels
     80    float sky, skyErr;                  //?< The sky and its error at the center of the object
    8181}
    8282pmSource;
     
    192192    psArray *source,   ///< The input pmSource
    193193    psMetadata *metadata,  ///< Contains classification parameters
    194     pmPSFClump clump   ///< Statistics about the PSF clump
     194    pmPSFClump clump,   ///< Statistics about the PSF clump
     195    psMaskType maskSat                  ///< Mask value for saturated pixels
    195196);
    196197
     
    213214pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source);
    214215
    215 bool pmSourceAdd (pmSource *source, pmModelOpMode mode);
    216 bool pmSourceSub (pmSource *source, pmModelOpMode mode);
    217 
    218 bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add);
    219 bool pmSourceCacheModel (pmSource *source);
     216bool pmSourceAdd (pmSource *source, pmModelOpMode mode, psMaskType maskVal);
     217bool pmSourceSub (pmSource *source, pmModelOpMode mode, psMaskType maskVal);
     218
     219bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add, psMaskType maskVal);
     220bool pmSourceCacheModel (pmSource *source, psMaskType maskVal);
    220221
    221222/// @}
Note: See TracChangeset for help on using the changeset viewer.