how does Flann Matcher train work in opencv?

会有一股神秘感。 提交于 2019-12-25 02:48:45

问题


I'm new in opencv. My question is:

I have 2 train image descriptor trainA and trainB. Then i construct a vector to put them in, and add them into flann matcher for train.

After that, i use query image descriptor queryC to do the knnMatch and get a DMatchs returned.

In this case, which train descriptor would be used to match queryC, trainA or trainB? and how does the training help to improve the match accuracy?

Thanks in advance.


回答1:


Both. It is not "training" in standard meaning. "Training" here means just "set of the descriptors, based on which kd-tree is build". More simple - when you do matching, you take one feature from set S1 and look for nearest neighbor in the set S2. FLANN (realization of the kd-tree) is just fast way how find (approximate) nearest neighbor.



来源:https://stackoverflow.com/questions/21402464/how-does-flann-matcher-train-work-in-opencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!