IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5720


Ignore:
Timestamp:
Dec 7, 2005, 8:51:59 AM (21 years ago)
Author:
magnier
Message:

added pmModelStatus enum

added pmModel.status element

aded pmMomentsWriteText prototype

added 'sky' argument to pmSourceSubModel, pmSourceAddModel

File:
1 edited

Legend:

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

    r5606 r5720  
    1010 *  @author GLG, MHPCC
    1111 *
    12  *  @version $Revision: 1.2.6.1 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-11-26 02:48:42 $
     12 *  @version $Revision: 1.2.6.1.2.1 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-12-07 18:51:59 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    125125// #define PS_MODEL_SGAUSS 3
    126126
     127typedef enum {
     128    PM_MODEL_UNTRIED,               ///< model fit not yet attempted
     129    PM_MODEL_SUCCESS,               ///< model fit succeeded
     130    PM_MODEL_NONCONVERGE,           ///< model fit did not converge
     131    PM_MODEL_OFFIMAGE,              ///< model fit drove out of range
     132    PM_MODEL_BADARGS                ///< model fit called with invalid args
     133} pmModelStatus;
    127134
    128135/** pmModel data structure
     
    139146    pmModelType type;   ///< Model to be used.
    140147    psVector *params;   ///< Paramater values.
    141     psVector *dparams;   ///< Parameter errors.
    142     float chisq;   ///< Fit chi-squared.
    143     int nDOF;    ///< number of degrees of freedom
    144     int nIter;    ///< number of iterations to reach min
    145     float radius;   ///< fit radius actually used
     148    psVector *dparams;  ///< Parameter errors.
     149    float chisq;        ///< Fit chi-squared.
     150    int nDOF;           ///< number of degrees of freedom
     151    int nIter;          ///< number of iterations to reach min
     152    int status;         ///< fit status (
     153    float radius;       ///< fit radius actually used
    146154}
    147155pmModel;
     
    365373);
    366374
     375bool pmMomentsWriteText (psArray *sources, char *filename);
    367376
    368377/** pmSourcePSFClump()
     
    508517bool pmSourceAddModel(
    509518    psImage *image,   ///< The output image (float)
    510     psImage *mask,   ///< The image pixel mask (valid == 0)
     519    psImage *mask,    ///< The image pixel mask (valid == 0)
    511520    pmModel *model,   ///< The input pmModel
    512     bool center    ///< A boolean flag that determines whether pixels are centered
     521    bool center,      ///< A boolean flag that determines whether pixels are centered
     522    bool sky          ///< A boolean flag that determines if the sky is subtracted as well
    513523);
    514524
     
    526536bool pmSourceSubModel(
    527537    psImage *image,   ///< The output image (float)
    528     psImage *mask,   ///< The image pixel mask (valid == 0)
     538    psImage *mask,    ///< The image pixel mask (valid == 0)
    529539    pmModel *model,   ///< The input pmModel
    530     bool center    ///< A boolean flag that determines whether pixels are centered
     540    bool center,      ///< A boolean flag that determines whether pixels are centered
     541    bool sky          ///< A boolean flag that determines if the sky is subtracted as well
    531542);
    532543
Note: See TracChangeset for help on using the changeset viewer.