LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
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];
double const getIxx() const
@ FULL_COVARIANCE
The full covariance matrix is provided.
ShapeElement xy
image or model second moment for xy^2
UncertaintyEnum
An enum used to specify how much uncertainty information measurement algorithms provide.
Eigen::Matrix< ErrElement, 3, 3, Eigen::DontAlign > ShapeCov
ErrElement xxErr
standard deviation of xx
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
@ NO_UNCERTAINTY
Algorithm provides no uncertainy information at all.
ErrElement xyErr
standard deviation of xy
ErrElement yy_xy_Cov
yy,xy term in the uncertainty convariance matrix
Reports attempts to access elements using an invalid key.
afw::table::Key< double > sigma
ShapeResult()
Constructor; initializes everything to NaN.
double const getIxy() const
Defines the fields and offsets for a table.
A FunctorKey for ShapeResult.
ErrElement yyErr
standard deviation of yy
Eigen::Matrix< ShapeElement, 3, 3, Eigen::DontAlign > ShapeTrMatrix
bool isValid() const noexcept
Return True if all the constituent error Keys are valid.
CoordinateType
Enum used to set units for geometric FunctorKeys.
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.
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.
double const getIyy() const
Base class for all records.
void setShapeErr(ShapeCov const &matrix)
Set the struct standard deviation elements from the given matrix, with rows and columns ordered (xx,...
ShapeElement yy
image or model second moment for y^2
ErrElement xx_xy_Cov
xx,xy term in the uncertainty convariance matrix
virtual ShapeResult get(afw::table::BaseRecord const &record) const
Get a ShapeResult from the given record.
A base class for image defects.
ErrElement xx_yy_Cov
xx,yy term in the uncertainty convariance matrix
An ellipse core with quadrupole moments as parameters.
ShapeResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
ShapeTrMatrix makeShapeTransformMatrix(geom::LinearTransform const &xform)
Construct a matrix suitable for transforming second moments.
A proxy type for name lookups in a Schema.
Shape const getShape() const
Return an afw::geom::ellipses object corresponding to xx, yy, xy.
ShapeCov const getShapeErr() const
Return the 3x3 symmetric covariance matrix, with rows and columns ordered (xx, yy,...
void setShape(Shape const &shape)
Set struct elements from the given Quadrupole object.
A reusable struct for moments-based shape measurements.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
virtual void set(afw::table::BaseRecord &record, ShapeResult const &value) const
Set a ShapeResult in the given record.
ShapeElement xx
image or model second moment for x^2
afw::geom::ellipses::Quadrupole Shape