24 #ifndef LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED 25 #define LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED 39 namespace lsst {
namespace meas {
namespace modelfit {
54 "shapelet order for this component; negative to disable this component completely" 58 "sigma (in pixels) in an isotropic 2-d Gaussian prior on the center of this shapelet component, " 59 "relative to the center of the PSF image" 63 "sigma in an isotropic 2-d Gaussian prior on the conformal-shear ellipticity eta" 67 "Sets the fiducial radius of this component relative to the 'primary radius' of the PSF: either " 68 "the second-moments radius of the PSF image (in an initial fit), or the radius of the primary " 69 "component in a previous fit. Ignored if the previous fit included this component (as then we " 70 "can just use that radius)." 74 "sigma in a Gaussian prior on ln(radius/fiducialRadius)" 91 inner(-1, 0.5), primary(0, 1.0), wings(0, 2.0), outer(-1, 4.0), defaultNoiseSigma(0.001)
96 "Innermost shapelet expansion, used to fit PSFs with very sharp cores" 101 "Primary shapelet expansion, typically used to fit the bulk of the PSF " 106 "Wing shapelet expansion (between primary and outer), typically used to fit the wings of the PSF" 111 "Outermost shapelet expansion, used to fit PSFs with very broad wings" 116 "Configuration of the optimizer used to do the fitting" 120 defaultNoiseSigma,
double,
"Default value for the noiseSigma parameter in GeneralPsfFitter.apply()" 217 int * pState =
nullptr 223 int * pState =
nullptr 247 int * pState =
nullptr 253 int * pState =
nullptr 317 ndarray::Array<Pixel const,2,1>
const &
image,
321 ndarray::Array<Scalar const,1,1>
const & fixed
324 void computeModelMatrix(
325 ndarray::Array<Pixel,2,-1>
const & modelMatrix,
326 ndarray::Array<Scalar const,1,1>
const & nonlinear,
327 bool doApplyWeights=
true 339 #endif // !LSST_MEAS_MODELFIT_GeneralPsfFitter_h_INCLUDED
Likelihood object used to fit multishapelet models to PSF model images; mostly for internal use by Ge...
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
Class that maps MultiShapeletFunction objects to fields in afw::table objects.
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()
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
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.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
Abstract base class and concrete factories that define multi-shapelet galaxy models.
Utility class for handling flag fields that indicate the failure modes of an algorithm.
A base class for image defects.
static base::FlagDefinition const FAILURE
A multi-scale shapelet function.
double positionPriorSigma
"sigma (in pixels) in an isotropic 2-d Gaussian prior on the center of this shapelet component...
#define LSST_NESTED_CONTROL_FIELD(NAME, MODULE, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs, for nested control object...
afw::table::Key< double > sigma
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.
def measure(mi, x, y, size, statistic, stats)
double ellipticityPriorSigma
"sigma in an isotropic 2-d Gaussian prior on the conformal-shear ellipticity eta" ; ...
Record class that contains measurements made on a single exposure.
Control object used to configure a multishapelet fit to a PSF model; see GeneralPsfFitter.
static base::FlagDefinition const CONTAINS_NAN
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
vector-type utility class to build a collection of FlagDefinitions
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