24 #ifndef LSST_MEAS_BASE_ShapeUtilities_h_INCLUDED
25 #define LSST_MEAS_BASE_ShapeUtilities_h_INCLUDED
30 namespace lsst {
namespace meas {
namespace base {
95 std::string
const & name,
96 std::string
const & doc,
161 #endif // !LSST_MEAS_BASE_ShapeUtilities_h_INCLUDED
Key< double > getIxy() const
Return a constituent Key.
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
afw::table::Key< ShapeElement > getIxx() const
Return a Key for the xx moment.
A proxy type for name lookups in a Schema.
ShapeResultKey(afw::table::QuadrupoleKey const &shape, afw::table::CovarianceMatrixKey< ErrElement, 3 > const &shapeErr)
Construct from a pair of Keys.
ErrElement yy_xy_Cov
yy,xy term in the uncertainty convariance matrix
Eigen::Matrix< ErrElement, 3, 3, Eigen::DontAlign > ShapeCov
afw::table::CovarianceMatrixKey< ErrElement, 3 > getShapeErr() const
Return a FunctorKey to just the uncertainty matrix.
Key< double > getIyy() const
Return a constituent Key.
UncertaintyEnum
An enum used to specify how much uncertainty information measurement algorithms provide.
afw::table::Key< ShapeElement > getIyy() const
Return a Key for the yy moment.
ShapeResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
bool isValid() const
Return True if all the constituent Keys are valid.
Key< double > getIxx() const
Return a constituent Key.
ErrElement xySigma
1-Sigma uncertainty on xy (sqrt of variance)
Shape const getShape() const
Return an afw::geom::ellipses object corresponding to xx, yy, xy.
A FunctorKey for ShapeResult.
ErrElement xx_xy_Cov
xx,xy term in the uncertainty convariance matrix
void setShapeErr(ShapeCov const &matrix)
Set the struct uncertainty elements from the given matrix, with rows and columns ordered (xx...
ErrElement xx_yy_Cov
xx,yy term in the uncertainty convariance matrix
A reusable struct for moments-based shape measurements.
virtual void set(afw::table::BaseRecord &record, ShapeResult const &value) const
Set a ShapeResult in the given record.
bool operator!=(ShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
afw::table::QuadrupoleKey _shape
ShapeResult()
Constructor; initializes everything to NaN.
bool isValid() const
Return True if the shape key is valid.
afw::table::QuadrupoleKey getShape() const
Return a FunctorKey to just the shape value.
Base class for all records.
ErrElement yySigma
1-Sigma uncertainty on yy (sqrt of variance)
bool isValid() const
Return True if all the constituent sigma Keys are valid.
bool operator==(ShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
ErrElement xxSigma
1-Sigma uncertainty on xx (sqrt of variance)
static ShapeResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc, UncertaintyEnum uncertainty)
Add the appropriate fields to a Schema, and return a ShapeResultKey that manages them.
void setShape(Shape const &shape)
Set struct elements from the given Quadrupole object.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from an (xx,yy,xy) tuple of Keys...
ShapeCov const getShapeErr() const
Return the 3x3 symmetric covariance matrix, with rows and columns ordered (xx, yy, xy)
afw::table::CovarianceMatrixKey< ErrElement, 3 > _shapeErr
afw::table::SourceRecord * record
afw::table::Key< ShapeElement > getIxy() const
Return a Key for the xy moment.