33 r.head<3>() = _core->getParameterVector();
34 r.tail<2>() = _center.
asEigen();
39 _core->setParameterVector(vector.head<3>());
40 _center =
Point2D(vector.tail<2>());
44 _core->readParameters(iter);
45 _center.setX(iter[3]);
46 _center.setY(iter[4]);
50 _core->writeParameters(iter);
51 iter[3] = _center.getX();
52 iter[4] = _center.getY();
BaseCore const & getCore() const
Return the ellipse core.
Eigen::Matrix< double, 5, 1 > ParameterVector
Proxy return type for Ellipse::convolve().
ItemVariant const * other
Ellipse & operator=(Ellipse const &other)
Set the parameters of this ellipse from another.
afw::table::PointKey< int > dimensions
void readParameters(double const *iter)
EigenVector const & asEigen() const
Return a fixed-size Eigen representation of the coordinate object.
A base class for image defects.
Point< double, 2 > Point2D
Extent2D computeDimensions() const
Return the size of the bounding box for the ellipse core.
An ellipse defined by an arbitrary BaseCore and a center point.
Point2D const & getCenter() const
Return the center point.
Box2D computeBBox() const
Return the bounding box of the ellipse.
void setParameterVector(ParameterVector const &vector)
Set the ellipse parameters from a vector.
A floating-point coordinate rectangle geometry.
void writeParameters(double *iter) const
ParameterVector const getParameterVector() const
Return the ellipse parameters as a vector.