LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst::meas::base::SdssShapeResult Class Reference

Result object SdssShapeAlgorithm. More...

#include <SdssShape.h>

Inheritance diagram for lsst::meas::base::SdssShapeResult:
lsst::meas::base::ShapeResult lsst::meas::base::CentroidResult lsst::meas::base::FluxResult

Public Member Functions

bool getFlag (unsigned int index) const
 Flag getter for Swig, which doesn't understand std::bitset.
 
bool getFlag (std::string const &name) const
 
 SdssShapeResult ()
 Constructor; initializes everything to NaN.
 
Shape const getShape () const
 Return an afw::geom::ellipses object corresponding to xx, yy, xy.
 
afw::geom::ellipses::Quadrupole getQuadrupole ()
 
void setShape (Shape const &shape)
 Set struct elements from the given Quadrupole object.
 
ShapeCov const getShapeErr () const
 Return the 3x3 symmetric covariance matrix, with rows and columns ordered (xx, yy, xy)
 
void setShapeErr (ShapeCov const &matrix)
 Set the struct standard deviation elements from the given matrix, with rows and columns ordered (xx, yy, xy)
 
void setShapeErr (ErrElement xxErr, ErrElement yyErr, ErrElement xyErr)
 Set the struct standard deviation elements from the given values.
 
Centroid const getCentroid () const
 Return a Point object containing the measured x and y.
 
void setCentroid (Centroid const &centroid)
 Set the struct fields from the given Point object.
 
geom::Point< CentroidElementgetPoint ()
 Return the 2D point type corresponding to this result.
 
CentroidCov const getCentroidErr () const
 Return the 2x2 symmetric covariance matrix, with rows and columns ordered (x, y)
 
void setCentroidErr (CentroidCov const &matrix)
 Set the struct uncertainty fields from the given matrix, with rows and columns ordered (x, y)
 
void setCentroidErr (ErrElement _xErr, ErrElement _yErr)
 Set the struct uncertainty fields from the sigma values.
 

Public Attributes

ErrElement instFlux_xx_Cov
 instFlux, xx term in the uncertainty covariance matrix
 
ErrElement instFlux_yy_Cov
 instFlux, yy term in the uncertainty covariance matrix
 
ErrElement instFlux_xy_Cov
 instFlux, xy term in the uncertainty covariance matrix
 
std::bitset< SdssShapeAlgorithm::N_FLAGSflags
 Status flags (see SdssShapeAlgorithm).
 
ShapeElement xx
 image or model second moment for x^2
 
ShapeElement yy
 image or model second moment for y^2
 
ShapeElement xy
 image or model second moment for xy^2
 
ErrElement xxErr
 standard deviation of xx
 
ErrElement yyErr
 standard deviation of yy
 
ErrElement xyErr
 standard deviation of xy
 
ErrElement xx_yy_Cov
 xx,yy term in the uncertainty convariance matrix
 
ErrElement xx_xy_Cov
 xx,xy term in the uncertainty convariance matrix
 
ErrElement yy_xy_Cov
 yy,xy term in the uncertainty convariance matrix
 
CentroidElement x
 x (column) coordinate of the measured position
 
CentroidElement y
 y (row) coordinate of the measured position
 
ErrElement xErr
 standard deviation of x
 
ErrElement yErr
 standard deviation of y
 
ErrElement x_y_Cov
 x,y term in the uncertainty convariance matrix
 
meas::base::Flux instFlux
 Measured instFlux in DN.
 
meas::base::FluxErrElement instFluxErr
 Standard deviation of instFlux in DN.
 

Detailed Description

Result object SdssShapeAlgorithm.

Because we have use cases for running SdssShape outside of the measurement framework (in particular, we need to run it on PSF model images), we provide an interface that doesn't need to use SourceRecord for its inputs and outputs. Instead, it returns an instance of this class.

Note: for what I guess are historical reasons, SdssShape computes covariance terms between the instFlux and the shape, but not between the instFlux and centroid or centroid and shape.

