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


Java Converters.vector_vector_KeyPoint_to_Mat方法代碼示例

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


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

示例1: compute

import org.opencv.utils.Converters; //導入方法依賴的package包/類
public  void compute(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> descriptors)
{
    Mat images_mat = Converters.vector_Mat_to_Mat(images);
    List<Mat> keypoints_tmplm = new ArrayList<Mat>((keypoints != null) ? keypoints.size() : 0);
    Mat keypoints_mat = Converters.vector_vector_KeyPoint_to_Mat(keypoints, keypoints_tmplm);
    Mat descriptors_mat = new Mat();
    compute_1(nativeObj, images_mat.nativeObj, keypoints_mat.nativeObj, descriptors_mat.nativeObj);
    Converters.Mat_to_vector_vector_KeyPoint(keypoints_mat, keypoints);
    keypoints_mat.release();
    Converters.Mat_to_vector_Mat(descriptors_mat, descriptors);
    descriptors_mat.release();
    return;
}
 
開發者ID:johnhany,項目名稱:MOAAP,代碼行數:14,代碼來源:Feature2D.java

示例2: add

import org.opencv.utils.Converters; //導入方法依賴的package包/類
/**
* <p>Adds images and their keypoints to the training collection stored in the
* class instance.</p>
*
* @param images Image collection.
* @param keypoints Point collection. It is assumed that <code>keypoints[i]</code>
* are keypoints detected in the image <code>images[i]</code>.
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_generic_descriptor_matchers.html#genericdescriptormatcher-add">org.opencv.features2d.GenericDescriptorMatcher.add</a>
*/
   public  void add(List<Mat> images, List<MatOfKeyPoint> keypoints)
   {
       Mat images_mat = Converters.vector_Mat_to_Mat(images);
       List<Mat> keypoints_tmplm = new ArrayList<Mat>((keypoints != null) ? keypoints.size() : 0);
       Mat keypoints_mat = Converters.vector_vector_KeyPoint_to_Mat(keypoints, keypoints_tmplm);
       add_0(nativeObj, images_mat.nativeObj, keypoints_mat.nativeObj);

       return;
   }
 
開發者ID:hoangphuc3117,項目名稱:Android-Crop-Receipt,代碼行數:20,代碼來源:GenericDescriptorMatcher.java

示例3: compute

import org.opencv.utils.Converters; //導入方法依賴的package包/類
/**
* <p>Computes the descriptors for a set of keypoints detected in an image (first
* variant) or image set (second variant).</p>
*
* @param images Image set.
* @param keypoints Input collection of keypoints. Keypoints for which a
* descriptor cannot be computed are removed and the remaining ones may be
* reordered. Sometimes new keypoints can be added, for example:
* <code>SIFT</code> duplicates a keypoint with several dominant orientations
* (for each orientation).
* @param descriptors Computed descriptors. In the second variant of the method
* <code>descriptors[i]</code> are descriptors computed for a <code>keypoints[i]</code>.
* Row <code>j</code> is the <code>keypoints</code> (or <code>keypoints[i]</code>)
* is the descriptor for keypoint <code>j</code>-th keypoint.
*
* @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_extractors.html#descriptorextractor-compute">org.opencv.features2d.DescriptorExtractor.compute</a>
*/
   public  void compute(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> descriptors)
   {
       Mat images_mat = Converters.vector_Mat_to_Mat(images);
       List<Mat> keypoints_tmplm = new ArrayList<Mat>((keypoints != null) ? keypoints.size() : 0);
       Mat keypoints_mat = Converters.vector_vector_KeyPoint_to_Mat(keypoints, keypoints_tmplm);
       Mat descriptors_mat = new Mat();
       compute_1(nativeObj, images_mat.nativeObj, keypoints_mat.nativeObj, descriptors_mat.nativeObj);
       Converters.Mat_to_vector_vector_KeyPoint(keypoints_mat, keypoints);
       Converters.Mat_to_vector_Mat(descriptors_mat, descriptors);
       return;
   }
 
開發者ID:jocstech,項目名稱:AndroidCameraSudokuSolver,代碼行數:29,代碼來源:DescriptorExtractor.java


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