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


Java Converters類代碼示例

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


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

示例1: mixChannels

import org.opencv.utils.Converters; //導入依賴的package包/類
public static void mixChannels(List<Mat> src, List<Mat> dst, MatOfInt fromTo)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
    Mat fromTo_mat = fromTo;
    mixChannels_0(src_mat.nativeObj, dst_mat.nativeObj, fromTo_mat.nativeObj);
    
    return;
}
 
開發者ID:KAlO2,項目名稱:OpenCV,代碼行數:10,代碼來源:Core.java

示例2: denoise_TVL1

import org.opencv.utils.Converters; //導入依賴的package包/類
public static void denoise_TVL1(List<Mat> observations, Mat result, double lambda, int niters)
{
    Mat observations_mat = Converters.vector_Mat_to_Mat(observations);
    denoise_TVL1_0(observations_mat.nativeObj, result.nativeObj, lambda, niters);
    
    return;
}
 
開發者ID:raulh82vlc,項目名稱:Image-Detection-Samples,代碼行數:8,代碼來源:Photo.java

示例3: radiusMatch

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void radiusMatch(Mat queryDescriptors, List<MatOfDMatch> matches, float maxDistance, List<Mat> masks, boolean compactResult)
{
    Mat matches_mat = new Mat();
    Mat masks_mat = Converters.vector_Mat_to_Mat(masks);
    radiusMatch_2(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, maxDistance, masks_mat.nativeObj, compactResult);
    Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
    matches_mat.release();
    return;
}
 
開發者ID:SCHS-Robotics,項目名稱:Team9261-2017-2018,代碼行數:10,代碼來源:DescriptorMatcher.java

示例4: detect

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void detect(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> masks)
{
    Mat images_mat = Converters.vector_Mat_to_Mat(images);
    Mat keypoints_mat = new Mat();
    Mat masks_mat = Converters.vector_Mat_to_Mat(masks);
    detect_2(nativeObj, images_mat.nativeObj, keypoints_mat.nativeObj, masks_mat.nativeObj);
    Converters.Mat_to_vector_vector_KeyPoint(keypoints_mat, keypoints);
    keypoints_mat.release();
    return;
}
 
開發者ID:raulh82vlc,項目名稱:Image-Detection-Samples,代碼行數:11,代碼來源:FeatureDetector.java

示例5: rectify3Collinear

import org.opencv.utils.Converters; //導入依賴的package包/類
public static float rectify3Collinear(Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, Mat cameraMatrix3, Mat distCoeffs3, List<Mat> imgpt1, List<Mat> imgpt3, Size imageSize, Mat R12, Mat T12, Mat R13, Mat T13, Mat R1, Mat R2, Mat R3, Mat P1, Mat P2, Mat P3, Mat Q, double alpha, Size newImgSize, Rect roi1, Rect roi2, int flags)
{
    Mat imgpt1_mat = Converters.vector_Mat_to_Mat(imgpt1);
    Mat imgpt3_mat = Converters.vector_Mat_to_Mat(imgpt3);
    double[] roi1_out = new double[4];
    double[] roi2_out = new double[4];
    float retVal = rectify3Collinear_0(cameraMatrix1.nativeObj, distCoeffs1.nativeObj, cameraMatrix2.nativeObj, distCoeffs2.nativeObj, cameraMatrix3.nativeObj, distCoeffs3.nativeObj, imgpt1_mat.nativeObj, imgpt3_mat.nativeObj, imageSize.width, imageSize.height, R12.nativeObj, T12.nativeObj, R13.nativeObj, T13.nativeObj, R1.nativeObj, R2.nativeObj, R3.nativeObj, P1.nativeObj, P2.nativeObj, P3.nativeObj, Q.nativeObj, alpha, newImgSize.width, newImgSize.height, roi1_out, roi2_out, flags);
    if(roi1!=null){ roi1.x = (int)roi1_out[0]; roi1.y = (int)roi1_out[1]; roi1.width = (int)roi1_out[2]; roi1.height = (int)roi1_out[3]; }
    if(roi2!=null){ roi2.x = (int)roi2_out[0]; roi2.y = (int)roi2_out[1]; roi2.width = (int)roi2_out[2]; roi2.height = (int)roi2_out[3]; }
    return retVal;
}
 
開發者ID:Deeplocal,項目名稱:android-things-drawbot,代碼行數:12,代碼來源:Calib3d.java

示例6: process

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void process(List<Mat> src, Mat dst, Mat times, Mat response)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    process_0(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj, response.nativeObj);
    
    return;
}
 
開發者ID:jorenham,項目名稱:fingerblox,代碼行數:8,代碼來源:MergeRobertson.java

