Intermediate base class for algorithms that compute a centroid.
More...
#include <DipoleAlgorithms.h>
|
| | NaiveDipoleCentroid (Control const &ctrl, std::string const &name, afw::table::Schema &schema) |
| |
| ResultKey const & | getCenterKeys () const |
| | Return the standard centroid keys registered by this algorithm. More...
|
| |
| ResultKey const & | getPositiveKeys () const |
| |
| ResultKey const & | getNegativeKeys () const |
| |
| void | measure (afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const |
| | Given an image and a pixel position, return a Centroid using a naive 3x3 weighted moment. More...
|
| |
| void | mergeCentroids (afw::table::SourceRecord &source, double posValue, double negValue) const |
| |
| void | fail (afw::table::SourceRecord &measRecord, meas::base::MeasurementError *error=NULL) const |
| |
|
| static meas::base::FlagDefinition const | FAILURE = dipoleCentroidFlagDefinitions.addFailureFlag("general failure flag, set if anything went wrong") |
| |
| static meas::base::FlagDefinition const | POS_FLAG = dipoleCentroidFlagDefinitions.add("pos_flag", "failure flag for positive, set if anything went wrong") |
| |
| static meas::base::FlagDefinition const | NEG_FLAG = dipoleCentroidFlagDefinitions.add("neg_flag", "failure flag for negative, set if anything went wrong") |
| |
Intermediate base class for algorithms that compute a centroid.
Definition at line 243 of file DipoleAlgorithms.h.
◆ Control
◆ ResultKey
Tuple type that holds the keys that define a standard centroid algorithm.
Algorithms are encouraged to add additional flags as appropriate, but these are required.
Definition at line 252 of file DipoleAlgorithms.h.
◆ NaiveDipoleCentroid() [1/2]
| lsst::ip::diffim::NaiveDipoleCentroid::NaiveDipoleCentroid |
( |
Control const & |
ctrl, |
|
|
std::string const & |
name, |
|
|
afw::table::Schema & |
schema |
|
) |
| |
◆ NaiveDipoleCentroid() [2/2]
| lsst::ip::diffim::NaiveDipoleCentroid::NaiveDipoleCentroid |
( |
Control const & |
ctrl, |
|
|
std::string const & |
name, |
|
|
afw::table::Schema & |
schema, |
|
|
ResultKey const & |
positiveKeys, |
|
|
ResultKey const & |
negativeKeys |
|
) |
| |
|
protected |
Initialize with a manually-constructed key tuple.
◆ fail()
| void lsst::ip::diffim::NaiveDipoleCentroid::fail |
( |
afw::table::SourceRecord & |
measRecord, |
|
|
meas::base::MeasurementError * |
error = NULL |
|
) |
| const |
◆ getCenterKeys()
| ResultKey const& lsst::ip::diffim::NaiveDipoleCentroid::getCenterKeys |
( |
| ) |
const |
|
inline |
Return the standard centroid keys registered by this algorithm.
Definition at line 255 of file DipoleAlgorithms.h.
◆ getFlagDefinitions()
| meas::base::FlagDefinitionList const & lsst::ip::diffim::DipoleCentroidAlgorithm::getFlagDefinitions |
( |
| ) |
|
|
staticinherited |
◆ getNegativeKeys()
| ResultKey const& lsst::ip::diffim::NaiveDipoleCentroid::getNegativeKeys |
( |
| ) |
const |
|
inline |
◆ getPositiveKeys()
| ResultKey const& lsst::ip::diffim::NaiveDipoleCentroid::getPositiveKeys |
( |
| ) |
const |
|
inline |
◆ measure()
| void lsst::ip::diffim::NaiveDipoleCentroid::measure |
( |
afw::table::SourceRecord & |
measRecord, |
|
|
afw::image::Exposure< float > const & |
exposure |
|
) |
| const |
Given an image and a pixel position, return a Centroid using a naive 3x3 weighted moment.
Definition at line 156 of file DipoleAlgorithms.cc.
◆ mergeCentroids()
| void lsst::ip::diffim::NaiveDipoleCentroid::mergeCentroids |
( |
afw::table::SourceRecord & |
source, |
|
|
double |
posValue, |
|
|
double |
negValue |
|
) |
| const |
◆ _centerKeys
| ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_centerKeys |
|
protectedinherited |
◆ _ctrl
| Control lsst::ip::diffim::NaiveDipoleCentroid::_ctrl |
|
private |
◆ _flagHandler
| meas::base::FlagHandler lsst::ip::diffim::NaiveDipoleCentroid::_flagHandler |
|
private |
◆ _fluxResultKey
| meas::base::FluxResultKey lsst::ip::diffim::NaiveDipoleCentroid::_fluxResultKey |
|
private |
◆ _negativeKeys
| ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_negativeKeys |
|
protectedinherited |
◆ _positiveKeys
| ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_positiveKeys |
|
protectedinherited |
◆ FAILURE
| meas::base::FlagDefinition const lsst::ip::diffim::DipoleCentroidAlgorithm::FAILURE = dipoleCentroidFlagDefinitions.addFailureFlag("general failure flag, set if anything went wrong") |
|
staticinherited |
◆ NEG_FLAG
| meas::base::FlagDefinition const lsst::ip::diffim::DipoleCentroidAlgorithm::NEG_FLAG = dipoleCentroidFlagDefinitions.add("neg_flag", "failure flag for negative, set if anything went wrong") |
|
staticinherited |
◆ POS_FLAG
| meas::base::FlagDefinition const lsst::ip::diffim::DipoleCentroidAlgorithm::POS_FLAG = dipoleCentroidFlagDefinitions.add("pos_flag", "failure flag for positive, set if anything went wrong") |
|
staticinherited |
The documentation for this class was generated from the following files: