public static MatOfPoint3f fromNativeAddr(long addr) { return new MatOfPoint3f(addr); }
public static MatOfPoint3f fromNativeAddr(long addr) { return new MatOfPoint3f(addr); }
public static MatOfPoint3f fromNativeAddr(long addr) { return new MatOfPoint3f(addr); }
public static MatOfPoint3f fromNativeAddr(long addr) { return new MatOfPoint3f(addr); }
public static MatOfPoint3f fromNativeAddr(long addr) { return new MatOfPoint3f(addr); }
public static MatOfPoint3f fromNativeAddr(long addr) { return new MatOfPoint3f(addr); }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); } }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); } }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); } }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); } }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); } }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); mi.release(); } mats.clear(); }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); mi.release(); } mats.clear(); }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); mi.release(); } mats.clear(); }
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) { if (pts == null) throw new java.lang.IllegalArgumentException("Output List can't be null"); if (m == null) throw new java.lang.IllegalArgumentException("Input Mat can't be null"); List<Mat> mats = new ArrayList<Mat>(m.rows()); Mat_to_vector_Mat(m, mats); for (Mat mi : mats) { MatOfPoint3f pt = new MatOfPoint3f(mi); pts.add(pt); mi.release(); } mats.clear(); }
private void drawReprojectedPoints(BufferedImage image, Mat rvec, Mat tvec, Color color) { MatOfPoint2f imagePoints = new MatOfPoint2f(); Calib3d.projectPoints(new MatOfPoint3f(boardPoints), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); drawImagePoints(image, imagePoints, color); }
private void drawReprojectedPoints(BufferedImage image, Mat rvec, Mat tvec, Color color) { MatOfPoint2f imagePoints = new MatOfPoint2f(); Calib3d.projectPoints(new MatOfPoint3f(boardPoints), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); drawImagePoints(image, imagePoints, color); }
private void drawAxis(BufferedImage image, Mat rvec, Mat tvec, double scale) { Point3 origin = new Point3(); Point3 xAxis = new Point3(scale, 0.0, 0.0); Point3 yAxis = new Point3(0.0, scale, 0.0); Point3 zAxis = new Point3(0.0, 0.0, scale); MatOfPoint2f imagePoints = new MatOfPoint2f(); Calib3d.projectPoints(new MatOfPoint3f(origin, xAxis), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); drawImagePoints(image, imagePoints, Color.RED); Calib3d.projectPoints(new MatOfPoint3f(origin, yAxis), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); drawImagePoints(image, imagePoints, Color.GREEN); Calib3d.projectPoints(new MatOfPoint3f(origin, zAxis), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); drawImagePoints(image, imagePoints, Color.BLUE); }
public javax.vecmath.Point2d getCheckerBoardImageOrigin(RigidBodyTransform transform) { Point3 origin = new Point3(); Mat tvec = new Mat(3, 1, CvType.CV_32F); Mat rvec = new Mat(3, 1, CvType.CV_32F); rigidBodyTransformToOpenCVTR(transform, tvec, rvec); MatOfPoint2f imagePoints = new MatOfPoint2f(); Calib3d.projectPoints(new MatOfPoint3f(origin), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); return new javax.vecmath.Point2d(imagePoints.get(0, 0)); }
public us.ihmc.euclid.tuple2D.Point2D getCheckerBoardImageOrigin(RigidBodyTransform transform) { Point3 origin = new Point3(); Mat tvec = new Mat(3, 1, CvType.CV_32F); Mat rvec = new Mat(3, 1, CvType.CV_32F); rigidBodyTransformToOpenCVTR(transform, tvec, rvec); MatOfPoint2f imagePoints = new MatOfPoint2f(); Calib3d.projectPoints(new MatOfPoint3f(origin), rvec, tvec, cameraMatrix, distCoeffs, imagePoints); return new us.ihmc.euclid.tuple2D.Point2D(imagePoints.get(0, 0)); }