Search in sources :

Example 21 with Mat

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

the class Imgproc method polylines.

// javadoc: polylines(img, pts, isClosed, color)
public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color) {
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    polylines_2(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3]);
    return;
}
Also used : Mat(org.opencv.core.Mat) ArrayList(java.util.ArrayList)

Example 22 with Mat

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

the class Imgproc method pointPolygonTest.

// 
// C++:  double pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist)
// 
// javadoc: pointPolygonTest(contour, pt, measureDist)
public static double pointPolygonTest(MatOfPoint2f contour, Point pt, boolean measureDist) {
    Mat contour_mat = contour;
    double retVal = pointPolygonTest_0(contour_mat.nativeObj, pt.x, pt.y, measureDist);
    return retVal;
}
Also used : Mat(org.opencv.core.Mat)

Example 23 with Mat

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

the class Imgproc method arcLength.

// 
// C++:  double arcLength(vector_Point2f curve, bool closed)
// 
// javadoc: arcLength(curve, closed)
public static double arcLength(MatOfPoint2f curve, boolean closed) {
    Mat curve_mat = curve;
    double retVal = arcLength_0(curve_mat.nativeObj, closed);
    return retVal;
}
Also used : Mat(org.opencv.core.Mat)

Example 24 with Mat

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

the class Imgproc method goodFeaturesToTrack.

// javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance)
public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance) {
    Mat corners_mat = corners;
    goodFeaturesToTrack_1(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 25 with Mat

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

the class Imgproc method minAreaRect.

// 
// C++:  RotatedRect minAreaRect(vector_Point2f points)
// 
// javadoc: minAreaRect(points)
public static RotatedRect minAreaRect(MatOfPoint2f points) {
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    return retVal;
}
Also used : Mat(org.opencv.core.Mat) RotatedRect(org.opencv.core.RotatedRect)

Aggregations

Mat (org.opencv.core.Mat)285 Point (org.opencv.core.Point)50 ArrayList (java.util.ArrayList)45 MatOfPoint (org.opencv.core.MatOfPoint)43 MatOfKeyPoint (org.opencv.core.MatOfKeyPoint)20 Size (org.opencv.core.Size)20 KeyPoint (org.opencv.core.KeyPoint)18 Scalar (org.opencv.core.Scalar)17 Rect (org.opencv.core.Rect)16 File (java.io.File)8 RotatedRect (org.opencv.core.RotatedRect)6 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 IOException (java.io.IOException)4 FilterElement (de.serviceflow.frankenstein.vf.FilterElement)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)3