24 #ifndef LSST_MEAS_BASE_GaussianCentroid_h_INCLUDED 25 #define LSST_MEAS_BASE_GaussianCentroid_h_INCLUDED 27 #include "lsst/afw/geom/Point.h" 28 #include "lsst/pex/config.h" 34 namespace lsst {
namespace meas {
namespace base {
54 FittedModel(
int status_, std::vector<double> params_,
int iter_=0,
double flamd_=0,
double chnew_=0) :
76 LSST_CONTROL_FIELD(doFootprintCheck,
bool,
77 "Do check that the centroid is contained in footprint.");
78 LSST_CONTROL_FIELD(maxDistToPeak,
double,
79 "If set > 0, Centroid Check also checks distance from footprint peak.");
103 template<
typename PixelT>
105 static afw::geom::Point2D fitCentroid(afw::image::Image<PixelT>
const& im,
110 virtual void measure(
111 afw::table::SourceRecord & measRecord,
112 afw::image::Exposure<float>
const & exposure
116 afw::table::SourceRecord & measRecord,
138 #endif // !LSST_MEAS_BASE_GaussianCentroid_h_INCLUDED
GaussianCentroidControl()
GaussianCentroidAlgorithm
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
Exception to be thrown when a measurement algorithm experiences a known failure mode.
A class that calculates a centroid by fitting a circular Gaussian to the image.
static FlagDefinition const FAILURE
Utility class for handling flag fields that indicate the failure modes of an algorithm.
std::vector< double > params
A C++ control class to handle GaussianCentroidAlgorithm's configuration.
FittedModel(int status_, std::vector< double > params_, int iter_=0, double flamd_=0, double chnew_=0)
GaussianCentroidControl Control
A typedef to the Control object for this algorithm, defined above.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
A FunctorKey for CentroidResult.
static FlagDefinition const NO_PEAK
vector-type utility class to build a collection of FlagDefinitions
GaussianCentroidTransform