Example usage for org.opencv.imgproc Imgproc ellipse

List of usage examples for org.opencv.imgproc Imgproc ellipse

Introduction

In this page you can find the example usage for org.opencv.imgproc Imgproc ellipse.

Prototype

public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle,
            Scalar color, int thickness) 

Source Link

Usage

From source file:org.lasarobotics.vision.image.Drawing.java

License:Open Source License

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);// w ww.  j  a  va  2  s.c  o  m
}

From source file:org.lasarobotics.vision.image.Drawing.java

License:Open Source License

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);
}