LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
LSSTDataManagementBasePackage
|
#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(). 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... | |
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 265 of file GeneralPsfFitter.h.
Definition at line 276 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. |
|
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. |
|
inlineinherited |
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. |
Definition at line 219 of file GeneralPsfFitter.h.
|
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. |
|
inlineinherited |
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. |
Definition at line 249 of file GeneralPsfFitter.h.
void lsst::meas::modelfit::GeneralPsfFitterAlgorithm::fail | ( | afw::table::SourceRecord & | measRecord, |
lsst::meas::base::MeasurementError * | error = nullptr |
||
) | const |
|
static |
|
inline |
Definition at line 283 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 172 of file GeneralPsfFitter.h.
|
inlineinherited |
void lsst::meas::modelfit::GeneralPsfFitterAlgorithm::measure | ( | afw::table::SourceRecord & | measRecord, |
afw::image::Image< double > const & | image, | ||
shapelet::MultiShapeletFunction const & | initial | ||
) | const |
void lsst::meas::modelfit::GeneralPsfFitterAlgorithm::measure | ( | afw::table::SourceRecord & | measRecord, |
afw::image::Image< double > const & | image, | ||
afw::geom::ellipses::Quadrupole const & | moments | ||
) | const |
|
static |
Definition at line 274 of file GeneralPsfFitter.h.
|
static |
Definition at line 273 of file GeneralPsfFitter.h.
|
static |
Definition at line 270 of file GeneralPsfFitter.h.
|
static |
Definition at line 271 of file GeneralPsfFitter.h.
|
static |
Definition at line 272 of file GeneralPsfFitter.h.