lsst.meas.base
21.0.0-3-g4c5b185+c3794955c6
|
Go to the documentation of this file.
83 schema.join(
name,
"xxErr"),
"Standard deviation of xx moment",
84 coordType == afw::table::CoordinateType::PIXEL ?
"pixel^2" :
"rad^2");
86 schema.join(
name,
"yyErr"),
"Standard deviation of yy moment",
87 coordType == afw::table::CoordinateType::PIXEL ?
"pixel^2" :
"rad^2");
89 schema.join(
name,
"xyErr"),
"Standard deviation of xy moment",
90 coordType == afw::table::CoordinateType::PIXEL ?
"pixel^2" :
"rad^2");
93 schema.join(
name,
"xx_yy_Cov"),
"uncertainty covariance in xx and yy",
94 coordType == afw::table::CoordinateType::PIXEL ?
"pixel^4" :
"rad^4"));
96 schema.join(
name,
"xx_xy_Cov"),
"uncertainty covariance in xx and xy",
97 coordType == afw::table::CoordinateType::PIXEL ?
"pixel^4" :
"rad^4"));
99 schema.join(
name,
"yy_xy_Cov"),
"uncertainty covariance in yy and xy",
100 coordType == afw::table::CoordinateType::PIXEL ?
"pixel^4" :
"rad^4"));
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
@ 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
afw::table::Key< double > sigma
ShapeResult()
Constructor; initializes everything to NaN.
double const getIxy() const
A FunctorKey for ShapeResult.
ErrElement yyErr
standard deviation of yy
Eigen::Matrix< ShapeElement, 3, 3, Eigen::DontAlign > ShapeTrMatrix
bool isValid() const noexcept
static QuadrupoleKey addFields(Schema &schema, std::string const &name, std::string const &doc, CoordinateType coordType=CoordinateType::PIXEL)
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
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.
ErrElement xx_yy_Cov
xx,yy term in the uncertainty convariance matrix
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.
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)
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