#include <GeneralPsfFitter.h>
|
| GeneralPsfFitterAlgorithm (GeneralPsfFitterControl const &ctrl, afw::table::Schema &schema, std::string const &prefix) |
|
shapelet::MultiShapeletFunctionKey | getKey () |
|
void | measure (afw::table::SourceRecord &measRecord, afw::image::Image< double > const &image, shapelet::MultiShapeletFunction const &initial) const |
|
void | measure (afw::table::SourceRecord &measRecord, afw::image::Image< double > const &image, afw::geom::ellipses::Quadrupole const &moments) const |
|
void | fail (afw::table::SourceRecord &measRecord, lsst::meas::base::MeasurementError *error=nullptr) const |
|
shapelet::MultiShapeletFunctionKey | addFields (afw::table::Schema &schema, std::string const &prefix) const |
| Add fields to a Schema that can be used to store the MultiShapeletFunction returned by apply(). More...
|
|
boost::shared_ptr< Model > | getModel () const |
| Return the Model object that corresponds to the configuration. More...
|
|
boost::shared_ptr< Prior > | getPrior () const |
| Return the Prior object that corresponds to the configuration. More...
|
|
shapelet::MultiShapeletFunction | adapt (shapelet::MultiShapeletFunction const &previousFit, boost::shared_ptr< Model > previousModel) const |
| Adapt a differently-configured previous fit to be used as an starting point for this GeneralPsfFitter. More...
|
|
|
shapelet::MultiShapeletFunction | apply (afw::image::Image< Pixel > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const |
| Perform an initial fit to a PSF image. More...
|
|
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. More...
|
|
|
shapelet::MultiShapeletFunction | apply (afw::image::Image< Pixel > 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. More...
|
|
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. More...
|
|
Definition at line 265 of file GeneralPsfFitter.h.
◆ Control
◆ GeneralPsfFitterAlgorithm()
◆ adapt()
Adapt a differently-configured previous fit to be used as an starting point for this GeneralPsfFitter.
- Parameters
-
- Returns
- a new MultiShapelet function that may be passed directly to apply(). When possible, the ellipse and shapelet coefficeints will be copied from previousFit; higher-order coefficients will be set to zero, and any components used in this but unused in the previous fit will have their ellipses set relative to the previous fit's "primary" component.
◆ addFields()
Add fields to a Schema that can be used to store the MultiShapeletFunction returned by apply().
- Parameters
-
[in,out] | schema | Schema to add fields to. |
[in] | prefix | Field name prefix for all fields. |
- Returns
- a FunctorKey that can get/set MultiShapeletFunctions that match the configuration of this fitter on a record.
◆ apply() [1/4]
Perform an initial fit to a PSF image.
- Parameters
-
[in] | image | The image to fit, typically the result of Psf::computeKernelImage(). The image's xy0 should be set such that the center of the PSF is at (0,0). |
[in] | moments | Second moments of the PSF, typically result of Psf::computeShape() or running some other adaptive moments code on the PSF image. This will be used to set the initial ellipses of the multishapelet model. |
[in] | noiseSigma | An estimate of the noise in the image. As LSST PSF images are generally assumed to be noise-free, this is really just a fiddle-factor for the user. A default value from the control object is used if this is negative. |
[in] | pState | Pointer to an integer which is used to return the optimizerState from apply. |
◆ apply() [2/4]
Perform an initial fit to a PSF image.
- Parameters
-
[in] | image | The image to fit, typically the result of Psf::computeKernelImage(). The image's xy0 should be set such that the center of the PSF is at (0,0). |
[in] | moments | Second moments of the PSF, typically result of Psf::computeShape() or running some other adaptive moments code on the PSF image. This will be used to set the initial ellipses of the multishapelet model. |
[in] | noiseSigma | An estimate of the noise in the image. As LSST PSF images are generally assumed to be noise-free, this is really just a fiddle-factor for the user. A default value from the control object is used if this is negative. |
[in] | pState | Pointer to an integer which is used to return the optimizerState from apply. |
Definition at line 219 of file GeneralPsfFitter.h.
225 return apply(afw::image::Image<float>(
image,
true),
moments, noiseSigma, pState);
shapelet::MultiShapeletFunction apply(afw::image::Image< Pixel > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const
Perform an initial fit to a PSF image.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
◆ apply() [3/4]
Perform a fit to a PSF image, using a previous fit as a starting point.
- Parameters
-
[in] | image | The image to fit, typically the result of Psf::computeKernelImage(). The image's xy0 should be set such that the center of the PSF is at (0,0). |
[in] | initial | The result of a previous call to apply(), using an identically-configured GeneralPsfFitter instance. To use a result from a differently-configured GeneralPsfFitter, use adapt(). |
[in] | noiseSigma | An estimate of the noise in the image. As LSST PSF images are generally assumed to be noise-free, this is really just a fiddle-factor for the user. A default value from the control object is used if this is negative. |
[in] | pState | Pointer to an integer which is used to return the optimizerState from apply. |
◆ apply() [4/4]
Perform a fit to a PSF image, using a previous fit as a starting point.
- Parameters
-
[in] | image | The image to fit, typically the result of Psf::computeKernelImage(). The image's xy0 should be set such that the center of the PSF is at (0,0). |
[in] | initial | The result of a previous call to apply(), using an identically-configured GeneralPsfFitter instance. To use a result from a differently-configured GeneralPsfFitter, use adapt(). |
[in] | noiseSigma | An estimate of the noise in the image. As LSST PSF images are generally assumed to be noise-free, this is really just a fiddle-factor for the user. A default value from the control object is used if this is negative. |
[in] | pState | Pointer to an integer which is used to return the optimizerState from apply. |
Definition at line 249 of file GeneralPsfFitter.h.
255 return apply(afw::image::Image<float>(
image,
true), initial, noiseSigma);
shapelet::MultiShapeletFunction apply(afw::image::Image< Pixel > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const
Perform an initial fit to a PSF image.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
◆ fail()
◆ getFlagDefinitions()
◆ getKey()
◆ getModel()
boost::shared_ptr< Model > lsst::meas::modelfit::GeneralPsfFitter::getModel |
( |
| ) |
const |
|
inlineinherited |
Return the Model object that corresponds to the configuration.
In addition to the shapelet coefficients (stored in the "amplitudes" array), this Model stores all the initial ellipse parameters in the "fixed" array, as these are used to define the center of the prior; the "nonlinear" parameters are the free-to-vary ellipse parameters minus the corresponding initial values.
Definition at line 172 of file GeneralPsfFitter.h.
◆ getPrior()
boost::shared_ptr< Prior > lsst::meas::modelfit::GeneralPsfFitter::getPrior |
( |
| ) |
const |
|
inlineinherited |
Return the Prior object that corresponds to the configuration.
This Prior class only supports evaluate() and evaluateDerivatives(), reflecting the fact that we only intend to use it with a Optimizer, not a Sampler.
Definition at line 180 of file GeneralPsfFitter.h.
◆ measure() [1/2]
◆ measure() [2/2]
◆ CONTAINS_NAN
◆ EXCEPTION
◆ FAILURE
◆ MAX_INNER_ITERATIONS
◆ MAX_OUTER_ITERATIONS
The documentation for this class was generated from the following file:
- /j/snowflake/release/lsstsw/stack/Linux64/meas_modelfit/18.1.0/include/lsst/meas/modelfit/GeneralPsfFitter.h