本文整理汇总了Java中org.opencv.utils.Converters.vector_vector_Point3f_to_Mat方法的典型用法代码示例。如果您正苦于以下问题:Java Converters.vector_vector_Point3f_to_Mat方法的具体用法?Java Converters.vector_vector_Point3f_to_Mat怎么用?Java Converters.vector_vector_Point3f_to_Mat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opencv.utils.Converters
的用法示例。
在下文中一共展示了Converters.vector_vector_Point3f_to_Mat方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initCameraMatrix2D
import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static Mat initCameraMatrix2D(List<MatOfPoint3f> objectPoints, List<MatOfPoint2f> imagePoints, Size imageSize, double aspectRatio)
{
List<Mat> objectPoints_tmplm = new ArrayList<Mat>((objectPoints != null) ? objectPoints.size() : 0);
Mat objectPoints_mat = Converters.vector_vector_Point3f_to_Mat(objectPoints, objectPoints_tmplm);
List<Mat> imagePoints_tmplm = new ArrayList<Mat>((imagePoints != null) ? imagePoints.size() : 0);
Mat imagePoints_mat = Converters.vector_vector_Point2f_to_Mat(imagePoints, imagePoints_tmplm);
Mat retVal = new Mat(initCameraMatrix2D_0(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height, aspectRatio));
return retVal;
}
示例2: initCameraMatrix2D
import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static Mat initCameraMatrix2D(List<MatOfPoint3f> objectPoints, List<MatOfPoint2f> imagePoints, Size imageSize)
{
List<Mat> objectPoints_tmplm = new ArrayList<Mat>((objectPoints != null) ? objectPoints.size() : 0);
Mat objectPoints_mat = Converters.vector_vector_Point3f_to_Mat(objectPoints, objectPoints_tmplm);
List<Mat> imagePoints_tmplm = new ArrayList<Mat>((imagePoints != null) ? imagePoints.size() : 0);
Mat imagePoints_mat = Converters.vector_vector_Point2f_to_Mat(imagePoints, imagePoints_tmplm);
Mat retVal = new Mat(initCameraMatrix2D_1(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height));
return retVal;
}
示例3: initCameraMatrix2D
import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>Finds an initial camera matrix from 3D-2D point correspondences.</p>
*
* <p>The function estimates and returns an initial camera matrix for the camera
* calibration process.
* Currently, the function only supports planar calibration patterns, which are
* patterns where each object point has z-coordinate =0.</p>
*
* @param objectPoints Vector of vectors of the calibration pattern points in
* the calibration pattern coordinate space. In the old interface all the
* per-view vectors are concatenated. See "calibrateCamera" for details.
* @param imagePoints Vector of vectors of the projections of the calibration
* pattern points. In the old interface all the per-view vectors are
* concatenated.
* @param imageSize Image size in pixels used to initialize the principal point.
*
* @see <a href="http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#initcameramatrix2d">org.opencv.calib3d.Calib3d.initCameraMatrix2D</a>
*/
public static Mat initCameraMatrix2D(List<MatOfPoint3f> objectPoints, List<MatOfPoint2f> imagePoints, Size imageSize)
{
List<Mat> objectPoints_tmplm = new ArrayList<Mat>((objectPoints != null) ? objectPoints.size() : 0);
Mat objectPoints_mat = Converters.vector_vector_Point3f_to_Mat(objectPoints, objectPoints_tmplm);
List<Mat> imagePoints_tmplm = new ArrayList<Mat>((imagePoints != null) ? imagePoints.size() : 0);
Mat imagePoints_mat = Converters.vector_vector_Point2f_to_Mat(imagePoints, imagePoints_tmplm);
Mat retVal = new Mat(initCameraMatrix2D_1(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height));
return retVal;
}
示例4: initCameraMatrix2D
import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>Finds an initial camera matrix from 3D-2D point correspondences.</p>
*
* <p>The function estimates and returns an initial camera matrix for the camera
* calibration process.
* Currently, the function only supports planar calibration patterns, which are
* patterns where each object point has z-coordinate =0.</p>
*
* @param objectPoints Vector of vectors of the calibration pattern points in
* the calibration pattern coordinate space. In the old interface all the
* per-view vectors are concatenated. See "calibrateCamera" for details.
* @param imagePoints Vector of vectors of the projections of the calibration
* pattern points. In the old interface all the per-view vectors are
* concatenated.
* @param imageSize Image size in pixels used to initialize the principal point.
* @param aspectRatio If it is zero or negative, both <em>f_x</em> and
* <em>f_y</em> are estimated independently. Otherwise, <em>f_x = f_y *
* aspectRatio</em>.
*
* @see <a href="http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#initcameramatrix2d">org.opencv.calib3d.Calib3d.initCameraMatrix2D</a>
*/
public static Mat initCameraMatrix2D(List<MatOfPoint3f> objectPoints, List<MatOfPoint2f> imagePoints, Size imageSize, double aspectRatio)
{
List<Mat> objectPoints_tmplm = new ArrayList<Mat>((objectPoints != null) ? objectPoints.size() : 0);
Mat objectPoints_mat = Converters.vector_vector_Point3f_to_Mat(objectPoints, objectPoints_tmplm);
List<Mat> imagePoints_tmplm = new ArrayList<Mat>((imagePoints != null) ? imagePoints.size() : 0);
Mat imagePoints_mat = Converters.vector_vector_Point2f_to_Mat(imagePoints, imagePoints_tmplm);
Mat retVal = new Mat(initCameraMatrix2D_0(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height, aspectRatio));
return retVal;
}