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


Java Converters.Mat_to_vector_vector_DMatch方法代码示例

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


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

示例1: 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:daquexian,项目名称:DNNLibrary,代码行数:10,代码来源:DescriptorMatcher.java

示例2: radiusMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public  void radiusMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, float maxDistance)
{
    Mat matches_mat = new Mat();
    radiusMatch_1(nativeObj, queryDescriptors.nativeObj, trainDescriptors.nativeObj, matches_mat.nativeObj, maxDistance);
    Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
    matches_mat.release();
    return;
}
 
开发者ID:johnhany,项目名称:MOAAP,代码行数:9,代码来源:DescriptorMatcher.java

示例3: knnMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
public  void knnMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, int k)
{
    Mat matches_mat = new Mat();
    knnMatch_1(nativeObj, queryDescriptors.nativeObj, trainDescriptors.nativeObj, matches_mat.nativeObj, k);
    Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
    matches_mat.release();
    return;
}
 
开发者ID:RaiMan,项目名称:Sikulix2opencv,代码行数:9,代码来源:DescriptorMatcher.java

示例4: 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:johnhany,项目名称:MOAAP,代码行数:10,代码来源:DescriptorMatcher.java

示例5: 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:johnhany,项目名称:MOAAP,代码行数:9,代码来源:DescriptorMatcher.java

示例6: knnMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>Finds the k best matches for each descriptor from a query set.</p>
*
* <p>These extended variants of "DescriptorMatcher.match" methods find several
* best matches for each query descriptor. The matches are returned in the
* distance increasing order. See "DescriptorMatcher.match" for the details
* about query and train descriptors.</p>
*
* @param queryDescriptors Query set of descriptors.
* @param matches Matches. Each <code>matches[i]</code> is k or less matches for
* the same query descriptor.
* @param k Count of best matches found per each query descriptor or less if a
* query descriptor has less than k possible matches in total.
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_matchers.html#descriptormatcher-knnmatch">org.opencv.features2d.DescriptorMatcher.knnMatch</a>
*/
   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);
       return;
   }
 
开发者ID:jocstech,项目名称:AndroidCameraSudokuSolver,代码行数:24,代码来源:DescriptorMatcher.java

示例7: radiusMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>For each query keypoint, finds the training keypoints not farther than the
* specified distance.</p>
*
* <p>The methods are similar to <code>DescriptorMatcher.radius</code>. But this
* class does not require explicitly computed keypoint descriptors.</p>
*
* @param queryImage a queryImage
* @param queryKeypoints a queryKeypoints
* @param matches a matches
* @param maxDistance a maxDistance
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_generic_descriptor_matchers.html#genericdescriptormatcher-radiusmatch">org.opencv.features2d.GenericDescriptorMatcher.radiusMatch</a>
*/
   public  void radiusMatch(Mat queryImage, MatOfKeyPoint queryKeypoints, List<MatOfDMatch> matches, float maxDistance)
   {
       Mat queryKeypoints_mat = queryKeypoints;
       Mat matches_mat = new Mat();
       radiusMatch_3(nativeObj, queryImage.nativeObj, queryKeypoints_mat.nativeObj, matches_mat.nativeObj, maxDistance);
       Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
       return;
   }
 
开发者ID:hollaus,项目名称:TinyPlanetMaker,代码行数:23,代码来源:GenericDescriptorMatcher.java

示例8: radiusMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>For each query descriptor, finds the training descriptors not farther than
* the specified distance.</p>
*
* <p>For each query descriptor, the methods find such training descriptors that
* the distance between the query descriptor and the training descriptor is
* equal or smaller than <code>maxDistance</code>. Found matches are returned in
* the distance increasing order.</p>
*
* @param queryDescriptors Query set of descriptors.
* @param matches Found matches.
* @param maxDistance Threshold for the distance between matched descriptors.
* Distance means here metric distance (e.g. Hamming distance), not the distance
* between coordinates (which is measured in Pixels)!
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_matchers.html#descriptormatcher-radiusmatch">org.opencv.features2d.DescriptorMatcher.radiusMatch</a>
*/
   public  void radiusMatch(Mat queryDescriptors, List<MatOfDMatch> matches, float maxDistance)
   {
       Mat matches_mat = new Mat();
       radiusMatch_3(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, maxDistance);
       Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
       return;
   }
 
开发者ID:wblgers,项目名称:OpenCV_Android_Plus,代码行数:25,代码来源:DescriptorMatcher.java

