30 #include "lsst/afw/detection/FootprintArray.cc"
35 namespace lsst {
namespace meas {
namespace base {
39 std::string
const &
name,
43 FluxResultKey::addFields(schema, name,
"flux from Gaussian Flux algorithm")
45 _centroidExtractor(schema, name),
46 _shapeExtractor(schema, name)
48 static boost::array<FlagDefinition,N_FLAGS>
const flagDefs = {{
49 {
"flag",
"general failure flag, set if anything went wrong"}
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=NULL) const
A C++ control class to handle GaussianFluxAlgorithm's configuration.
table::Key< std::string > name
Eigen matrix objects that present a view into an ndarray::Array.
static FluxResult computeFixedMomentsFlux(ImageT const &image, afw::geom::ellipses::Quadrupole const &shape, afw::geom::Point2D const &position)
afw::table::Schema schema
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
GaussianFluxAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Forward declarations, typedefs, and definitions for Ellipse.
MaskedImageT getMaskedImage()
Return the MaskedImage.
void setValue(afw::table::BaseRecord &record, int i, bool value) const
A FunctorKey for FluxResult.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
void handleFailure(afw::table::BaseRecord &record, MeasurementError const *error=NULL) const
Record class that contains measurements made on a single exposure.
FluxResultKey _fluxResultKey
SafeShapeExtractor _shapeExtractor
SafeCentroidExtractor _centroidExtractor
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinition const *begin, FlagDefinition const *end)
A reusable result struct for flux measurements.