示例7: process

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void process(List<Mat> src, Mat dst)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    process_1(nativeObj, src_mat.nativeObj, dst.nativeObj);
    
    return;
}
 
開發者ID:linzuzeng,項目名稱:Microsphere,代碼行數:8,代碼來源:MergeMertens.java

示例8: process

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void process(List<Mat> src, List<Mat> dst, Mat times, Mat response)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
    process_0(nativeObj, src_mat.nativeObj, dst_mat.nativeObj, times.nativeObj, response.nativeObj);
    
    return;
}
 
開發者ID:InnoFang,項目名稱:Android-Code-Demos,代碼行數:9,代碼來源:AlignExposures.java

示例9: knnMatch

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k)
{
    Mat matches_mat = new Mat();
    knnMatch_3(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, k);
    Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
    matches_mat.release();
    return;
}
 
開發者ID:GTHSRobotics,項目名稱:DogeCV,代碼行數:9,代碼來源:DescriptorMatcher.java

示例10: calibrateCamera

import org.opencv.utils.Converters; //導入依賴的package包/類
public static double calibrateCamera(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, int flags)
{
    Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints);
    Mat imagePoints_mat = Converters.vector_Mat_to_Mat(imagePoints);
    Mat rvecs_mat = new Mat();
    Mat tvecs_mat = new Mat();
    double retVal = calibrateCamera_1(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height, cameraMatrix.nativeObj, distCoeffs.nativeObj, rvecs_mat.nativeObj, tvecs_mat.nativeObj, flags);
    Converters.Mat_to_vector_Mat(rvecs_mat, rvecs);
    rvecs_mat.release();
    Converters.Mat_to_vector_Mat(tvecs_mat, tvecs);
    tvecs_mat.release();
    return retVal;
}
 
開發者ID:beast,項目名稱:react-native-scan-doc,代碼行數:14,代碼來源:Calib3d.java

示例11: calibrate

import org.opencv.utils.Converters; //導入依賴的package包/類
public static double calibrate(List<Mat> objectPoints, List<Mat> imagePoints, Size image_size, Mat K, Mat D, List<Mat> rvecs, List<Mat> tvecs, int flags, TermCriteria criteria)
{
    Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints);
    Mat imagePoints_mat = Converters.vector_Mat_to_Mat(imagePoints);
    Mat rvecs_mat = new Mat();
    Mat tvecs_mat = new Mat();
    double retVal = calibrate_0(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, image_size.width, image_size.height, K.nativeObj, D.nativeObj, rvecs_mat.nativeObj, tvecs_mat.nativeObj, flags, criteria.type, criteria.maxCount, criteria.epsilon);
    Converters.Mat_to_vector_Mat(rvecs_mat, rvecs);
    rvecs_mat.release();
    Converters.Mat_to_vector_Mat(tvecs_mat, tvecs);
    tvecs_mat.release();
    return retVal;
}
 
開發者ID:ahmetozlu,項目名稱:real_time_circle_detection_android,代碼行數:14,代碼來源:Calib3d.java

示例12: polylines

import org.opencv.utils.Converters; //導入依賴的package包/類
public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift)
{
    List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0);
    Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
    polylines_0(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
    
    return;
}
 
開發者ID:SCHS-Robotics,項目名稱:Team9261-2017-2018,代碼行數:9,代碼來源:Imgproc.java

示例13: knnMatch

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k, List<Mat> masks, boolean compactResult)
{
    Mat matches_mat = new Mat();
    Mat masks_mat = Converters.vector_Mat_to_Mat(masks);
    knnMatch_2(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, k, masks_mat.nativeObj, compactResult);
    Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
    matches_mat.release();
    return;
}
 
開發者ID:johnhany,項目名稱:MOAAP,代碼行數:10,代碼來源:DescriptorMatcher.java

示例14: getDescriptors

import org.opencv.utils.Converters; //導入依賴的package包/類
public  List<Mat> getDescriptors()
{
    List<Mat> retVal = new ArrayList<Mat>();
    Mat retValMat = new Mat(getDescriptors_0(nativeObj));
    Converters.Mat_to_vector_Mat(retValMat, retVal);
    return retVal;
}
 
開發者ID:KAlO2,項目名稱:OpenCV,代碼行數:8,代碼來源:BOWTrainer.java

示例15: process

import org.opencv.utils.Converters; //導入依賴的package包/類
public  void process(List<Mat> src, Mat dst, Mat times)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    process_1(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj);
    
    return;
}
 
開發者ID:johnhany,項目名稱:MOAAP,代碼行數:8,代碼來源:MergeRobertson.java


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