LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
25 #ifndef LSST_AFW_GEOM_ELLIPSES_Quadrupole_h_INCLUDED
26 #define LSST_AFW_GEOM_ELLIPSES_Quadrupole_h_INCLUDED
52 typedef Eigen::Matrix<double, 2, 2, Eigen::DontAlign>
Matrix;
54 double const getIxx()
const {
return _matrix(0, 0); }
55 void setIxx(
double ixx) { _matrix(0, 0) = ixx; }
57 double const getIyy()
const {
return _matrix(1, 1); }
58 void setIyy(
double iyy) { _matrix(1, 1) = iyy; }
60 double const getIxy()
const {
return _matrix(1, 0); }
61 void setIxy(
double ixy) { _matrix(0, 1) = _matrix(1, 0) = ixy; }
87 _matrix =
other._matrix;
101 explicit Quadrupole(
double ixx = 1.0,
double iyy = 1.0,
double ixy = 0.0,
bool normalize =
false);
132 void _assignToAxes(
double&
a,
double&
b,
double& theta)
const override;
142 static Registrar<Quadrupole> registrar;
151 #endif // !LSST_AFW_GEOM_ELLIPSES_Quadrupole_h_INCLUDED
double const getIxx() const
void _assignFromAxes(double a, double b, double theta) override
Return the size of the bounding box for the ellipse core.
double const getIxy() const
Quadrupole(double ixx=1.0, double iyy=1.0, double ixy=0.0, bool normalize=false)
Construct from parameter values.
Jacobian _dAssignFromAxes(double a, double b, double theta) override
Return the size of the bounding box for the ellipse core.
void _assignToQuadrupole(double &ixx, double &iyy, double &ixy) const override
Return the size of the bounding box for the ellipse core.
Matrix const & getMatrix() const
Return a 2x2 symmetric matrix of the parameters.
Eigen::Matrix< double, 2, 2, Eigen::DontAlign > Matrix
Matrix type for the matrix representation of Quadrupole parameters.
A base class for parametrizations of the "core" of an ellipse - the ellipticity and size.
void writeParameters(double *iter) const override
Return the size of the bounding box for the ellipse core.
~Quadrupole() override=default
std::string getName() const override
Return a string that identifies this parametrization.
double const getIyy() const
ItemVariant const * other
std::shared_ptr< BaseCore > _clone() const override
Return the size of the bounding box for the ellipse core.
Quadrupole & operator=(Quadrupole &&other)
Eigen::Vector3d ParameterVector
Parameter vector type.
Quadrupole & operator=(Quadrupole const &other)
Standard assignment.
void _assignFromQuadrupole(double ixx, double iyy, double ixy) override
Return the size of the bounding box for the ellipse core.
Quadrupole(BaseCore const &other)
Converting copy constructor.
Jacobian _dAssignToAxes(double &a, double &b, double &theta) const override
Return the size of the bounding box for the ellipse core.
Quadrupole & operator=(BaseCore const &other)
Converting assignment.
A base class for image defects.
void apply(BaseCore &result) const
An ellipse core with quadrupole moments as parameters.
Eigen::Matrix3d Jacobian
Parameter Jacobian matrix type.
Jacobian _dAssignFromQuadrupole(double ixx, double iyy, double ixy) override
Return the size of the bounding box for the ellipse core.
std::shared_ptr< Quadrupole > clone() const
Deep copy the ellipse core.
Quadrupole(BaseCore::Transformer const &transformer)
Converting copy constructor.
double getDeterminant() const
Return the determinant of the matrix representation.
Quadrupole(BaseCore::Convolution const &convolution)
Converting copy constructor.
void normalize() override
Put the parameters into a "standard form", and throw InvalidParameterError if they cannot be normaliz...
void readParameters(double const *iter) override
Return the size of the bounding box for the ellipse core.
BaseCore & operator=(BaseCore const &other)
Set the parameters of this ellipse core from another.
Quadrupole(Quadrupole const &other)
Copy constructor.
void _assignToAxes(double &a, double &b, double &theta) const override
Return the size of the bounding box for the ellipse core.
Jacobian _dAssignToQuadrupole(double &ixx, double &iyy, double &ixy) const override
Return the size of the bounding box for the ellipse core.
A temporary-only expression object for ellipse core convolution.
Quadrupole(Quadrupole &&other)