83 schema.
join(name,
"xxErr"),
"Standard deviation of xx moment",
86 schema.
join(name,
"yyErr"),
"Standard deviation of yy moment",
89 schema.
join(name,
"xyErr"),
"Standard deviation of xy moment",
93 schema.
join(name,
"xx_yy_Cov"),
"uncertainty covariance in xx and yy",
96 schema.
join(name,
"xx_xy_Cov"),
"uncertainty covariance in xx and xy",
99 schema.
join(name,
"yy_xy_Cov"),
"uncertainty covariance in yy and xy",
145 Eigen::Matrix<ShapeElement, 3, 3, Eigen::DontAlign>
m;
146 m << xform[LT::XX] * xform[LT::XX], xform[LT::XY] * xform[LT::XY], 2 * xform[LT::XX] * xform[LT::XY],
147 xform[LT::YX] * xform[LT::YX], xform[LT::YY] * xform[LT::YY], 2 * xform[LT::YX] * xform[LT::YY],
148 xform[LT::XX] * xform[LT::YX], xform[LT::XY] * xform[LT::YY],
149 xform[LT::XX] * xform[LT::YY] + xform[LT::XY] * xform[LT::YX];
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
virtual void set(afw::table::BaseRecord &record, ShapeResult const &value) const
Set a ShapeResult in the given record.
Eigen::Matrix< ErrElement, 3, 3, Eigen::DontAlign > ShapeCov
A proxy type for name lookups in a Schema.
ErrElement yy_xy_Cov
yy,xy term in the uncertainty convariance matrix
virtual ShapeResult get(afw::table::BaseRecord const &record) const
Get a ShapeResult from the given record.
ShapeElement xy
image or model second moment for xy^2
UncertaintyEnum
An enum used to specify how much uncertainty information measurement algorithms provide.
ErrElement xxErr
standard deviation of xx
std::string join(std::string const &a, std::string const &b) const
Join strings using the field delimiter appropriate for this Schema.
Shape const getShape() const
Return an afw::geom::ellipses object corresponding to xx, yy, xy.
ShapeResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
The full covariance matrix is provided.
ShapeTrMatrix makeShapeTransformMatrix(geom::LinearTransform const &xform)
Construct a matrix suitable for transforming second moments.
ShapeElement xx
image or model second moment for x^2
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
afw::table::Key< double > sigma
A FunctorKey for ShapeResult.
ErrElement xx_xy_Cov
xx,xy term in the uncertainty convariance matrix
void setShapeErr(ShapeCov const &matrix)
Set the struct standard deviation elements from the given matrix, with rows and columns ordered (xx...
ErrElement xx_yy_Cov
xx,yy term in the uncertainty convariance matrix
afw::geom::ellipses::Quadrupole Shape
Reports attempts to access elements using an invalid key.
A reusable struct for moments-based shape measurements.
double const getIxy() const
double const getIyy() const
A base class for image defects.
static QuadrupoleKey addFields(Schema &schema, std::string const &name, std::string const &doc, CoordinateType coordType=CoordinateType::PIXEL)
Add a set of quadrupole subfields to a schema and return a QuadrupoleKey that points to them...
ShapeResult()
Constructor; initializes everything to NaN.
ErrElement xyErr
standard deviation of xy
Eigen::Matrix< ShapeElement, 3, 3, Eigen::DontAlign > ShapeTrMatrix
CoordinateType
Enum used to set units for geometric FunctorKeys.
ShapeElement yy
image or model second moment for y^2
Base class for all records.
Algorithm provides no uncertainy information at all.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
ErrElement yyErr
standard deviation of yy
void setShape(Shape const &shape)
Set struct elements from the given Quadrupole object.
bool isValid() const noexcept
Return True if all the constituent error Keys are valid.
Key< T > addField(Field< T > const &field, bool doReplace=false)
Add a new field to the Schema, and return the associated Key.
double const getIxx() const
ShapeCov const getShapeErr() const
Return the 3x3 symmetric covariance matrix, with rows and columns ordered (xx, yy, xy)
static ShapeResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc, UncertaintyEnum uncertainty, afw::table::CoordinateType coordType=afw::table::CoordinateType::PIXEL)
Add the appropriate fields to a Schema, and return a ShapeResultKey that manages them.