private void createExternalCornersModel() { this.externalCorners = new MatOfPoint2f( new Point(cornerOfOneImage.get(cornerOfOneImage.rows() - width, 0)[0], cornerOfOneImage.get(cornerOfOneImage.rows() - width, 0)[1]), new Point(cornerOfOneImage.get(0, 0)[0], cornerOfOneImage.get(0, 0)[1]), new Point(cornerOfOneImage.get(width - 1, 0)[0], cornerOfOneImage.get(width - 1, 0)[1]), new Point(cornerOfOneImage.get(cornerOfOneImage.rows() - 1, 0)[0], cornerOfOneImage.get(cornerOfOneImage.rows() - 1, 0)[1])); this.externalCornersModel = new MatOfPoint3f( new Point3(0, (height - 1)*100, 0), new Point3(0, 0, 0), new Point3((width - 1)*100, 0, 0), new Point3((width - 1)*100, (height - 1)*100, 0)); }
public static Mat vector_Point3i_to_Mat(List<Point3> pts) { return vector_Point3_to_Mat(pts, CvType.CV_32S); }
public static Mat vector_Point3f_to_Mat(List<Point3> pts) { return vector_Point3_to_Mat(pts, CvType.CV_32F); }
public static void Mat_to_vector_Point3d(Mat m, List<Point3> pts) { Mat_to_vector_Point3(m, pts); }
public static void Mat_to_vector_Point3i(Mat m, List<Point3> pts) { Mat_to_vector_Point3(m, pts); }
public static void Mat_to_vector_Point3f(Mat m, List<Point3> pts) { Mat_to_vector_Point3(m, pts); }
public static Mat vector_Point3d_to_Mat(List<Point3> pts) { return vector_Point3_to_Mat(pts, CvType.CV_64F); }