lsst.meas.base
20.0.0-3-g750bffe+874c061113
|
Go to the documentation of this file.
24 #ifndef LSST_MEAS_BASE_SdssCentroid_h_INCLUDED
25 #define LSST_MEAS_BASE_SdssCentroid_h_INCLUDED
34 #include "lsst/pex/config.h"
50 LSST_CONTROL_FIELD(
binmax,
int,
"maximum allowed binning");
51 LSST_CONTROL_FIELD(
peakMin,
double,
"if the peak's less than this insist on binning at least once");
52 LSST_CONTROL_FIELD(
wfac,
double,
"fiddle factor for adjusting the binning");
53 LSST_CONTROL_FIELD(
doFootprintCheck,
bool,
"Do check that the centroid is contained in footprint.");
55 "If set > 0, Centroid Check also checks distance from footprint peak.");
109 #endif // !LSST_MEAS_BASE_SdssCentroid_h_INCLUDED
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
The Sdss Centroid Algorithm.
SdssCentroidControl()
Default constructor.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
static FlagDefinition const FAILURE
A FunctorKey for CentroidResult.
double maxDistToPeak
"If set > 0, Centroid Check also checks distance from footprint peak." ;
vector-type utility class to build a collection of FlagDefinitions
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
double wfac
"fiddle factor for adjusting the binning" ;
SdssCentroidAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
Utility class for handling flag fields that indicate the failure modes of an algorithm.
bool doFootprintCheck
"Do check that the centroid is contained in footprint." ;
static FlagDefinition const NOT_AT_MAXIMUM
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
static FlagDefinition const ALMOST_NO_SECOND_DERIVATIVE
int binmax
"maximum allowed binning" ;
A C++ control class to handle SdssCentroidAlgorithm's configuration.
SdssCentroidControl Control
A typedef to the Control object for this algorithm, defined above.
double peakMin
"if the peak's less than this insist on binning at least once" ;
static FlagDefinition const EDGE
static FlagDefinition const NO_SECOND_DERIVATIVE
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=nullptr) const
Handle an exception thrown by the current algorithm by setting flags in the given record.
static FlagDefinitionList const & getFlagDefinitions()