LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
#include <GeneralPsfFitter.h>
Public Types | |
typedef GeneralPsfFitterControl | Control |
Public Member Functions | |
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(). | |
std::shared_ptr< Model > | getModel () const |
Return the Model object that corresponds to the configuration. | |
std::shared_ptr< Prior > | getPrior () const |
Return the Prior object that corresponds to the configuration. | |
shapelet::MultiShapeletFunction | adapt (shapelet::MultiShapeletFunction const &previousFit, std::shared_ptr< Model > previousModel) const |
Adapt a differently-configured previous fit to be used as an starting point for this GeneralPsfFitter. | |
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. | |
shapelet::MultiShapeletFunction | apply (afw::image::Image< double > const &image, afw::geom::ellipses::Quadrupole const &moments, Scalar noiseSigma=-1, int *pState=nullptr) const |
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. | |
shapelet::MultiShapeletFunction | apply (afw::image::Image< double > const &image, shapelet::MultiShapeletFunction const &initial, Scalar noiseSigma=-1, int *pState=nullptr) const |
Static Public Member Functions | |
static base::FlagDefinitionList const & | getFlagDefinitions () |
Static Public Attributes | |
static base::FlagDefinition const | FAILURE |
static base::FlagDefinition const | MAX_INNER_ITERATIONS |
static base::FlagDefinition const | MAX_OUTER_ITERATIONS |
static base::FlagDefinition const | EXCEPTION |
static base::FlagDefinition const | CONTAINS_NAN |
Definition at line 267 of file GeneralPsfFitter.h.
Definition at line 278 of file GeneralPsfFitter.h.
lsst::meas::modelfit::GeneralPsfFitterAlgorithm::GeneralPsfFitterAlgorithm | ( | GeneralPsfFitterControl const & | ctrl, |
afw::table::Schema & | schema, | ||
std::string const & | prefix ) |
|
inherited |
Adapt a differently-configured previous fit to be used as an starting point for this GeneralPsfFitter.
[in] | previousFit | The return value of apply() from a differently-configured instance of GeneralPsfFitter. |
[in] | previousModel | The Model associated with the GeneralPsfFitter used to create previousFit. |
|
inherited |
Add fields to a Schema that can be used to store the MultiShapeletFunction returned by apply().
[in,out] | schema | Schema to add fields to. |
[in] | prefix | Field name prefix for all fields. |
|
inlineinherited |
Definition at line 221 of file GeneralPsfFitter.h.
|
inlineinherited |
Definition at line 251 of file GeneralPsfFitter.h.
|
inherited |
Perform an initial fit to a PSF image.
[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. |
|
inherited |
Perform a fit to a PSF image, using a previous fit as a starting point.
[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. |
void lsst::meas::modelfit::GeneralPsfFitterAlgorithm::fail | ( | afw::table::SourceRecord & | measRecord, |
lsst::meas::base::MeasurementError * | error = nullptr ) const |
|
static |
|
inline |
Definition at line 285 of file GeneralPsfFitter.h.
|
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 174 of file GeneralPsfFitter.h.
|
inlineinherited |
void lsst::meas::modelfit::GeneralPsfFitterAlgorithm::measure | ( | afw::table::SourceRecord & | measRecord, |
afw::image::Image< double > const & | image, | ||
afw::geom::ellipses::Quadrupole const & | moments ) const |
void lsst::meas::modelfit::GeneralPsfFitterAlgorithm::measure | ( | afw::table::SourceRecord & | measRecord, |
afw::image::Image< double > const & | image, | ||
shapelet::MultiShapeletFunction const & | initial ) const |
|
static |
Definition at line 276 of file GeneralPsfFitter.h.
|
static |
Definition at line 275 of file GeneralPsfFitter.h.
|
static |
Definition at line 272 of file GeneralPsfFitter.h.
|
static |
Definition at line 273 of file GeneralPsfFitter.h.
|
static |
Definition at line 274 of file GeneralPsfFitter.h.