当前位置: 首页>>代码示例>>Java>>正文


Java Converters.vector_Mat_to_Mat方法代码示例

本文整理汇总了Java中org.opencv.utils.Converters.vector_Mat_to_Mat方法的典型用法代码示例。如果您正苦于以下问题:Java Converters.vector_Mat_to_Mat方法的具体用法?Java Converters.vector_Mat_to_Mat怎么用?Java Converters.vector_Mat_to_Mat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opencv.utils.Converters的用法示例。


在下文中一共展示了Converters.vector_Mat_to_Mat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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:yippeesoft,项目名称:NotifyTools,代码行数:8,代码来源:MergeDebevec.java

示例2: stereoCalibrate

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static double stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat cameraMatrix1, Mat distCoeffs1, Mat cameraMatrix2, Mat distCoeffs2, Size imageSize, Mat R, Mat T, Mat E, Mat F)
{
    Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints);
    Mat imagePoints1_mat = Converters.vector_Mat_to_Mat(imagePoints1);
    Mat imagePoints2_mat = Converters.vector_Mat_to_Mat(imagePoints2);
    double retVal = stereoCalibrate_2(objectPoints_mat.nativeObj, imagePoints1_mat.nativeObj, imagePoints2_mat.nativeObj, cameraMatrix1.nativeObj, distCoeffs1.nativeObj, cameraMatrix2.nativeObj, distCoeffs2.nativeObj, imageSize.width, imageSize.height, R.nativeObj, T.nativeObj, E.nativeObj, F.nativeObj);
    
    return retVal;
}
 
开发者ID:PawelTypiak,项目名称:Checkerboard-IMU-Comparator,代码行数:10,代码来源:Calib3d.java

示例3: match

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public  void match(Mat queryDescriptors, MatOfDMatch matches, List<Mat> masks)
{
    Mat matches_mat = matches;
    Mat masks_mat = Converters.vector_Mat_to_Mat(masks);
    match_2(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, masks_mat.nativeObj);
    
    return;
}
 
开发者ID:typer9527,项目名称:FaceDetectDemo,代码行数:9,代码来源:DescriptorMatcher.java

示例4: process

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public  void process(List<Mat> src, List<Mat> dst)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
    process_1(nativeObj, src_mat.nativeObj, dst_mat.nativeObj);
    
    return;
}
 
开发者ID:linzuzeng,项目名称:Microsphere,代码行数:9,代码来源:AlignMTB.java

示例5: 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:spacejake,项目名称:android-age-estimator,代码行数:11,代码来源:FeatureDetector.java

示例6: calcHist

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)
{
    Mat images_mat = Converters.vector_Mat_to_Mat(images);
    Mat channels_mat = channels;
    Mat histSize_mat = histSize;
    Mat ranges_mat = ranges;
    calcHist_1(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj);
    
    return;
}
 
开发者ID:typer9527,项目名称:FaceDetectDemo,代码行数:11,代码来源:Imgproc.java

示例7: fastNlMeansDenoisingMulti

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void fastNlMeansDenoisingMulti(List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)
{
    Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
    fastNlMeansDenoisingMulti_1(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize);
    
    return;
}
 
开发者ID:linzuzeng,项目名称:Microsphere,代码行数:8,代码来源:Photo.java

示例8: 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:TheBigBombman,项目名称:RobotIGS,代码行数:10,代码来源:Core.java

示例9: denoise_TVL1

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void denoise_TVL1(List<Mat> observations, Mat result)
{
    Mat observations_mat = Converters.vector_Mat_to_Mat(observations);
    denoise_TVL1_1(observations_mat.nativeObj, result.nativeObj);
    
    return;
}
 
开发者ID:spacejake,项目名称:android-age-estimator,代码行数:8,代码来源:Photo.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, 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 = calibrateCamera_0(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height, cameraMatrix.nativeObj, distCoeffs.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:daquexian,项目名称:DNNLibrary,代码行数:14,代码来源:Calib3d.java

示例11: calibrateCameraExtended

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static double calibrateCameraExtended(List<Mat> objectPoints, List<Mat> imagePoints, Size imageSize, Mat cameraMatrix, Mat distCoeffs, List<Mat> rvecs, List<Mat> tvecs, Mat stdDeviationsIntrinsics, Mat stdDeviationsExtrinsics, Mat perViewErrors)
{
    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 = calibrateCameraExtended_2(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height, cameraMatrix.nativeObj, distCoeffs.nativeObj, rvecs_mat.nativeObj, tvecs_mat.nativeObj, stdDeviationsIntrinsics.nativeObj, stdDeviationsExtrinsics.nativeObj, perViewErrors.nativeObj);
    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:typer9527,项目名称:FaceDetectDemo,代码行数:14,代码来源:Calib3d.java

示例12: 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)
{
    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_2(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, imageSize.width, imageSize.height, cameraMatrix.nativeObj, distCoeffs.nativeObj, rvecs_mat.nativeObj, tvecs_mat.nativeObj);
    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

示例13: stereoCalibrate

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static double stereoCalibrate(List<Mat> objectPoints, List<Mat> imagePoints1, List<Mat> imagePoints2, Mat K1, Mat D1, Mat K2, Mat D2, Size imageSize, Mat R, Mat T, int flags, TermCriteria criteria)
{
    Mat objectPoints_mat = Converters.vector_Mat_to_Mat(objectPoints);
    Mat imagePoints1_mat = Converters.vector_Mat_to_Mat(imagePoints1);
    Mat imagePoints2_mat = Converters.vector_Mat_to_Mat(imagePoints2);
    double retVal = stereoCalibrate_3(objectPoints_mat.nativeObj, imagePoints1_mat.nativeObj, imagePoints2_mat.nativeObj, K1.nativeObj, D1.nativeObj, K2.nativeObj, D2.nativeObj, imageSize.width, imageSize.height, R.nativeObj, T.nativeObj, flags, criteria.type, criteria.maxCount, criteria.epsilon);
    
    return retVal;
}
 
开发者ID:linzuzeng,项目名称:Microsphere,代码行数:10,代码来源:Calib3d.java

示例14: 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)
{
    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_2(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, image_size.width, image_size.height, K.nativeObj, D.nativeObj, rvecs_mat.nativeObj, tvecs_mat.nativeObj);
    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:csarron,项目名称:renderscript_examples,代码行数:14,代码来源:Calib3d.java

示例15: hconcat

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public static void hconcat(List<Mat> src, Mat dst)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    hconcat_0(src_mat.nativeObj, dst.nativeObj);
    
    return;
}
 
开发者ID:yippeesoft,项目名称:NotifyTools,代码行数:8,代码来源:Core.java


注:本文中的org.opencv.utils.Converters.vector_Mat_to_Mat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。