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


Java MatOfPoint3f類代碼示例

本文整理匯總了Java中org.opencv.core.MatOfPoint3f的典型用法代碼示例。如果您正苦於以下問題:Java MatOfPoint3f類的具體用法?Java MatOfPoint3f怎麽用?Java MatOfPoint3f使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MatOfPoint3f類屬於org.opencv.core包,在下文中一共展示了MatOfPoint3f類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: Mat_to_vector_vector_Point3f

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
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();
}
 
開發者ID:vulovicv23,項目名稱:opencv-documentscanner-android,代碼行數:17,代碼來源:Converters.java

示例2: Mat_to_vector_vector_Point3f

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static void Mat_to_vector_vector_Point3f(Mat m, List<MatOfPoint3f> pts) {
    if (pts == null)
        throw new IllegalArgumentException("Output List can't be null");

    if (m == null)
        throw new 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();
}
 
開發者ID:ykarim,項目名稱:FTC2016,代碼行數:17,代碼來源:Converters.java

示例3: initCameraMatrix2D

import org.opencv.core.MatOfPoint3f; //導入依賴的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:vulovicv23,項目名稱:opencv-documentscanner-android,代碼行數:11,代碼來源:Calib3d.java

示例4: projectPoints

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static void projectPoints(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat rvec, Mat tvec, Mat K, Mat D, double alpha, Mat jacobian)
{
    Mat objectPoints_mat = objectPoints;
    Mat imagePoints_mat = imagePoints;
    projectPoints_2(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, rvec.nativeObj, tvec.nativeObj, K.nativeObj, D.nativeObj, alpha, jacobian.nativeObj);
    
    return;
}
 
開發者ID:beast,項目名稱:react-native-scan-doc,代碼行數:9,代碼來源:Calib3d.java

示例5: solvePnPRansac

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static boolean solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int iterationsCount, float reprojectionError, double confidence, Mat inliers, int flags)
{
    Mat objectPoints_mat = objectPoints;
    Mat imagePoints_mat = imagePoints;
    Mat distCoeffs_mat = distCoeffs;
    boolean retVal = solvePnPRansac_0(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, cameraMatrix.nativeObj, distCoeffs_mat.nativeObj, rvec.nativeObj, tvec.nativeObj, useExtrinsicGuess, iterationsCount, reprojectionError, confidence, inliers.nativeObj, flags);
    
    return retVal;
}
 
開發者ID:spacejake,項目名稱:android-age-estimator,代碼行數:10,代碼來源:Calib3d.java

示例6: solvePnPRansac

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static boolean solvePnPRansac(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec)
{
    Mat objectPoints_mat = objectPoints;
    Mat imagePoints_mat = imagePoints;
    Mat distCoeffs_mat = distCoeffs;
    boolean retVal = solvePnPRansac_1(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, cameraMatrix.nativeObj, distCoeffs_mat.nativeObj, rvec.nativeObj, tvec.nativeObj);
    
    return retVal;
}
 
開發者ID:trc492,項目名稱:Ftc2018RelicRecovery,代碼行數:10,代碼來源:Calib3d.java

示例7: projectPoints

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static void projectPoints(MatOfPoint3f objectPoints, Mat rvec, Mat tvec, Mat cameraMatrix, MatOfDouble distCoeffs, MatOfPoint2f imagePoints, Mat jacobian, double aspectRatio)
{
    Mat objectPoints_mat = objectPoints;
    Mat distCoeffs_mat = distCoeffs;
    Mat imagePoints_mat = imagePoints;
    projectPoints_0(objectPoints_mat.nativeObj, rvec.nativeObj, tvec.nativeObj, cameraMatrix.nativeObj, distCoeffs_mat.nativeObj, imagePoints_mat.nativeObj, jacobian.nativeObj, aspectRatio);
    
    return;
}
 
開發者ID:johnhany,項目名稱:MOAAP,代碼行數:10,代碼來源:Calib3d.java

示例8: solvePnP

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static boolean solvePnP(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec, boolean useExtrinsicGuess, int flags)
{
    Mat objectPoints_mat = objectPoints;
    Mat imagePoints_mat = imagePoints;
    Mat distCoeffs_mat = distCoeffs;
    boolean retVal = solvePnP_0(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, cameraMatrix.nativeObj, distCoeffs_mat.nativeObj, rvec.nativeObj, tvec.nativeObj, useExtrinsicGuess, flags);
    
    return retVal;
}
 
開發者ID:beast,項目名稱:react-native-scan-doc,代碼行數:10,代碼來源:Calib3d.java

示例9: initCameraMatrix2D

import org.opencv.core.MatOfPoint3f; //導入依賴的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:yippeesoft,項目名稱:NotifyTools,代碼行數:11,代碼來源:Calib3d.java

示例10: solvePnP

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static boolean solvePnP(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat cameraMatrix, MatOfDouble distCoeffs, Mat rvec, Mat tvec)
{
    Mat objectPoints_mat = objectPoints;
    Mat imagePoints_mat = imagePoints;
    Mat distCoeffs_mat = distCoeffs;
    boolean retVal = solvePnP_1(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, cameraMatrix.nativeObj, distCoeffs_mat.nativeObj, rvec.nativeObj, tvec.nativeObj);
    
    return retVal;
}
 
開發者ID:yippeesoft,項目名稱:NotifyTools,代碼行數:10,代碼來源:Calib3d.java

示例11: projectPoints

import org.opencv.core.MatOfPoint3f; //導入依賴的package包/類
public static void projectPoints(MatOfPoint3f objectPoints, Mat rvec, Mat tvec, Mat cameraMatrix, MatOfDouble distCoeffs, MatOfPoint2f imagePoints)
{
    Mat objectPoints_mat = objectPoints;
    Mat distCoeffs_mat = distCoeffs;
    Mat imagePoints_mat = imagePoints;
    projectPoints_1(objectPoints_mat.nativeObj, rvec.nativeObj, tvec.nativeObj, cameraMatrix.nativeObj, distCoeffs_mat.nativeObj, imagePoints_mat.nativeObj);
    
    return;
}
 
開發者ID:yippeesoft,項目名稱:NotifyTools,代碼行數:10,代碼來源:Calib3d.java


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