IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2007, 2:11:02 PM (19 years ago)
Author:
magnier
Message:
  • added function pointers to pmModel to provide class-dependent functions
  • dropped pmModel*_GetFunction functions (use pmModel->func functions instead)
  • added modelParamsFromPSF functions to model classes
  • changed pmModelGroup to pmModelClass
  • added pmSourceFitSet.[ch]
  • updated pmSourceFitSet to allow variable model classes
  • added functions to add/sub and eval models & sources with an offset between image and chip
  • added function to set a pmModel flux
  • added function to instatiate a pmModel from a pmPSF at a coordinate
  • moved pmPSF I/O to chip->analysis from readout->analysis
  • changed pmPSF I/O function names from *ForPSFmodel to pmPSFmodel*
  • changed pmModel.params_NEW back to pmModel.params
  • changed pmFind*Peaks to pmPeaksIn* (* = Image,Vector)
  • dropped pmCullPeaks (deprecated)
  • changed pmModelSetType to pmModelClassGetType
  • changed pmModelGetType to pmModelClassGetName
  • fixed PGAUSS implementation of modelRadius function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmModelGroup.c

    r14325 r14652  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-07-20 00:31:43 $
     8 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-08-24 00:11:02 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2828#include "pmResiduals.h"
    2929#include "pmModel.h"
    30 #include "pmResiduals.h"
    31 #include "pmPSF.h"
    32 #include "pmSource.h"
    3330#include "pmModelGroup.h"
    3431#include "pmErrorCodes.h"
     
    198195    return (models[type].name);
    199196}
    200 
    201 /******************************************************************************
    202     pmSourceModelGuess(source, model): This function allocates a new
    203     pmModel structure based on the given modelType specified in the argument list.
    204     The corresponding pmModelGuess function is returned, and used to
    205     supply the values of the params array in the pmModel structure.
    206  
    207     XXX: Many parameters are based on the src->moments structure, which is in
    208     image, not subImage coords.  Therefore, the calls to the model evaluation
    209     functions will be in image, not subImage coords.  Remember this.
    210 *****************************************************************************/
    211 pmModel *pmSourceModelGuess(pmSource *source,
    212                             pmModelType modelType)
    213 {
    214     psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    215     PS_ASSERT_PTR_NON_NULL(source, NULL);
    216     PS_ASSERT_PTR_NON_NULL(source->moments, NULL);
    217     PS_ASSERT_PTR_NON_NULL(source->peak, NULL);
    218 
    219     pmModel *model = pmModelAlloc(modelType);
    220 
    221     pmModelGuessFunc modelGuessFunc = pmModelGuessFunc_GetFunction(modelType);
    222     if (!modelGuessFunc(model, source)) {
    223         psFree (model);
    224         return NULL;
    225     }
    226 
    227     psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    228     return(model);
    229 }
    230 
Note: See TracChangeset for help on using the changeset viewer.