IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5728


Ignore:
Timestamp:
Dec 7, 2005, 10:08:35 AM (21 years ago)
Author:
magnier
Message:
  • dropped # define values for PM_MODEL_type
  • added pmModelStatus enum
  • added pmModel.status element
  • added apMag and fitMag elements to pmSource
  • updated prototypes for pmSourceAddModel, pmSourceSubModel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_b0/psModules/src/objects/pmObjects.h

    r5255 r5728  
    1010 *  @author GLG, MHPCC
    1111 *
    12  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-10-10 19:53:40 $
     12 *  @version $Revision: 1.2.10.1 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-12-07 20:08:35 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    118118pmPSFClump;
    119119
    120 typedef int pmModelType;
    121 #define PS_MODEL_GAUSS 0
    122 #define PS_MODEL_PGAUSS 1
    123 #define PS_MODEL_QGAUSS 2
    124 #define PS_MODEL_SGAUSS 3
    125 
     120typedef enum {
     121    PM_MODEL_UNTRIED,               ///< model fit not yet attempted
     122    PM_MODEL_SUCCESS,               ///< model fit succeeded
     123    PM_MODEL_NONCONVERGE,           ///< model fit did not converge
     124    PM_MODEL_OFFIMAGE,              ///< model fit drove out of range
     125    PM_MODEL_BADARGS                ///< model fit called with invalid args
     126} pmModelStatus;
    126127
    127128/** pmModel data structure
     
    142143    int nDOF;    ///< number of degrees of freedom
    143144    int nIter;    ///< number of iterations to reach min
     145    int status;         ///< fit status
    144146    float radius;   ///< fit radius actually used
    145147}
     
    194196    pmModel *modelFLT;   ///< FLT (floating) Model fit (parameters and type).
    195197    pmSourceType type;   ///< Best identification of object.
     198    float apMag;
     199    float fitMag;
    196200}
    197201pmSource;
     
    507511    psImage *mask,   ///< The image pixel mask (valid == 0)
    508512    pmModel *model,   ///< The input pmModel
    509     bool center    ///< A boolean flag that determines whether pixels are centered
     513    bool center,    ///< A boolean flag that determines whether pixels are centered
     514    bool sky        ///< A boolean flag that determines if the sky is subtracted
    510515);
    511516
     
    525530    psImage *mask,   ///< The image pixel mask (valid == 0)
    526531    pmModel *model,   ///< The input pmModel
    527     bool center    ///< A boolean flag that determines whether pixels are centered
     532    bool center,    ///< A boolean flag that determines whether pixels are centered
     533    bool sky        ///< A boolean flag that determines if the sky is subtracted
    528534);
    529535
Note: See TracChangeset for help on using the changeset viewer.