24#ifndef LSST_MEAS_BASE_NaiveCentroid_h_INCLUDED
25#define LSST_MEAS_BASE_NaiveCentroid_h_INCLUDED
32#include "lsst/pex/config.h"
49 "If >0; maximum distance in pixels between the footprint peak and centroid allowed before "
50 "resetToPeak flag is set.");
A FunctorKey for CentroidResult.
vector-type utility class to build a collection of FlagDefinitions
Utility class for handling flag fields that indicate the failure modes of an algorithm.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
A class that calculates a centroid as a simple unweighted first moment of the 3x3 region around a pix...
static FlagDefinition const NO_COUNTS
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.
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
NaiveCentroidControl Control
static FlagDefinition const EDGE
static FlagDefinitionList const & getFlagDefinitions()
A C++ control class to handle NaiveCentroidAlgorithm's configuration.
NaiveCentroidControl()
Default constructor.
double maxDistToPeak
"If >0; maximum distance in pixels between the footprint peak and centroid allowed before " "resetToP...
bool doFootprintCheck
"Do check that the centroid is contained in footprint." ;
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 ...
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...