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
|
Interface for an object storing Ellipse data. More...
#include <ellipse.h>
Public Member Functions | |
virtual | ~EllipseData ()=default |
virtual void | convolve (const Ellipse &ell) |
Convolve this ellipse with another. | |
virtual double | get_area () const |
Return the area of this ellipse, equal to pi*sigma_major*sigma_minor. | |
virtual double | get_cov_xy () const |
Return the covariance, equal to sigma_x*sigma_y*rho. | |
virtual double | get_hwhm_x () const |
Get the x-axis half-width at half-maximum. | |
virtual double | get_hwhm_y () const |
Get the y-axis half-width at half-maximum. | |
virtual double | get_radius_trace () const |
Return the trace radius, equal to sqrt(sigma_x^2 + sigma_y^2) | |
virtual double | get_sigma_x () const =0 |
Get sigma_x. | |
virtual double | get_sigma_y () const =0 |
Get sigma_y. | |
virtual double | get_rho () const =0 |
Get rho. | |
virtual double | get_sigma_x_sq () const |
Get the square of sigma_x. | |
virtual double | get_sigma_y_sq () const |
Get the square of sigma_y. | |
virtual double | get_sigma_xy () const |
Return sigma_x*sigma_y. | |
virtual std::array< double, 3 > | get_hxyr () const |
Get hwhm_x, hwhm_y, rho. | |
virtual std::array< double, 3 > | get_xyr () const |
Get sigma_x, sigma_y, rho. | |
virtual void | set (double sigma_x, double sigma_y, double rho) |
Set sigma_x, sigma_y, rho. | |
virtual void | set (const Covariance &covar) |
Set values from a Covariance object. | |
virtual void | set (const EllipseMajor &ellipse) |
Set values from an EllipseMajor object. | |
virtual void | set_h (double hwhm_x, double hwhm_y, double rho) |
Set hwhm_x, hwhm_y, rho (half-width at half-max) | |
virtual void | set_hwhm_x (double hwhm_x) |
Set the x-axis half-width at half-max (FWHM/2) | |
virtual void | set_hwhm_y (double hwhm_y) |
Set the y-axis half-width at half-max (FWHM/2) | |
virtual void | set_sigma_x (double sigma_x)=0 |
Set the x-axis dispersion (sigma) | |
virtual void | set_sigma_y (double sigma_y)=0 |
Set the y-axis dispersion (sigma) | |
virtual void | set_rho (double rho)=0 |
Set the correlation parameter (rho) | |
virtual void | set_hxyr (const std::array< double, 3 > &hxyr) |
Set hwhm_x, hwhm_y, rho from an array. | |
virtual void | set_xyr (const std::array< double, 3 > &xyr) |
Set sigma_x, sigma_y, rho from an array. | |
virtual std::string | repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override=0 |
Return a full, callable string representation of this. | |
virtual std::string | str () const override=0 |
Return a brief, human-readable string representation of this. | |
bool | operator== (const EllipseData &other) const |
bool | operator!= (const EllipseData &other) const |
Static Public Member Functions | |
static void | check (double size_x, double size_y, double rho, std::string_view error_suffix="") |
Check whether Ellipse parameter values are valid, throwing if not. | |
static void | check_size (double size, std::string_view error_suffix="") |
Check whether an x- or x-yaxis size value is valid. | |
static void | check_rho (double rho, std::string_view error_suffix="") |
Check whether a rho value is valid. | |
static std::string_view | null_str (const std::string_view &namespace_separator) |
Static Public Attributes | |
static constexpr std::string_view | CC_NAMESPACE_SEPARATOR = "::" |
The C++ namespace separator. | |
static constexpr std::string_view | NULL_STR_GENERAL = "None" |
static constexpr std::string_view | PY_NAMESPACE_SEPARATOR = "." |
Friends | |
std::ostream & | operator<< (std::ostream &out, const EllipseData &obj) |
Interface for an object storing Ellipse data.
This is an abstract class designed to store data for an Ellipse to retrieve. No additional restrictions are placed on implementations. Some default implementations are provided.
|
virtualdefault |
|
inlinestatic |
Check whether Ellipse parameter values are valid, throwing if not.
Definition at line 137 of file ellipse.h.
|
inlinestatic |
Check whether a rho value is valid.
Definition at line 153 of file ellipse.h.
|
inlinestatic |
Check whether an x- or x-yaxis size value is valid.
|
virtual |
Convolve this ellipse with another.
Definition at line 149 of file ellipse.cc.
|
virtual |
Return the area of this ellipse, equal to pi*sigma_major*sigma_minor.
Definition at line 142 of file ellipse.cc.
|
virtual |
|
virtual |
Get the x-axis half-width at half-maximum.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 162 of file ellipse.cc.
|
virtual |
Get the y-axis half-width at half-maximum.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 164 of file ellipse.cc.
|
virtual |
Get hwhm_x, hwhm_y, rho.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 166 of file ellipse.cc.
|
virtual |
Return the trace radius, equal to sqrt(sigma_x^2 + sigma_y^2)
Definition at line 173 of file ellipse.cc.
|
pure virtual |
Get rho.
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
pure virtual |
Get sigma_x.
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
virtual |
|
virtual |
|
pure virtual |
Get sigma_y.
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
virtual |
Get the square of sigma_y.
Definition at line 180 of file ellipse.cc.
|
virtual |
Get sigma_x, sigma_y, rho.
Reimplemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 169 of file ellipse.cc.
|
inlinestaticinherited |
Definition at line 49 of file object.h.
|
inline |
|
inline |
Definition at line 216 of file ellipse.h.
|
overridepure virtual |
Return a full, callable string representation of this.
name_keywords | Whether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python). |
namespace_separator | The string to use to delimit namespaces, i.e. :: in C++ and . in Python. |
Implements lsst::gauss2d::Object.
Implemented in lsst::gauss2d::fit::SersicEllipseData, lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, and lsst::gauss2d::fit::GaussianParametricEllipse.
|
virtual |
Set values from a Covariance object.
Definition at line 263 of file ellipse.cc.
|
virtual |
Set values from an EllipseMajor object.
Definition at line 272 of file ellipse.cc.
|
virtual |
Set sigma_x, sigma_y, rho.
Reimplemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 256 of file ellipse.cc.
|
virtual |
Set hwhm_x, hwhm_y, rho (half-width at half-max)
Reimplemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 297 of file ellipse.cc.
|
virtual |
Set the x-axis half-width at half-max (FWHM/2)
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 303 of file ellipse.cc.
|
virtual |
Set the y-axis half-width at half-max (FWHM/2)
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 304 of file ellipse.cc.
|
virtual |
Set hwhm_x, hwhm_y, rho from an array.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 305 of file ellipse.cc.
|
pure virtual |
Set the correlation parameter (rho)
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
pure virtual |
Set the x-axis dispersion (sigma)
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
pure virtual |
Set the y-axis dispersion (sigma)
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
virtual |
Set sigma_x, sigma_y, rho from an array.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 306 of file ellipse.cc.
|
overridepure virtual |
Return a brief, human-readable string representation of this.
Implements lsst::gauss2d::Object.
Implemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::Ellipse, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
|
friend |
|
staticconstexprinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |