lsst.ip.diffim
13.0-17-gc2cefa3
|
Intermediate base class for algorithms that compute a centroid. More...
#include <DipoleAlgorithms.h>
Public Types | |
typedef meas::base::CentroidResultKey | ResultKey |
Tuple type that holds the keys that define a standard centroid algorithm. More... | |
![]() | |
typedef DipoleCentroidControl | Control |
typedef meas::base::CentroidResultKey | ResultKey |
Public Member Functions | |
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 |
![]() | |
DipoleCentroidAlgorithm (Control const &ctrl, std::string const &name, afw::table::Schema &schema, std::string const &doc) | |
ResultKey const & | getPositiveKeys () const |
Return the standard centroid keys registered by this algorithm. More... | |
ResultKey const & | getNegativeKeys () const |
Protected Member Functions | |
NaiveDipoleCentroid (Control const &ctrl, std::string const &name, afw::table::Schema &schema, ResultKey const &positiveKeys, ResultKey const &negativeKeys) | |
Initialize with a manually-constructed key tuple. More... | |
![]() | |
DipoleCentroidAlgorithm (Control const &ctrl, std::string const &name, afw::table::Schema &schema, std::string const &doc, ResultKey const &positiveKeys, ResultKey const &negativeKeys) | |
Initialize with a manually-constructed key tuple. More... | |
Private Attributes | |
Control | _ctrl |
meas::base::FluxResultKey | _fluxResultKey |
meas::base::FlagHandler | _flagHandler |
Additional Inherited Members | |
![]() | |
static meas::base::FlagDefinitionList const & | getFlagDefinitions () |
![]() | |
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") |
![]() | |
Control | _ctrl |
meas::base::FluxResultKey | _fluxResultKey |
meas::base::FlagHandler | _flagHandler |
ResultKey | _centerKeys |
ResultKey | _positiveKeys |
ResultKey | _negativeKeys |
Intermediate base class for algorithms that compute a centroid.
Definition at line 243 of file DipoleAlgorithms.h.
typedef meas::base::CentroidResultKey lsst::ip::diffim::NaiveDipoleCentroid::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.
lsst::ip::diffim::NaiveDipoleCentroid::NaiveDipoleCentroid | ( | Control const & | ctrl, |
std::string const & | name, | ||
afw::table::Schema & | schema | ||
) |
Definition at line 145 of file DipoleAlgorithms.cc.
|
protected |
Initialize with a manually-constructed key tuple.
void lsst::ip::diffim::NaiveDipoleCentroid::fail | ( | afw::table::SourceRecord & | measRecord, |
meas::base::MeasurementError * | error = NULL |
||
) | const |
Definition at line 211 of file DipoleAlgorithms.cc.
|
inline |
Return the standard centroid keys registered by this algorithm.
Definition at line 255 of file DipoleAlgorithms.h.
|
inline |
Definition at line 257 of file DipoleAlgorithms.h.
|
inline |
Definition at line 256 of file DipoleAlgorithms.h.
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 |
Definition at line 184 of file DipoleAlgorithms.cc.
|
private |
Definition at line 278 of file DipoleAlgorithms.h.
|
private |
Definition at line 280 of file DipoleAlgorithms.h.
|
private |
Definition at line 279 of file DipoleAlgorithms.h.