为什么基于flann的描述符匹配器每次匹配不同的关键点?(Why does the flann based descriptor matcher match to different keypoint

编程入门 行业动态 更新时间:2024-10-25 11:19:03
为什么基于flann的描述符匹配器每次匹配不同的关键点?(Why does the flann based descriptor matcher match to different keypoints everytime?)

这是正常的吗? 当我尝试使用蛮力匹配器时,结果每次都是一致的,但不是flann。 少量关键点将匹配不同的地方。 我使用Android包装器编写代码,关键点检测器和描述符是SURF,如下所示:

Mat queryDescriptors = new Mat(); Mat trainDescriptors = new Mat(); DescriptorExtractor surfDE = DescriptorExtractor.create(DescriptorExtractor.SURF); surfDE.compute(queryImage, queryKeyPoints, queryDescriptors); surfDE.compute(trainImage, trainKeyPoints, trainDescriptors); DescriptorMatcher dm = DescriptorMatcher.create(DescriptorMatcher.FLANNBASED); List<DMatch> matches = new ArrayList<DMatch>(); dm.match(queryDescriptors, trainDescriptors, matches);

Is it normal? When I tried the brute force matcher, the result is consistent everytime, but flann is not. A small amount of keypoints will match to different places. I am writing the code using the Android wrapper, the keypoint detector and descriptor is SURF, something like this:

Mat queryDescriptors = new Mat(); Mat trainDescriptors = new Mat(); DescriptorExtractor surfDE = DescriptorExtractor.create(DescriptorExtractor.SURF); surfDE.compute(queryImage, queryKeyPoints, queryDescriptors); surfDE.compute(trainImage, trainKeyPoints, trainDescriptors); DescriptorMatcher dm = DescriptorMatcher.create(DescriptorMatcher.FLANNBASED); List<DMatch> matches = new ArrayList<DMatch>(); dm.match(queryDescriptors, trainDescriptors, matches);

最满意答案

据安德烈介绍, 这就是原因 ! 所以是的,这是正常的。 要找到更多的人将不得不剖析算法!

According to Andrey, this is the reason! So yes, it is normal. To find more one would have to dissect the algorithms!

更多推荐

本文发布于:2023-07-31 01:18:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340379.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:关键   descriptor   based   flann   keypoints

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!