LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
24 #ifndef LSST_MEAS_BASE_NaiveCentroid_h_INCLUDED
25 #define LSST_MEAS_BASE_NaiveCentroid_h_INCLUDED
49 "If set > 0, Centroid Check also checks distance from footprint peak.");
103 #endif // !LSST_MEAS_BASE_NaiveCentroid_h_INCLUDED
double background
"Value to subtract from the image pixel values" ;
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
Record class that contains measurements made on a single exposure.
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.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Defines the fields and offsets for a table.
A class that calculates a centroid as a simple unweighted first moment of the 3x3 region around a pix...
A FunctorKey for CentroidResult.
static FlagDefinition const EDGE
vector-type utility class to build a collection of FlagDefinitions
double maxDistToPeak
"If set > 0, Centroid Check also checks distance from footprint peak." ;
NaiveCentroidControl Control
Utility class for handling flag fields that indicate the failure modes of an algorithm.
A mapping between the keys of two Schemas, used to copy data between them.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
NaiveCentroidAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
A base class for image defects.
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
A C++ control class to handle NaiveCentroidAlgorithm's configuration.
NaiveCentroidControl()
Default constructor.
static FlagDefinitionList const & getFlagDefinitions()
static FlagDefinition const NO_COUNTS
bool doFootprintCheck
"Do check that the centroid is contained in footprint." ;
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
static FlagDefinition const FAILURE