Difference between BFMatcher and FlannBasedMatcher

后端 未结 2 771
面向向阳花
面向向阳花 2021-02-18 13:47

I would like to know what is the difference in term of precision or quality of the matches between the BFMatcher and FlannBasedMatcher in openCV. I kno

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-18 14:34

    To add to the above answer, FLANN builds an efficient data structure (KD-Tree) that will be used to search for an approximate neighbour, while cv::BFMatcher does an exhaustive search and is guaranteed to find the best neighbour. The real benefit of FLANN is seen with large data sets. In my experience, I've seen a justifiable benefit is the number of descriptors is larger than 1K.

提交回复
热议问题