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

Handling different dimensions of points for build_index() #5

Open
rudolphyo opened this issue Mar 16, 2017 · 1 comment
Open

Handling different dimensions of points for build_index() #5

rudolphyo opened this issue Mar 16, 2017 · 1 comment

Comments

@rudolphyo
Copy link

Hello!

Is there a way to feed pyflann.FLANN() with points of different dimensions? For example it could be SURF descriptors of images.

What is the most appropriate way to handle this?
Would it be right to get the maximum length of dataset points and fill with zeros points of smaller dimension? I assume that it is ok, because it doesn`t change the euclidean norm and distance as well.

Thank you!

@rudolphyo
Copy link
Author

I checked that on my simple example with matching image with small db on 10 images - distance from nn_index stays the same with zero filling and without.

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