Search in sources :

Example 26 with Mat

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

the class Imgproc method fillConvexPoly.

// javadoc: fillConvexPoly(img, points, color)
public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color) {
    Mat points_mat = points;
    fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 27 with Mat

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

the class Imgproc method fitEllipse.

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

Example 28 with Mat

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

the class Subdiv2D method insert.

// 
// C++:  void insert(vector_Point2f ptvec)
// 
// javadoc: Subdiv2D::insert(ptvec)
public void insert(MatOfPoint2f ptvec) {
    Mat ptvec_mat = ptvec;
    insert_1(nativeObj, ptvec_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 29 with Mat

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

the class Subdiv2D method getVoronoiFacetList.

// 
// C++:  void getVoronoiFacetList(vector_int idx, vector_vector_Point2f& facetList, vector_Point2f& facetCenters)
// 
// javadoc: Subdiv2D::getVoronoiFacetList(idx, facetList, facetCenters)
public void getVoronoiFacetList(MatOfInt idx, List<MatOfPoint2f> facetList, MatOfPoint2f facetCenters) {
    Mat idx_mat = idx;
    Mat facetList_mat = new Mat();
    Mat facetCenters_mat = facetCenters;
    getVoronoiFacetList_0(nativeObj, idx_mat.nativeObj, facetList_mat.nativeObj, facetCenters_mat.nativeObj);
    Converters.Mat_to_vector_vector_Point2f(facetList_mat, facetList);
    facetList_mat.release();
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 30 with Mat

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

the class Subdiv2D method getEdgeList.

// 
// C++:  void getEdgeList(vector_Vec4f& edgeList)
// 
// javadoc: Subdiv2D::getEdgeList(edgeList)
public void getEdgeList(MatOfFloat4 edgeList) {
    Mat edgeList_mat = edgeList;
    getEdgeList_0(nativeObj, edgeList_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

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