This should logically be an inner class, but Swig doesn't know how to parse those.

Definition at line 224 of file SdssShape.h.

Constructor & Destructor Documentation

◆ SdssShapeResult()

lsst::meas::base::SdssShapeResult::SdssShapeResult ( )

Constructor; initializes everything to NaN.

Definition at line 636 of file SdssShape.cc.

ErrElement instFlux_yy_Cov
instFlux, yy term in the uncertainty covariance matrix
Definition SdssShape.h:227
ErrElement instFlux_xy_Cov
instFlux, xy term in the uncertainty covariance matrix
Definition SdssShape.h:228
ErrElement instFlux_xx_Cov
instFlux, xx term in the uncertainty covariance matrix
Definition SdssShape.h:226

Member Function Documentation

◆ getCentroid()

Centroid const lsst::meas::base::CentroidResult::getCentroid ( ) const
inherited

Return a Point object containing the measured x and y.

Definition at line 41 of file CentroidUtilities.cc.

41{ return Centroid(x, y); }
geom::Point< CentroidElement, 2 > Centroid
Definition constants.h:58
CentroidElement y
y (row) coordinate of the measured position
CentroidElement x
x (column) coordinate of the measured position

◆ getCentroidErr()

CentroidCov const lsst::meas::base::CentroidResult::getCentroidErr ( ) const
inherited

Return the 2x2 symmetric covariance matrix, with rows and columns ordered (x, y)

Definition at line 48 of file CentroidUtilities.cc.

48 {
50 m << xErr * xErr, x_y_Cov, x_y_Cov, yErr * yErr;
51 return m;
52}
int m
Definition SpanSet.cc:48
Eigen::Matrix< ErrElement, 2, 2, Eigen::DontAlign > CentroidCov
Definition constants.h:59
ErrElement yErr
standard deviation of y
ErrElement x_y_Cov
x,y term in the uncertainty convariance matrix
ErrElement xErr
standard deviation of x

◆ getFlag() [1/2]

bool lsst::meas::base::SdssShapeResult::getFlag ( std::string const & name) const
inline

Definition at line 236 of file SdssShape.h.

236 {
238 }
FlagDefinition getDefinition(std::size_t index) const
get a reference to the FlagDefinition with specified index.
static FlagDefinitionList const & getFlagDefinitions()
Definition SdssShape.cc:58
std::bitset< SdssShapeAlgorithm::N_FLAGS > flags
Status flags (see SdssShapeAlgorithm).
Definition SdssShape.h:230

◆ getFlag() [2/2]

bool lsst::meas::base::SdssShapeResult::getFlag ( unsigned int index) const
inline

Flag getter for Swig, which doesn't understand std::bitset.

Definition at line 234 of file SdssShape.h.

234{ return flags[index]; }

◆ getPoint()

geom::Point< CentroidElement > lsst::meas::base::CentroidResult::getPoint ( )
inlineinherited

Return the 2D point type corresponding to this result.

Definition at line 70 of file CentroidUtilities.h.

A coordinate class intended to represent absolute positions.
Definition Point.h:169

◆ getQuadrupole()

afw::geom::ellipses::Quadrupole lsst::meas::base::ShapeResult::getQuadrupole ( )
inlineinherited

Definition at line 91 of file ShapeUtilities.h.

91{ return afw::geom::ellipses::Quadrupole(xx, yy, xy); }
ShapeElement xy
image or model second moment for xy^2
ShapeElement xx
image or model second moment for x^2
ShapeElement yy
image or model second moment for y^2

◆ getShape()

Shape const lsst::meas::base::ShapeResult::getShape ( ) const
inherited

Return an afw::geom::ellipses object corresponding to xx, yy, xy.

This method can be used to return an average radius for the measured shape, e.g. getShape().getDeterminantRadius()

Definition at line 41 of file ShapeUtilities.cc.

