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