本文整理匯總了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;
}