41{ return Shape(xx, yy, xy); }
afw::geom::ellipses::Quadrupole Shape
Definition constants.h:60

◆ getShapeErr()

ShapeCov const lsst::meas::base::ShapeResult::getShapeErr ( ) const
inherited

Return the 3x3 symmetric covariance matrix, with rows and columns ordered (xx, yy, xy)

Definition at line 49 of file ShapeUtilities.cc.

49 {
50 ShapeCov m;
53 return m;
54}
Eigen::Matrix< ErrElement, 3, 3, Eigen::DontAlign > ShapeCov
Definition constants.h:61
ErrElement yy_xy_Cov
yy,xy term in the uncertainty convariance matrix
ErrElement xyErr
standard deviation of xy
ErrElement xx_xy_Cov
xx,xy term in the uncertainty convariance matrix
ErrElement xxErr
standard deviation of xx
ErrElement xx_yy_Cov
xx,yy term in the uncertainty convariance matrix
ErrElement yyErr
standard deviation of yy

◆ setCentroid()

void lsst::meas::base::CentroidResult::setCentroid ( Centroid const & centroid)
inherited

Set the struct fields from the given Point object.

Definition at line 43 of file CentroidUtilities.cc.

43 {
44 x = centroid.getX();
45 y = centroid.getY();
46}
UnitVector3d centroid(VertexIterator const begin, VertexIterator const end)

◆ setCentroidErr() [1/2]

void lsst::meas::base::CentroidResult::setCentroidErr ( CentroidCov const & matrix)
inherited

Set the struct uncertainty fields from the given matrix, with rows and columns ordered (x, y)

Definition at line 54 of file CentroidUtilities.cc.

54 {
55 xErr = std::sqrt(matrix(0, 0));
56 yErr = std::sqrt(matrix(1, 1));
57 x_y_Cov = matrix(0, 1);
58}
T sqrt(T... args)

◆ setCentroidErr() [2/2]

void lsst::meas::base::CentroidResult::setCentroidErr ( ErrElement _xErr,
ErrElement _yErr )
inherited

Set the struct uncertainty fields from the sigma values.

Definition at line 60 of file CentroidUtilities.cc.

60 {
61 xErr = _xErr;
62 yErr = _yErr;
63 x_y_Cov = 0.0;
64}

◆ setShape()

void lsst::meas::base::ShapeResult::setShape ( Shape const & shape)
inherited

Set struct elements from the given Quadrupole object.

Definition at line 43 of file ShapeUtilities.cc.

43 {
44 xx = shape.getIxx();
45 yy = shape.getIyy();
46 xy = shape.getIxy();
47}

◆ setShapeErr() [1/2]

void lsst::meas::base::ShapeResult::setShapeErr ( ErrElement xxErr,
ErrElement yyErr,
ErrElement xyErr )
inherited

Set the struct standard deviation elements from the given values.

Definition at line 65 of file ShapeUtilities.cc.

65 {
66 xxErr = _xxErr;
67 yyErr = _yyErr;
68 xyErr = _xyErr;
69 xx_yy_Cov = 0.0;
70 xx_xy_Cov = 0.0;
71 yy_xy_Cov = 0.0;
72}

◆ setShapeErr() [2/2]

void lsst::meas::base::ShapeResult::setShapeErr ( ShapeCov const & matrix)
inherited

Set the struct standard deviation elements from the given matrix, with rows and columns ordered (xx, yy, xy)

Definition at line 56 of file ShapeUtilities.cc.

56 {
57 xxErr = std::sqrt(matrix(0, 0));
58 yyErr = std::sqrt(matrix(1, 1));
59 xyErr = std::sqrt(matrix(2, 2));
60 xx_yy_Cov = matrix(0, 1);
61 xx_xy_Cov = matrix(0, 2);
62 yy_xy_Cov = matrix(1, 2);
63}

Member Data Documentation

◆ flags

