IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 22, 2007, 2:55:49 PM (19 years ago)
Author:
magnier
Message:

adjusted pmModel.h to allow pmModel to use functions which use pmModel
as an argument.

adjusted the order of the pmPSF.h entries to allow that as an argument
as well

changed pmPSF I/O functions to load/save the psf on the
chip->analysis, not the readout->analysis

fixed the modelRadius function for PGAUSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070817/psModules/src/objects/pmModel.h

    r14546 r14612  
    55 * @author EAM, IfA
    66 *
    7  * @version $Revision: 1.11.6.2 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-08-20 01:58:16 $
     7 * @version $Revision: 1.11.6.3 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-08-23 00:55:49 $
    99 *
    1010 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1414# define PM_MODEL_H
    1515
    16 # define TMP_PSF_TYPE void
    17 # define TMP_MODEL_TYPE void
    18 # define TMP_SOURCE_TYPE void
    19 
    2016/// @addtogroup Objects Object Detection / Analysis Functions
    2117/// @{
     
    2319/* pointers for the functions types below are supplied to each pmModel, and can be used by
    2420   the programmer without needing to know the model class */
    25 
    26 // type of model carried by the pmModel structure
    27 typedef int pmModelType;
    2821
    2922typedef enum {
     
    4841} pmModelOpMode;
    4942
     43typedef struct pmModel pmModel;
     44typedef struct pmSource pmSource;
     45
    5046//  This function is the model chi-square minimization function for this model.
    5147typedef psMinimizeLMChi2Func pmModelFunc;
     
    6359//  This function provides the model guess parameters based on the details of
    6460//  the given source.
    65 typedef bool (*pmModelGuessFunc)(TMP_MODEL_TYPE *model, TMP_SOURCE_TYPE *source);
     61typedef bool (*pmModelGuessFunc)(pmModel *model, pmSource *source);
    6662
    6763//  This function constructs the PSF model for the given source based on the
    6864//  supplied psf and the EXT model for the object.
    69 typedef bool (*pmModelFromPSFFunc)(TMP_MODEL_TYPE *modelPSF, TMP_MODEL_TYPE *modelEXT, TMP_PSF_TYPE *psf);
     65typedef bool (*pmModelFromPSFFunc)(pmModel *modelPSF, pmModel *modelEXT, pmPSF *psf);
    7066
    7167//  This function sets the model parameters based on the PSF for a given coordinate and central
    7268//  intensity
    73 typedef bool (*pmModelParamsFromPSF)(TMP_MODEL_TYPE *model, TMP_PSF_TYPE *psf, float Xo, float Yo, float Io);
     69typedef bool (*pmModelParamsFromPSF)(pmModel *model, pmPSF *psf, float Xo, float Yo, float Io);
    7470
    7571//  This function returns the success / failure status of the given model fit
    76 typedef bool (*pmModelFitStatusFunc)(TMP_MODEL_TYPE *model);
     72typedef bool (*pmModelFitStatusFunc)(pmModel *model);
    7773
    7874/** pmModel data structure
     
    8581 *
    8682 */
    87 typedef struct
    88 {
     83struct pmModel {
    8984    pmModelType type;                   ///< Model to be used.
    9085    psVector *params;                   ///< Paramater values.
     
    107102    pmModelParamsFromPSF modelParamsFromPSF;
    108103    pmModelFitStatusFunc modelFitStatus;
    109 } pmModel;
     104};
    110105
    111106/** Symbolic names for the elements of [d]params
Note: See TracChangeset for help on using the changeset viewer.