如何在MatOfKeyPoints中插入KeyPoints

时间:2016-01-02 19:12:47

标签: java opencv computer-vision keypoint

如何正确构建MatOfKeyPoint

到目前为止我的代码是:

System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

String sourcePath = path;
Features2d features2d = new Features2d();
Mat srcImgMat = Highgui.imread(sourcePath);
MatOfKeyPoint mat = new MatOfKeyPoint(srcImgMat);

现在我有一些我创建的KeyPoint和它的位置。

KeyPoint tempKeypoint = new KeyPoint();

但是我无法在mat中插入它们,因为方法put不支持此类型。我该怎么办?

0 个答案:

没有答案