- Timestamp:
- Aug 22, 2007, 2:55:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/objects/pmModel.h
r14546 r14612 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.11.6. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-08-2 0 01:58:16$7 * @version $Revision: 1.11.6.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-08-23 00:55:49 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 14 14 # define PM_MODEL_H 15 15 16 # define TMP_PSF_TYPE void17 # define TMP_MODEL_TYPE void18 # define TMP_SOURCE_TYPE void19 20 16 /// @addtogroup Objects Object Detection / Analysis Functions 21 17 /// @{ … … 23 19 /* pointers for the functions types below are supplied to each pmModel, and can be used by 24 20 the programmer without needing to know the model class */ 25 26 // type of model carried by the pmModel structure27 typedef int pmModelType;28 21 29 22 typedef enum { … … 48 41 } pmModelOpMode; 49 42 43 typedef struct pmModel pmModel; 44 typedef struct pmSource pmSource; 45 50 46 // This function is the model chi-square minimization function for this model. 51 47 typedef psMinimizeLMChi2Func pmModelFunc; … … 63 59 // This function provides the model guess parameters based on the details of 64 60 // the given source. 65 typedef bool (*pmModelGuessFunc)( TMP_MODEL_TYPE *model, TMP_SOURCE_TYPE*source);61 typedef bool (*pmModelGuessFunc)(pmModel *model, pmSource *source); 66 62 67 63 // This function constructs the PSF model for the given source based on the 68 64 // 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);65 typedef bool (*pmModelFromPSFFunc)(pmModel *modelPSF, pmModel *modelEXT, pmPSF *psf); 70 66 71 67 // This function sets the model parameters based on the PSF for a given coordinate and central 72 68 // intensity 73 typedef bool (*pmModelParamsFromPSF)( TMP_MODEL_TYPE *model, TMP_PSF_TYPE*psf, float Xo, float Yo, float Io);69 typedef bool (*pmModelParamsFromPSF)(pmModel *model, pmPSF *psf, float Xo, float Yo, float Io); 74 70 75 71 // This function returns the success / failure status of the given model fit 76 typedef bool (*pmModelFitStatusFunc)( TMP_MODEL_TYPE*model);72 typedef bool (*pmModelFitStatusFunc)(pmModel *model); 77 73 78 74 /** pmModel data structure … … 85 81 * 86 82 */ 87 typedef struct 88 { 83 struct pmModel { 89 84 pmModelType type; ///< Model to be used. 90 85 psVector *params; ///< Paramater values. … … 107 102 pmModelParamsFromPSF modelParamsFromPSF; 108 103 pmModelFitStatusFunc modelFitStatus; 109 } pmModel;104 }; 110 105 111 106 /** Symbolic names for the elements of [d]params
Note:
See TracChangeset
for help on using the changeset viewer.
