|
lsst.afw
13.0-100-ge0459d59f+2
|
An ellipse defined by an arbitrary BaseCore and a center point. More...
#include <Ellipse.h>
Classes | |
| class | GridTransform |
| A temporary-only expression object representing an AffineTransform that maps the Ellipse to a unit circle at the origin. More... | |
| class | Transformer |
| A temporary-only expression object for ellipse transformations. More... | |
Public Types | |
| enum | ParameterEnum { X = 3, Y = 4 } |
| typedef Eigen::Matrix< double, 5, 1 > | ParameterVector |
| Proxy return type for Ellipse::convolve(). More... | |
Public Member Functions | |
| Point2D const & | getCenter () const |
| Return the center point. More... | |
| Point2D & | getCenter () |
| Return the center point. More... | |
| void | setCenter (Point2D const ¢er) |
| Set the center point. More... | |
| BaseCore const & | getCore () const |
| Return the ellipse core. More... | |
| BaseCore & | getCore () |
| Return the ellipse core. More... | |
| std::shared_ptr< BaseCore const > | getCorePtr () const |
| Return the ellipse core. More... | |
| std::shared_ptr< BaseCore > | getCorePtr () |
| Return the ellipse core. More... | |
| void | setCore (BaseCore const &core) |
| Set the ellipse core; the type of the core is not changed. More... | |
| void | normalize () |
| Put the parameters in a standard form. More... | |
| void | grow (double buffer) |
| Increase the major and minor radii of the ellipse by the given buffer. More... | |
| void | scale (double factor) |
| Scale the size of the ellipse by the given factor. More... | |
| void | shift (Extent2D const &offset) |
| Move the ellipse center by the given offset. More... | |
| ParameterVector const | getParameterVector () const |
| Return the ellipse parameters as a vector. More... | |
| void | setParameterVector (ParameterVector const &vector) |
| Set the ellipse parameters from a vector. More... | |
| void | readParameters (double const *iter) |
| void | writeParameters (double *iter) const |
| GridTransform const | getGridTransform () const |
| Return the transform that maps the ellipse to the unit circle. More... | |
| Box2D | computeBBox () const |
| Return the bounding box of the ellipse. More... | |
| Ellipse & | operator= (Ellipse const &other) |
| Set the parameters of this ellipse from another. More... | |
| bool | operator== (Ellipse const &other) const |
| Compare two ellipses for equality. More... | |
| bool | operator!= (Ellipse const &other) const |
| Compare two ellipses for inequality. More... | |
| virtual | ~Ellipse () |
| Ellipse (BaseCore const &core, Point2D const ¢er=Point2D()) | |
| Ellipse (std::shared_ptr< BaseCore const > const &core, Point2D const ¢er=Point2D()) | |
| Ellipse (Transformer const &other) | |
| Ellipse (Convolution const &other) | |
| Ellipse (Ellipse const &other) | |
Coordinate transforms | |
These member functions transform the ellipse by the given AffineTransform. 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 (AffineTransform const &transform) |
| Transformer const | transform (AffineTransform const &transform) const |
Convolve two bivariate Gaussians defined by their 1-sigma ellipses. | |
| Convolution | convolve (Ellipse const &other) |
| Convolution const | convolve (Ellipse const &other) const |
An ellipse defined by an arbitrary BaseCore and a center point.
An ellipse is composed of its center coordinate and its Core - a parametrization of the ellipticity and size of the ellipse. Setting the core of an ellipse never changes the type of the contained core, it merely sets the parameters of that core by converting the parameters.
| typedef Eigen::Matrix<double, 5, 1> lsst::afw::geom::ellipses::Ellipse::ParameterVector |
Proxy return type for Ellipse::convolve().
Parameter vector type.
|
inlinevirtual |
|
inline |
Definition at line 130 of file Transformer.h.
| lsst::afw::geom::ellipses::Ellipse::Ellipse | ( | Convolution const & | other | ) |
|
inline |
| Box2D lsst::afw::geom::ellipses::Ellipse::computeBBox | ( | ) | const |
Return the bounding box of the ellipse.
|
inline |
Definition at line 101 of file Convolution.h.
|
inline |
Definition at line 105 of file Convolution.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return the transform that maps the ellipse to the unit circle.
The returned proxy object is implicitly convertible to AffineTransform and also supports differentiation.
Definition at line 112 of file GridTransform.h.
| ParameterVector const lsst::afw::geom::ellipses::Ellipse::getParameterVector | ( | ) | const |
Return the ellipse parameters as a vector.
|
inline |
|
inline |
|
inline |
Set the parameters of this ellipse from another.
This does not change the parametrization of the ellipse.
|
inline |
| void lsst::afw::geom::ellipses::Ellipse::readParameters | ( | double const * | iter | ) |
|
inline |
|
inline |
|
inline |
| void lsst::afw::geom::ellipses::Ellipse::setParameterVector | ( | ParameterVector const & | vector | ) |
Set the ellipse parameters from a vector.
|
inline |
|
inline |
Definition at line 122 of file Transformer.h.
|
inline |
Definition at line 126 of file Transformer.h.
| void lsst::afw::geom::ellipses::Ellipse::writeParameters | ( | double * | iter | ) | const |
1.8.13