pyflann icon indicating copy to clipboard operation
pyflann copied to clipboard

Handling different dimensions of points for build_index()

Open rudolphyo opened this issue 7 years ago • 1 comments

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 avatar Mar 16 '17 23:03 rudolphyo

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.

rudolphyo avatar Mar 17 '17 02:03 rudolphyo