Class SimpleAlgorithm¶
Defined in File Algorithm.h
Inheritance Relationships¶
Base Types¶
public lsst::meas::base::SingleFrameAlgorithm
(Class SingleFrameAlgorithm)public lsst::meas::base::ForcedAlgorithm
(Class ForcedAlgorithm)
Derived Types¶
public lsst::ip::diffim::DipoleCentroidAlgorithm
(Class DipoleCentroidAlgorithm)public lsst::ip::diffim::DipoleFluxAlgorithm
(Class DipoleFluxAlgorithm)public lsst::meas::base::ApertureFluxAlgorithm
(Class ApertureFluxAlgorithm)public lsst::meas::base::BlendednessAlgorithm
(Class BlendednessAlgorithm)public lsst::meas::base::GaussianFluxAlgorithm
(Class GaussianFluxAlgorithm)public lsst::meas::base::LocalBackgroundAlgorithm
(Class LocalBackgroundAlgorithm)public lsst::meas::base::NaiveCentroidAlgorithm
(Class NaiveCentroidAlgorithm)public lsst::meas::base::PeakLikelihoodFluxAlgorithm
(Class PeakLikelihoodFluxAlgorithm)public lsst::meas::base::PixelFlagsAlgorithm
(Class PixelFlagsAlgorithm)public lsst::meas::base::PsfFluxAlgorithm
(Class PsfFluxAlgorithm)public lsst::meas::base::ScaledApertureFluxAlgorithm
(Class ScaledApertureFluxAlgorithm)public lsst::meas::base::SdssCentroidAlgorithm
(Class SdssCentroidAlgorithm)public lsst::meas::base::SdssShapeAlgorithm
(Class SdssShapeAlgorithm)public lsst::meas::extensions::photometryKron::KronFluxAlgorithm
(Class KronFluxAlgorithm)public lsst::meas::extensions::simpleShape::SimpleShape
(Class SimpleShape)public lsst::meas::modelfit::DoubleShapeletPsfApproxAlgorithm
(Class DoubleShapeletPsfApproxAlgorithm)
Class Documentation¶
-
class
SimpleAlgorithm
: public lsst::meas::base::SingleFrameAlgorithm, public lsst::meas::base::ForcedAlgorithm¶ An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm and ForcedAlgorithm.
SimpleAlgorithm allows a ForcedAlgorithm to be defined using the measure() and measureN() signatures of SingleFrameAlgorithm. It should be used for any algorithm for which the forced version of the algorithm does not require anything to be transformed beyond the centroid and shape, and for which the the parameters being fit are the same for both single-frame and forced measurement. This should be the case for all flux algorithms that don’t involve fitting any additional model parameters. It can also be used for centroid and shape algorithms, where having a version that can re-measure values in forced mode may be useful for diagnostic purposes even if it is not useful for science.
Subclassed by lsst::ip::diffim::DipoleCentroidAlgorithm, lsst::ip::diffim::DipoleFluxAlgorithm, lsst::meas::base::ApertureFluxAlgorithm, lsst::meas::base::BlendednessAlgorithm, lsst::meas::base::GaussianFluxAlgorithm, lsst::meas::base::LocalBackgroundAlgorithm, lsst::meas::base::NaiveCentroidAlgorithm, lsst::meas::base::PeakLikelihoodFluxAlgorithm, lsst::meas::base::PixelFlagsAlgorithm, lsst::meas::base::PsfFluxAlgorithm, lsst::meas::base::ScaledApertureFluxAlgorithm, lsst::meas::base::SdssCentroidAlgorithm, lsst::meas::base::SdssShapeAlgorithm, lsst::meas::extensions::photometryKron::KronFluxAlgorithm, lsst::meas::extensions::simpleShape::SimpleShape, lsst::meas::modelfit::DoubleShapeletPsfApproxAlgorithm
Public Functions
-
virtual void
measureForced
(afw::table::SourceRecord &measRecord, afw::image::Exposure<float> const &exposure, afw::table::SourceRecord const &refRecord, afw::geom::SkyWcs const &refWcs) const¶ Called to measure a single child source in an image.
Before this method is called, all neighbors will be replaced with noise, using the outputs of the deblender. Outputs should be saved in the given SourceRecord, which can also be used to obtain centroid (see SafeCentroidExtractor) and shape (see SafeShapeExtractor) information.
-
virtual void
measureNForced
(afw::table::SourceCatalog const &measCat, afw::image::Exposure<float> const &exposure, afw::table::SourceCatalog const &refRecord, afw::geom::SkyWcs const &refWcs) const¶ Called to simultaneously measure all children in a deblend family, in a single image.
Outputs should be saved in the given SourceCatalog, which can also be used to obtain centroid (see SafeCentroidExtractor) and shape (see SafeShapeExtractor) information.
The default implementation simply throws an exception, indicating that simultaneous measurement is not supported.
-
virtual void