Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong value for 'FLANN_INDEX_KDTREE' in 'FLANN based Matcher' #231

Open
Mi-Dora opened this issue Mar 1, 2020 · 0 comments
Open

Wrong value for 'FLANN_INDEX_KDTREE' in 'FLANN based Matcher' #231

Mi-Dora opened this issue Mar 1, 2020 · 0 comments

Comments

@Mi-Dora
Copy link

Mi-Dora commented Mar 1, 2020

The issue is about this code block:

# FLANN parameters
FLANN_INDEX_KDTREE = 0
index_params = dict(algorithm = FLANN_INDEX_KDTREE, trees = 5)
search_params = dict(checks=50)   # or pass empty dictionary

flann = cv2.FlannBasedMatcher(index_params,search_params)

Picture below is shown in Lawe's FLANN User Manual. The FLANN_INDEX_KDTREE should be set to 1 (kdtree), not 0(linear).
flann_manual-1.8.4.pdf

kdtreeIndex

Here is using FLANN_INDEX_KDTREE = 1
kdtree

And, here is using FLANN_INDEX_KDTREE = 0
linear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant