fast way to draw ellipse axes?
Is there any way to draw ellipse axes in opencv?
These are a couple of opencv functions regarding ellipses:
// this outputs to 'pts' the points representing an ellipse arc defined by the other parameters
Core.ellipse2Poly(center, axes, angle, arcStart, arcEnd, delta, pts);
// this draws an ellipse
Core.ellipse(img, center, axes, angle, startAngle, endAngle, color);
axes parameter is of type Size and means the width and height of the axes.
I will improve the answer if you provide more details.
If you have the RotatedRect that represents the ellipse then the middle of the RotatedRect four sides are the end of axes coordinates, right? So all you need is a method to get the coordinates of a point in the "middle" of a rectangle side. Let us know if you have troubles calculating that middle point.
Asked: 2012-08-31 01:46:15 -0600
Seen: 1,442 times
Last updated: Aug 31 '12
What information you have about the ellipse, do you know its center coordinates, width and height, more?