[英]OpenCV Python Feature Detection and Matching
I don't understand the feature matching API in FLANN. 我不了解FLANN中的功能匹配API。 I found this code and I am using it as a base line for my development: Image stitching Python
我找到了这段代码,并将其用作开发的基准: 图像拼接Python
But I can't figure out what the flann.knnMatch() function is returning. 但是我不知道flann.knnMatch()函数返回什么。 It's a list of tuples of the DMatch type.
这是DMatch类型的元组的列表。 I don't understand why there are two matches in each tuple.
我不明白为什么每个元组都有两个匹配项。 I also don't understand why Lowe's ratio is applied to compare the two items in the tuple and then we only use the first item in the tuple.
我也不明白为什么应用Lowe比率来比较元组中的两项,然后我们仅使用元组中的第一项。
I can't seem to find any information on the flann python bindings in the OpenCV doc, so I've been struggling to figure out what all of this is. 我似乎在OpenCV文档中找不到有关flann python绑定的任何信息,因此我一直在努力弄清所有这些内容。
Any explanation of this would be greatly appreciated. 任何对此的解释将不胜感激。
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.