Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

"core.ellipse" has error

$
0
0
How can I solve error? "core.ellipse" has error like below ![image description](/upfiles/14697065822726516.jpg) but core.ellipse have api doc ===>http://docs.opencv.org/java/2.4.2/org/opencv/core/Core.html#ellipse(org.opencv.core.Mat, org.opencv.core.Point, org.opencv.core.Size, double, double, double, org.opencv.core.Scalar) --------------------------- ellipse public static void ellipse(Mat img, RotatedRect box, Scalar color, int thickness) Draws a simple or thick elliptic arc or fills an ellipse sector. The functions ellipse with less parameters draw an ellipse outline, a filled ellipse, an elliptic arc, or a filled ellipse sector. A piecewise-linear curve is used to approximate the elliptic arc boundary. If you need more control of the ellipse rendering, you can retrieve the curve using "ellipse2Poly" and then render it with "polylines" or fill it with "fillPoly". If you use the first variant of the function and want to draw the whole ellipse, not an arc, pass startAngle=0 and endAngle=360. The figure below explains the meaning of the parameters. Figure 1. Parameters of Elliptic Arc Parameters: img - Image. box - Alternative ellipse representation via "RotatedRect" or CvBox2D. This means that the function draws an ellipse inscribed in the rotated rectangle. color - Ellipse color. thickness - Thickness of the ellipse arc outline, if positive. Otherwise, this indicates that a filled ellipse sector is to be drawn. See Also: org.opencv.core.Core.ellipse -----------------------------------

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>