24 #ifndef LSST_MEAS_BASE_SdssShape_h_INCLUDED
25 #define LSST_MEAS_BASE_SdssShape_h_INCLUDED
43 class SdssShapeResult;
87 std::string
const &
name,
185 template <
typename ImageT>
187 ImageT
const &
image,
202 template <
typename ImageT>
204 ImageT
const & image,
244 std::bitset<SdssShapeAlgorithm::N_FLAGS>
flags;
290 #endif // !LSST_MEAS_BASE_SdssShape_h_INCLUDED
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
afw::table::QuadrupoleKey _psfShapeResult
A proxy type for name lookups in a Schema.
table::Key< std::string > name
CentroidResultKey _centroidResult
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=NULL) const
A custom container class for records, based on std::vector.
afw::table::Schema schema
A mapping between the keys of two Schemas, used to copy data between them.
bool operator==(SdssShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
A reusable struct for centroid measurements.
float tol2
"Convergence tolerance for FWHM" ;
SafeCentroidExtractor _centroidExtractor
Implementation of the WCS standard for a any projection.
ErrElement flux_xy_Cov
flux, xy term in the uncertainty covariance matrix
static FluxResult computeFixedMomentsFlux(ImageT const &image, afw::geom::ellipses::Quadrupole const &shape, afw::geom::Point2D const &position)
SdssShapeResultKey ResultKey
virtual void set(afw::table::BaseRecord &record, SdssShapeResult const &value) const
Set an SdssShapeResult in the given record.
static Result computeAdaptiveMoments(ImageT const &image, afw::geom::Point2D const &position, bool negative=false, Control const &ctrl=Control())
Exception to be thrown when a measurement algorithm experiences a known failure mode.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A coordinate class intended to represent absolute positions.
Definitions and inlines for Quadrupole.
A FunctorKey for ShapeResult.
table::Key< table::Array< Kernel::Pixel > > image
double background
"Additional value to add to background" ;
afw::table::Key< ErrElement > _flux_yy_Cov
A reusable struct for moments-based shape measurements.
FlagHandler const & getFlagHandler() const
Result object SdssShapeAlgorithm.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
virtual afw::geom::ellipses::Quadrupole getPsfShape(afw::table::BaseRecord const &record) const
Get a Quadrupole for the Psf from the given record.
SdssShapeResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
double maxShift
"Maximum centroid shift, limited to 2-10" ;
afw::table::Key< ErrElement > _flux_xy_Cov
A C++ control class to handle SdssShapeAlgorithm's configuration.
A FunctorKey for FluxResult.
bool doMeasurePsf
"Whether to also compute the shape of the PSF model" ;
bool operator!=(SdssShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
Base class for all records.
SdssShapeAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
ShapeResultKey _shapeResult
A FunctorKey that maps SdssShapeResult to afw::table Records.
A FunctorKey for CentroidResult.
std::bitset< SdssShapeAlgorithm::N_FLAGS > flags
Status flags (see SdssShapeAlgorithm).
Record class that contains measurements made on a single exposure.
Measure the image moments of source using adaptive Gaussian weights.
virtual void setPsfShape(afw::table::BaseRecord &record, afw::geom::ellipses::Quadrupole const &value) const
Set a Quadrupole for the Psf at the position of the given record.
ErrElement flux_xx_Cov
flux, xx term in the uncertainty covariance matrix
float tol1
"Convergence tolerance for e1,e2" ;
static SdssShapeResultKey addFields(afw::table::Schema &schema, std::string const &name, bool doMeasurePsf)
Add the appropriate fields to a Schema, and return a SdssShapeResultKey that manages them...
bool getFlag(int index) const
Flag getter for Swig, which doesn't understand std::bitset.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
bool isValid() const
Return True if the key is valid.
A reusable result struct for flux measurements.
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
SdssShapeResult()
Constructor; initializes everything to NaN.
int maxIter
"Maximum number of iterations" ;
FluxResultKey _fluxResult
afw::table::Key< ErrElement > _flux_xx_Cov
ErrElement flux_yy_Cov
flux, yy term in the uncertainty covariance matrix