24 #ifndef LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED 25 #define LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED 29 #include "lsst/pex/config.h" 41 namespace lsst {
namespace meas {
namespace modelfit {
56 "shapelet order for this component; negative to disable this component completely" 60 "sigma (in pixels) in an isotropic 2-d Gaussian prior on the center of this shapelet component, " 61 "relative to the center of the PSF image" 65 "sigma in an isotropic 2-d Gaussian prior on the conformal-shear ellipticity eta" 69 "Sets the fiducial radius of this component relative to the 'primary radius' of the PSF: either " 70 "the second-moments radius of the PSF image (in an initial fit), or the radius of the primary " 71 "component in a previous fit. Ignored if the previous fit included this component (as then we " 72 "can just use that radius)." 76 "sigma in a Gaussian prior on ln(radius/fiducialRadius)" 93 inner(-1, 0.5), primary(0, 1.0), wings(0, 2.0), outer(-1, 4.0), defaultNoiseSigma(0.001)
96 LSST_NESTED_CONTROL_FIELD(
98 "Innermost shapelet expansion, used to fit PSFs with very sharp cores" 101 LSST_NESTED_CONTROL_FIELD(
103 "Primary shapelet expansion, typically used to fit the bulk of the PSF " 106 LSST_NESTED_CONTROL_FIELD(
108 "Wing shapelet expansion (between primary and outer), typically used to fit the wings of the PSF" 111 LSST_NESTED_CONTROL_FIELD(
113 "Outermost shapelet expansion, used to fit PSFs with very broad wings" 116 LSST_NESTED_CONTROL_FIELD(
118 "Configuration of the optimizer used to do the fitting" 122 defaultNoiseSigma,
double,
"Default value for the noiseSigma parameter in GeneralPsfFitter.apply()" 219 int * pState =
nullptr 225 int * pState =
nullptr 249 int * pState =
nullptr 255 int * pState =
nullptr 319 ndarray::Array<Pixel const,2,1>
const &
image,
323 ndarray::Array<Scalar const,1,1>
const & fixed
326 void computeModelMatrix(
327 ndarray::Array<Pixel,2,-1>
const & modelMatrix,
328 ndarray::Array<Scalar const,1,1>
const & nonlinear,
329 bool doApplyWeights=
true 341 #endif // !LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED
Likelihood object used to fit multishapelet models to PSF model images; mostly for internal use by Ge...
GeneralPsfFitterComponentControl(int order_=0, double radiusFactor_=1.0)
double radiusPriorSigma
"sigma in a Gaussian prior on ln(radius/fiducialRadius)" ;
static base::FlagDefinition const MAX_OUTER_ITERATIONS
GeneralPsfFitterControl()
GeneralPsfFitterControl Control
double Scalar
Typedefs to be used for probability and parameter values.
boost::shared_ptr< Model > getModel() const
Return the Model object that corresponds to the configuration.
afw::table::Key< double > sigma
Abstract base class and concrete factories that define multi-shapelet galaxy models.
static base::FlagDefinition const FAILURE
double positionPriorSigma
"sigma (in pixels) in an isotropic 2-d Gaussian prior on the center of this shapelet component...
Control object used to define one piece of multishapelet fit to a PSF model; see GeneralPsfFitterCont...
shapelet::MultiShapeletFunctionKey getKey()
Configuration object for Optimizer.
static base::FlagDefinition const MAX_INNER_ITERATIONS
Base class for Bayesian priors.
Base class for optimizer/sampler likelihood functions that compute likelihood at a point...
Class for fitting multishapelet models to PSF images.
double radiusFactor
"Sets the fiducial radius of this component relative to the 'primary radius' of the PSF: either " "th...
shapelet::MultiShapeletFunction apply(afw::image::Image< double > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const
Perform an initial fit to a PSF image.
double ellipticityPriorSigma
"sigma in an isotropic 2-d Gaussian prior on the conformal-shear ellipticity eta" ; ...
Control object used to configure a multishapelet fit to a PSF model; see GeneralPsfFitter.
static base::FlagDefinition const CONTAINS_NAN
int order
"shapelet order for this component; negative to disable this component completely" ; ...
shapelet::MultiShapeletFunction apply(afw::image::Image< double > const &image, shapelet::MultiShapeletFunction const &initial, Scalar noiseSigma=-1, int *pState=nullptr) const
Perform a fit to a PSF image, using a previous fit as a starting point.
boost::shared_ptr< Prior > getPrior() const
Return the Prior object that corresponds to the configuration.
static base::FlagDefinition const EXCEPTION