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