Search in sources :

Example 51 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Imgproc method fillConvexPoly.

// 
// C++:  void fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0)
// 
// javadoc: fillConvexPoly(img, points, color, lineType, shift)
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift) {
    Mat points_mat = points;
    fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 52 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Imgproc method fillPoly.

// 
// C++:  void fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point())
// 
// javadoc: fillPoly(img, pts, color, lineType, shift, offset)
public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset) {
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
    return;
}
Also used : Mat(org.opencv.core.Mat) ArrayList(java.util.ArrayList)

Example 53 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Imgproc method ellipse2Poly.

// 
// C++:  void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts)
// 
// javadoc: ellipse2Poly(center, axes, angle, arcStart, arcEnd, delta, pts)
public static void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, MatOfPoint pts) {
    Mat pts_mat = pts;
    ellipse2Poly_0(center.x, center.y, axes.width, axes.height, angle, arcStart, arcEnd, delta, pts_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 54 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Imgproc method convexHull.

// javadoc: convexHull(points, hull)
public static void convexHull(MatOfPoint points, MatOfInt hull) {
    Mat points_mat = points;
    Mat hull_mat = hull;
    convexHull_1(points_mat.nativeObj, hull_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 55 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Imgproc method boundingRect.

// 
// C++:  Rect boundingRect(vector_Point points)
// 
// javadoc: boundingRect(points)
public static Rect boundingRect(MatOfPoint points) {
    Mat points_mat = points;
    Rect retVal = new Rect(boundingRect_0(points_mat.nativeObj));
    return retVal;
}
Also used : Mat(org.opencv.core.Mat) RotatedRect(org.opencv.core.RotatedRect) Rect(org.opencv.core.Rect)

Aggregations

Mat (org.opencv.core.Mat)239 ArrayList (java.util.ArrayList)34 Point (org.opencv.core.Point)33 MatOfPoint (org.opencv.core.MatOfPoint)27 MatOfKeyPoint (org.opencv.core.MatOfKeyPoint)19 KeyPoint (org.opencv.core.KeyPoint)18 Size (org.opencv.core.Size)17 Rect (org.opencv.core.Rect)15 Scalar (org.opencv.core.Scalar)9 File (java.io.File)7 BufferedImage (java.awt.image.BufferedImage)5 FilterContext (de.serviceflow.frankenstein.plugin.api.FilterContext)4 SegmentVideoFilter (de.serviceflow.frankenstein.plugin.api.SegmentVideoFilter)4 DefaultFilterContext (de.serviceflow.frankenstein.vf.DefaultFilterContext)4 VideoFilter (de.serviceflow.frankenstein.vf.VideoFilter)4 DataBufferByte (java.awt.image.DataBufferByte)4 FilterElement (de.serviceflow.frankenstein.vf.FilterElement)3 IOException (java.io.IOException)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)3 ImageNotFoundException (org.getopentest.exceptions.ImageNotFoundException)3