fast way to draw ellipse axes?
Is there any way to draw ellipse axes in opencv?
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,507 times
Last updated: Aug 31 '12
MSER Sample in OpenCV 2.4.2 on Visual Studio 2012
Rotated ellipse as structuring element.
Calculating the mid point in a rotated rectangle side [closed]
calculate 3d pose of sphere based on 2d ellipse
Convert keypoint to ellipse [closed]
Extract an ellipse form from an image instead of drawing it inside
What information you have about the ellipse, do you know its center coordinates, width and height, more?