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