24 #include "ndarray/eigen.h" 37 FlagDefinitionList flagDefinitions;
47 _instFluxResultKey(
FluxResultKey::addFields(schema, name,
"instFlux from Gaussian Flux algorithm")),
48 _centroidExtractor(schema, name),
49 _shapeExtractor(schema, name) {
61 measRecord.
set(_instFluxResultKey, result);
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
A C++ control class to handle GaussianFluxAlgorithm's configuration.
GaussianFluxAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
void setValue(afw::table::BaseRecord &record, std::size_t i, bool value) const
Set the flag field corresponding to the given flag index.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
A base class for image defects.
MaskedImageT getMaskedImage()
Return the MaskedImage.
UnitVector3d centroid(VertexIterator const begin, VertexIterator const end)
A FunctorKey for FluxResult.
static FluxResult computeFixedMomentsFlux(ImageT const &image, afw::geom::ellipses::Quadrupole const &shape, geom::Point2D const &position)
Compute the instFlux within a fixed Gaussian aperture.
static FlagDefinition const FAILURE
static FlagDefinitionList const & getFlagDefinitions()
static FlagHandler addFields(afw::table::Schema &schema, std::string const &prefix, FlagDefinitionList const &flagDefs, FlagDefinitionList const &exclDefs=FlagDefinitionList::getEmptyList())
Add Flag fields to a schema, creating a FlagHandler object to manage them.
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
void handleFailure(afw::table::BaseRecord &record, MeasurementError const *error=nullptr) const
Handle an expected or unexpected Exception thrown by a measurement 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...
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Record class that contains measurements made on a single exposure.
vector-type utility class to build a collection of FlagDefinitions
A reusable result struct for instFlux measurements.