/* @file  pmModelUtils.h
 *
 * Utility functions for working with pmSources
 *
 * @author EAM, IfA
 *
 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
 * @date $Date: 2007-08-24 00:11:02 $
 * Copyright 2007 IfA, University of Hawaii
 */

# ifndef PM_MODEL_UTILS_H
# define PM_MODEL_UTILS_H

/// @addtogroup Objects Object Detection / Analysis Functions
/// @{

/**
 *
 * This function constructs a pmModel instance based on the pmPSF description
 * of the PSF. The input is a pmModel with at least the values of the centroid
 * coordinates (possibly normalization if this is needed) defined. The values of
 * the PSF-dependent parameters are specified for the specific realization based
 * on the coordinates of the object.
 *
 */
pmModel *pmModelFromPSF(
    pmModel *model,                     ///< Add comment
    pmPSF *psf                          ///< Add comment
);

pmModel *pmModelFromPSFforXY (
    pmPSF *psf, 
    float Xo, 
    float Yo, 
    float Io
    );

bool pmModelSetFlux (
    pmModel *model, 
    float flux
    );



/// @}
# endif /* PM_MODEL_UTILS_H */