std::bitset<SdssShapeAlgorithm::N_FLAGS> lsst::meas::base::SdssShapeResult::flags

Status flags (see SdssShapeAlgorithm).

Definition at line 230 of file SdssShape.h.

◆ instFlux

meas::base::Flux lsst::meas::base::FluxResult::instFlux
inherited

Measured instFlux in DN.

Definition at line 42 of file FluxUtilities.h.

◆ instFlux_xx_Cov

ErrElement lsst::meas::base::SdssShapeResult::instFlux_xx_Cov

instFlux, xx term in the uncertainty covariance matrix

Definition at line 226 of file SdssShape.h.

◆ instFlux_xy_Cov

ErrElement lsst::meas::base::SdssShapeResult::instFlux_xy_Cov

instFlux, xy term in the uncertainty covariance matrix

Definition at line 228 of file SdssShape.h.

◆ instFlux_yy_Cov

ErrElement lsst::meas::base::SdssShapeResult::instFlux_yy_Cov

instFlux, yy term in the uncertainty covariance matrix

Definition at line 227 of file SdssShape.h.

◆ instFluxErr

meas::base::FluxErrElement lsst::meas::base::FluxResult::instFluxErr
inherited

Standard deviation of instFlux in DN.

Definition at line 43 of file FluxUtilities.h.

◆ x

CentroidElement lsst::meas::base::CentroidResult::x
inherited

x (column) coordinate of the measured position

Definition at line 42 of file CentroidUtilities.h.

◆ x_y_Cov

ErrElement lsst::meas::base::CentroidResult::x_y_Cov
inherited

x,y term in the uncertainty convariance matrix

Definition at line 46 of file CentroidUtilities.h.

◆ xErr

ErrElement lsst::meas::base::CentroidResult::xErr
inherited

standard deviation of x

Definition at line 44 of file CentroidUtilities.h.

◆ xx

ShapeElement lsst::meas::base::ShapeResult::xx
inherited

image or model second moment for x^2

Definition at line 44 of file ShapeUtilities.h.

◆ xx_xy_Cov

ErrElement lsst::meas::base::ShapeResult::xx_xy_Cov
inherited

xx,xy term in the uncertainty convariance matrix

Definition at line 51 of file ShapeUtilities.h.

◆ xx_yy_Cov

ErrElement lsst::meas::base::ShapeResult::xx_yy_Cov
inherited

xx,yy term in the uncertainty convariance matrix

Definition at line 50 of file ShapeUtilities.h.

◆ xxErr

ErrElement lsst::meas::base::ShapeResult::xxErr
inherited

standard deviation of xx

Definition at line 47 of file ShapeUtilities.h.

◆ xy

ShapeElement lsst::meas::base::ShapeResult::xy
inherited

image or model second moment for xy^2

Definition at line 46 of file ShapeUtilities.h.

◆ xyErr

ErrElement lsst::meas::base::ShapeResult::xyErr
inherited

standard deviation of xy

Definition at line 49 of file ShapeUtilities.h.

◆ y

CentroidElement lsst::meas::base::CentroidResult::y
inherited

y (row) coordinate of the measured position

Definition at line 43 of file CentroidUtilities.h.

◆ yErr

ErrElement lsst::meas::base::CentroidResult::yErr
inherited

standard deviation of y

Definition at line 45 of file CentroidUtilities.h.

◆ yy

ShapeElement lsst::meas::base::ShapeResult::yy
inherited

image or model second moment for y^2

Definition at line 45 of file ShapeUtilities.h.

◆ yy_xy_Cov

ErrElement lsst::meas::base::ShapeResult::yy_xy_Cov
inherited

yy,xy term in the uncertainty convariance matrix

Definition at line 52 of file ShapeUtilities.h.

◆ yyErr

ErrElement lsst::meas::base::ShapeResult::yyErr
inherited

standard deviation of yy

Definition at line 48 of file ShapeUtilities.h.


The documentation for this class was generated from the following files: