LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
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. More...
 
bool getFlag (std::string const &name) const
 
 SdssShapeResult ()
 Constructor; initializes everything to NaN. More...
 
Shape const getShape () const
 Return an afw::geom::ellipses object corresponding to xx, yy, xy. More...
 
afw::geom::ellipses::Quadrupole getQuadrupole ()
 
void setShape (Shape const &shape)
 Set struct elements from the given Quadrupole object. More...
 
ShapeCov const getShapeErr () const
 Return the 3x3 symmetric covariance matrix, with rows and columns ordered (xx, yy, xy) More...
 
void setShapeErr (ShapeCov const &matrix)
 Set the struct standard deviation elements from the given matrix, with rows and columns ordered (xx, yy, xy) More...
 
void setShapeErr (ErrElement xxErr, ErrElement yyErr, ErrElement xyErr)
 Set the struct standard deviation elements from the given values. More...
 
Centroid const getCentroid () const
 Return a Point object containing the measured x and y. More...
 
void setCentroid (Centroid const &centroid)
 Set the struct fields from the given Point object. More...
 
geom::Point< CentroidElementgetPoint ()
 Return the 2D point type corresponding to this result. More...
 
CentroidCov const getCentroidErr () const
 Return the 2x2 symmetric covariance matrix, with rows and columns ordered (x, y) More...
 
void setCentroidErr (CentroidCov const &matrix)
 Set the struct uncertainty fields from the given matrix, with rows and columns ordered (x, y) More...
 
void setCentroidErr (ErrElement _xErr, ErrElement _yErr)
 Set the struct uncertainty fields from the sigma values. More...
 

Public Attributes

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

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 621 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  {
49  CentroidCov m;
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  }
table::Key< std::string > name
Definition: Amplifier.cc:116
FlagDefinition getDefinition(std::size_t index) const
get a reference to the FlagDefinition with specified index.
Definition: FlagHandler.h:83
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.

70 { return geom::Point<CentroidElement>(x, y); }
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: