Java Code Examples for org.opencv.imgproc.Imgproc#ellipse()

The following examples show how to use org.opencv.imgproc.Imgproc#ellipse() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Drawing.java    From FTCVision with MIT License 4 votes vote down vote up
private static void drawEllipse(Mat img, Ellipse ellipse, Color color, int thickness) {
    Imgproc.ellipse(img, ellipse.center(), ellipse.size(), ellipse.angle(), 0, 360, color.getScalarRGBA(), thickness);
}
 
Example 2
Source File: Drawing.java    From FTCVision with MIT License 4 votes vote down vote up
private static void drawArc(Mat img, Ellipse ellipse, Color color, double angleDegrees, int thickness) {
    Imgproc.ellipse(img, ellipse.center(), ellipse.size(), ellipse.angle(), 0, angleDegrees, color.getScalarRGBA(), thickness);
}