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