當前位置: 首頁>>代碼示例>>Java>>正文


Java Converters.vector_vector_Point2f_to_Mat方法代碼示例

本文整理匯總了Java中org.opencv.utils.Converters.vector_vector_Point2f_to_Mat方法的典型用法代碼示例。如果您正苦於以下問題:Java Converters.vector_vector_Point2f_to_Mat方法的具體用法?Java Converters.vector_vector_Point2f_to_Mat怎麽用?Java Converters.vector_vector_Point2f_to_Mat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.opencv.utils.Converters的用法示例。


在下文中一共展示了Converters.vector_vector_Point2f_to_Mat方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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;
}
 
開發者ID:spacejake,項目名稱:android-age-estimator,代碼行數:11,代碼來源:Calib3d.java

示例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;
}
 
開發者ID:TheBigBombman,項目名稱:RobotIGS,代碼行數:11,代碼來源:Calib3d.java

示例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;
   }
 
開發者ID:wblgers,項目名稱:OpenCV_Android_Plus,代碼行數:29,代碼來源:Calib3d.java


注:本文中的org.opencv.utils.Converters.vector_vector_Point2f_to_Mat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。