示例9: knnMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>Finds the <code>k</code> best matches for each query keypoint.</p>
*
* <p>The methods are extended variants of <code>GenericDescriptorMatch.match</code>.
* The parameters are similar, and the semantics is similar to <code>DescriptorMatcher.knnMatch</code>.
* But this class does not require explicitly computed keypoint descriptors.</p>
*
* @param queryImage a queryImage
* @param queryKeypoints a queryKeypoints
* @param trainImage a trainImage
* @param trainKeypoints a trainKeypoints
* @param matches a matches
* @param k a k
* @param mask a mask
* @param compactResult a compactResult
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_generic_descriptor_matchers.html#genericdescriptormatcher-knnmatch">org.opencv.features2d.GenericDescriptorMatcher.knnMatch</a>
*/
   public  void knnMatch(Mat queryImage, MatOfKeyPoint queryKeypoints, Mat trainImage, MatOfKeyPoint trainKeypoints, List<MatOfDMatch> matches, int k, Mat mask, boolean compactResult)
   {
       Mat queryKeypoints_mat = queryKeypoints;
       Mat trainKeypoints_mat = trainKeypoints;
       Mat matches_mat = new Mat();
       knnMatch_0(nativeObj, queryImage.nativeObj, queryKeypoints_mat.nativeObj, trainImage.nativeObj, trainKeypoints_mat.nativeObj, matches_mat.nativeObj, k, mask.nativeObj, compactResult);
       Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
       matches_mat.release();
       return;
   }
 
开发者ID:Deeplocal,项目名称:android-things-drawbot,代码行数:29,代码来源:GenericDescriptorMatcher.java

示例10: knnMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>Finds the k best matches for each descriptor from a query set.</p>
*
* <p>These extended variants of "DescriptorMatcher.match" methods find several
* best matches for each query descriptor. The matches are returned in the
* distance increasing order. See "DescriptorMatcher.match" for the details
* about query and train descriptors.</p>
*
* @param queryDescriptors Query set of descriptors.
* @param matches Matches. Each <code>matches[i]</code> is k or less matches for
* the same query descriptor.
* @param k Count of best matches found per each query descriptor or less if a
* query descriptor has less than k possible matches in total.
* @param masks Set of masks. Each <code>masks[i]</code> specifies permissible
* matches between the input query descriptors and stored train descriptors from
* the i-th image <code>trainDescCollection[i]</code>.
* @param compactResult Parameter used when the mask (or masks) is not empty. If
* <code>compactResult</code> is false, the <code>matches</code> vector has the
* same size as <code>queryDescriptors</code> rows. If <code>compactResult</code>
* is true, the <code>matches</code> vector does not contain matches for fully
* masked-out query descriptors.
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_matchers.html#descriptormatcher-knnmatch">org.opencv.features2d.DescriptorMatcher.knnMatch</a>
*/
   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);
       return;
   }
 
开发者ID:hollaus,项目名称:TinyPlanetMaker,代码行数:33,代码来源:DescriptorMatcher.java

示例11: radiusMatch

import org.opencv.utils.Converters; //导入方法依赖的package包/类
/**
* <p>For each query descriptor, finds the training descriptors not farther than
* the specified distance.</p>
*
* <p>For each query descriptor, the methods find such training descriptors that
* the distance between the query descriptor and the training descriptor is
* equal or smaller than <code>maxDistance</code>. Found matches are returned in
* the distance increasing order.</p>
*
* @param queryDescriptors Query set of descriptors.
* @param trainDescriptors Train set of descriptors. This set is not added to
* the train descriptors collection stored in the class object.
* @param matches Found matches.
* @param maxDistance Threshold for the distance between matched descriptors.
* Distance means here metric distance (e.g. Hamming distance), not the distance
* between coordinates (which is measured in Pixels)!
* @param mask Mask specifying permissible matches between an input query and
* train matrices of descriptors.
* @param compactResult Parameter used when the mask (or masks) is not empty. If
* <code>compactResult</code> is false, the <code>matches</code> vector has the
* same size as <code>queryDescriptors</code> rows. If <code>compactResult</code>
* is true, the <code>matches</code> vector does not contain matches for fully
* masked-out query descriptors.
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_matchers.html#descriptormatcher-radiusmatch">org.opencv.features2d.DescriptorMatcher.radiusMatch</a>
*/
   public  void radiusMatch(Mat queryDescriptors, Mat trainDescriptors, List<MatOfDMatch> matches, float maxDistance, Mat mask, boolean compactResult)
   {
       Mat matches_mat = new Mat();
       radiusMatch_0(nativeObj, queryDescriptors.nativeObj, trainDescriptors.nativeObj, matches_mat.nativeObj, maxDistance, mask.nativeObj, compactResult);
       Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
       return;
   }
 
开发者ID:jocstech,项目名称:AndroidCameraSudokuSolver,代码行数:34,代码来源:DescriptorMatcher.java


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