Open hdiethelm opened 9 years ago
I was just able to track down the problem: In nn_index.h, line 319: use_heap = (knn>KNN_HEAP_THRESHOLD)
If use_heap=true, a different algorithm is used for search, so the result is not ordered any more but still correct. Is this documented anywhere?
Hello,
While using FLANN, I discovered that the result is complete crap if the nearest neighbor count (nn) is bigger than 250. But for my application, I need about 1024 neighbors. Is this a known limitation or a bug?
To reproduce the bug, I use flann_example.c. When using the same data for generating the index and for search, the nearest neighbor should always be the same point, so dist[i*nn] should be zero. This works until nn > 250, not depending on the algorithm. Even FLANN_INDEX_LINEAR doesn't work in this case.
Regards, Hannes Diethelm