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.
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.
lsst::ip::diffim::NaiveDipoleCentroid::NaiveDipoleCentroid |
( |
Control const & |
ctrl, |
|
|
std::string const & |
name, |
|
|
afw::table::Schema & |
schema |
|
) |
| |
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.
void lsst::ip::diffim::NaiveDipoleCentroid::fail |
( |
afw::table::SourceRecord & |
measRecord, |
|
|
meas::base::MeasurementError * |
error = NULL |
|
) |
| const |
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.
meas::base::FlagDefinitionList const & lsst::ip::diffim::DipoleCentroidAlgorithm::getFlagDefinitions |
( |
| ) |
|
|
staticinherited |
ResultKey const& lsst::ip::diffim::NaiveDipoleCentroid::getNegativeKeys |
( |
| ) |
const |
|
inline |
ResultKey const& lsst::ip::diffim::NaiveDipoleCentroid::getPositiveKeys |
( |
| ) |
const |
|
inline |
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.
void lsst::ip::diffim::NaiveDipoleCentroid::mergeCentroids |
( |
afw::table::SourceRecord & |
source, |
|
|
double |
posValue, |
|
|
double |
negValue |
|
) |
| const |
ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_centerKeys |
|
protectedinherited |
Control lsst::ip::diffim::NaiveDipoleCentroid::_ctrl |
|
private |
meas::base::FlagHandler lsst::ip::diffim::NaiveDipoleCentroid::_flagHandler |
|
private |
meas::base::FluxResultKey lsst::ip::diffim::NaiveDipoleCentroid::_fluxResultKey |
|
private |
ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_negativeKeys |
|
protectedinherited |
ResultKey lsst::ip::diffim::DipoleCentroidAlgorithm::_positiveKeys |
|
protectedinherited |
meas::base::FlagDefinition const lsst::ip::diffim::DipoleCentroidAlgorithm::FAILURE = dipoleCentroidFlagDefinitions.addFailureFlag("general failure flag, set if anything went wrong") |
|
staticinherited |
meas::base::FlagDefinition const lsst::ip::diffim::DipoleCentroidAlgorithm::NEG_FLAG = dipoleCentroidFlagDefinitions.add("neg_flag", "failure flag for negative, set if anything went wrong") |
|
staticinherited |
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: