LSSTApplications
18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
|
An ellipse core with quadrupole moments as parameters. More...
#include <Quadrupole.h>
Public Types | |
enum | ParameterEnum { IXX = 0, IYY = 1, IXY = 2 } |
typedef Eigen::Matrix< double, 2, 2, Eigen::DontAlign > | Matrix |
Matrix type for the matrix representation of Quadrupole parameters. More... | |
typedef Eigen::Vector3d | ParameterVector |
Parameter vector type. More... | |
typedef Eigen::Matrix3d | Jacobian |
Parameter Jacobian matrix type. More... | |
Public Member Functions | |
double const | getIxx () const |
void | setIxx (double ixx) |
double const | getIyy () const |
void | setIyy (double iyy) |
double const | getIxy () const |
void | setIxy (double ixy) |
std::shared_ptr< Quadrupole > | clone () const |
Deep copy the ellipse core. More... | |
std::string | getName () const override |
Return a string that identifies this parametrization. More... | |
void | normalize () override |
Put the parameters into a "standard form", and throw InvalidParameterError if they cannot be normalized. More... | |
void | readParameters (double const *iter) override |
void | writeParameters (double *iter) const override |
Matrix const & | getMatrix () const |
Return a 2x2 symmetric matrix of the parameters. More... | |
double | getDeterminant () const |
Return the determinant of the matrix representation. More... | |
Quadrupole & | operator= (Quadrupole const &other) |
Standard assignment. More... | |
Quadrupole & | operator= (Quadrupole &&other) |
Quadrupole & | operator= (BaseCore const &other) |
Converting assignment. More... | |
Quadrupole (double ixx=1.0, double iyy=1.0, double ixy=0.0, bool normalize=false) | |
Construct from parameter values. More... | |
Quadrupole (BaseCore::ParameterVector const &vector, bool normalize=false) | |
Construct from a parameter vector. More... | |
Quadrupole (Matrix const &matrix, bool normalize=true) | |
Construct from a 2x2 matrix. More... | |
Quadrupole (Quadrupole const &other) | |
Copy constructor. More... | |
Quadrupole (Quadrupole &&other) | |
~Quadrupole () override=default | |
Quadrupole (BaseCore const &other) | |
Converting copy constructor. More... | |
Quadrupole (BaseCore::Transformer const &transformer) | |
Converting copy constructor. More... | |
Quadrupole (BaseCore::Convolution const &convolution) | |
Converting copy constructor. More... | |
void | grow (double buffer) |
Increase the major and minor radii of the ellipse core by the given buffer. More... | |
void | scale (double factor) |
Scale the size of the ellipse core by the given factor. More... | |
double | getArea () const |
Return the area of the ellipse core. More... | |
double | getDeterminantRadius () const |
Return the radius defined as the 4th root of the determinant of the quadrupole matrix. More... | |
double | getTraceRadius () const |
Return the radius defined as the square root of one half the trace of the quadrupole matrix. More... | |
GridTransform const | getGridTransform () const |
Return the transform that maps the ellipse to the unit circle. More... | |
lsst::geom::Extent2D | computeDimensions () const |
Return the size of the bounding box for the ellipse core. More... | |
ParameterVector const | getParameterVector () const |
Return the core parameters as a vector. More... | |
void | setParameterVector (ParameterVector const &vector) |
Set the core parameters from a vector. More... | |
bool | operator== (BaseCore const &other) const |
Compare two ellipse cores for equality. More... | |
bool | operator!= (BaseCore const &other) const |
Compare two ellipse cores for inequality. More... | |
Jacobian | dAssign (BaseCore const &other) |
Assign other to this and return the derivative of the conversion, d(this)/d(other). More... | |
template<typename Output > | |
Converter< Output > | as () const |
Convert this to the core type specified as a template parameter. More... | |
Coordinate transforms | |
These member functions transform the ellipse by the given lsst::geom::LinearTransform. The transform can be done in-place by calling inPlace() on the returned expression object, or returned as a new shared_ptr by calling copy(). | |
Transformer | transform (lsst::geom::LinearTransform const &transform) |
Transformer const | transform (lsst::geom::LinearTransform const &transform) const |
Convolve two bivariate Gaussians defined by their 1-sigma ellipses. | |
Convolution | convolve (BaseCore const &other) |
Convolution const | convolve (BaseCore const &other) const |
Static Public Member Functions | |
static std::shared_ptr< BaseCore > | make (std::string const &name) |
static std::shared_ptr< BaseCore > | make (std::string const &name, ParameterVector const ¶meters) |
static std::shared_ptr< BaseCore > | make (std::string const &name, double v1, double v2, double v3) |
static std::shared_ptr< BaseCore > | make (std::string const &name, BaseCore const &other) |
static std::shared_ptr< BaseCore > | make (std::string const &name, Transformer const &other) |
static std::shared_ptr< BaseCore > | make (std::string const &name, Convolution const &other) |
Protected Member Functions | |
std::shared_ptr< BaseCore > | _clone () const override |
void | _assignToQuadrupole (double &ixx, double &iyy, double &ixy) const override |
void | _assignFromQuadrupole (double ixx, double iyy, double ixy) override |
void | _assignToAxes (double &a, double &b, double &theta) const override |
void | _assignFromAxes (double a, double b, double theta) override |
Jacobian | _dAssignToQuadrupole (double &ixx, double &iyy, double &ixy) const override |
Jacobian | _dAssignFromQuadrupole (double ixx, double iyy, double ixy) override |
Jacobian | _dAssignToAxes (double &a, double &b, double &theta) const override |
Jacobian | _dAssignFromAxes (double a, double b, double theta) override |
Static Protected Member Functions | |
static void | registerSubclass (std::shared_ptr< BaseCore > const &example) |
static void | _assignQuadrupoleToAxes (double ixx, double iyy, double ixy, double &a, double &b, double &theta) |
static Jacobian | _dAssignQuadrupoleToAxes (double ixx, double iyy, double ixy, double &a, double &b, double &theta) |
static void | _assignAxesToQuadrupole (double a, double b, double theta, double &ixx, double &iyy, double &ixy) |
static Jacobian | _dAssignAxesToQuadrupole (double a, double b, double theta, double &ixx, double &iyy, double &ixy) |
An ellipse core with quadrupole moments as parameters.
Definition at line 47 of file Quadrupole.h.
|
inherited |
Parameter Jacobian matrix type.
Definition at line 64 of file BaseCore.h.
typedef Eigen::Matrix<double, 2, 2, Eigen::DontAlign> lsst::afw::geom::ellipses::Quadrupole::Matrix |
Matrix type for the matrix representation of Quadrupole parameters.
Definition at line 52 of file Quadrupole.h.
|
inherited |
Parameter vector type.
Definition at line 61 of file BaseCore.h.
|
explicit |
Construct from parameter values.
Definition at line 60 of file Quadrupole.cc.
|
explicit |
Construct from a parameter vector.
Definition at line 67 of file Quadrupole.cc.
|
explicit |
Construct from a 2x2 matrix.
Definition at line 74 of file Quadrupole.cc.
|
inline |
|
inline |
Definition at line 113 of file Quadrupole.h.
|
overridedefault |
|
inline |
|
inline |
Converting copy constructor.
Definition at line 121 of file Quadrupole.h.
|
inline |
Converting copy constructor.
Definition at line 124 of file Quadrupole.h.
|
staticprotectedinherited |
Definition at line 219 of file BaseCore.cc.
|
overrideprotectedvirtual |
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 112 of file Quadrupole.cc.
|
overrideprotectedvirtual |
|
staticprotectedinherited |
Definition at line 184 of file BaseCore.cc.
|
overrideprotectedvirtual |
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 91 of file Quadrupole.cc.
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 127 of file Quadrupole.h.
|
staticprotectedinherited |
Definition at line 232 of file BaseCore.cc.
|
overrideprotectedvirtual |
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 117 of file Quadrupole.cc.
|
overrideprotectedvirtual |
|
staticprotectedinherited |
Definition at line 194 of file BaseCore.cc.
|
overrideprotectedvirtual |
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 95 of file Quadrupole.cc.
|
overrideprotectedvirtual |
|
inlineinherited |
Convert this to the core type specified as a template parameter.
Definition at line 238 of file BaseCore.h.
|
inline |
Deep copy the ellipse core.
Definition at line 64 of file Quadrupole.h.
|
inherited |
Return the size of the bounding box for the ellipse core.
Definition at line 130 of file BaseCore.cc.
|
inlineinherited |
Definition at line 93 of file Convolution.h.
|
inlineinherited |
Definition at line 97 of file Convolution.h.
|
inherited |
Assign other to this and return the derivative of the conversion, d(this)/d(other).
Definition at line 169 of file BaseCore.cc.
|
inherited |
Return the area of the ellipse core.
Definition at line 112 of file BaseCore.cc.
|
inline |
|
inherited |
Return the radius defined as the 4th root of the determinant of the quadrupole matrix.
The determinant radius is equal to the standard radius for a circle, and its square times pi is the area of the ellipse.
Definition at line 118 of file BaseCore.cc.
|
inlineinherited |
Return the transform that maps the ellipse to the unit circle.
The returned proxy object is implicitly convertible to lsst::geom::LinearTransform and also supports differentiation.
Definition at line 120 of file GridTransform.h.
|
inline |
Definition at line 54 of file Quadrupole.h.
|
inline |
Definition at line 60 of file Quadrupole.h.
|
inline |
Definition at line 57 of file Quadrupole.h.
|
inline |
Return a 2x2 symmetric matrix of the parameters.
Definition at line 80 of file Quadrupole.h.
|
overridevirtual |
Return a string that identifies this parametrization.
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 34 of file Quadrupole.cc.
|
inherited |
Return the core parameters as a vector.
Definition at line 144 of file BaseCore.cc.
|
inherited |
Return the radius defined as the square root of one half the trace of the quadrupole matrix.
The trace radius is equal to the standard radius for a circle.
Definition at line 124 of file BaseCore.cc.
|
inherited |
Increase the major and minor radii of the ellipse core by the given buffer.
Definition at line 96 of file BaseCore.cc.
|
staticinherited |
Definition at line 56 of file BaseCore.cc.
|
staticinherited |
Definition at line 62 of file BaseCore.cc.
|
staticinherited |
Definition at line 68 of file BaseCore.cc.
|
staticinherited |
Definition at line 74 of file BaseCore.cc.
|
staticinherited |
Definition at line 80 of file BaseCore.cc.
|
staticinherited |
Definition at line 86 of file BaseCore.cc.
|
overridevirtual |
Put the parameters into a "standard form", and throw InvalidParameterError if they cannot be normalized.
Implements lsst::afw::geom::ellipses::BaseCore.
Definition at line 36 of file Quadrupole.cc.
|
inlineinherited |
Compare two ellipse cores for inequality.
Ellipses are only equal if they have the same type.
Definition at line 167 of file BaseCore.h.
|
inline |
|
inline |
Definition at line 92 of file Quadrupole.h.
|
inline |
Converting assignment.
Definition at line 95 of file Quadrupole.h.
|
inherited |
Compare two ellipse cores for equality.
Ellipse cores are only equal if they have the same type.
Definition at line 152 of file BaseCore.cc.
|
overridevirtual |
|
staticprotectedinherited |
Definition at line 92 of file BaseCore.cc.
|
inherited |
Scale the size of the ellipse core by the given factor.
Definition at line 104 of file BaseCore.cc.
|
inline |
Definition at line 55 of file Quadrupole.h.
|
inline |
Definition at line 61 of file Quadrupole.h.
|
inline |
Definition at line 58 of file Quadrupole.h.
|
inherited |
Set the core parameters from a vector.
Definition at line 150 of file BaseCore.cc.
|
inlineinherited |
Definition at line 116 of file Transformer.h.
|
inlineinherited |
Definition at line 120 of file Transformer.h.
|
overridevirtual |