Questions tagged [flann]

FLANN – the Fast Library for Approximate Nearest Neighbors – is a collection of nearest-neighbor algorithms, and a meta-algorithm to select the best of them for a given dataset.

FLANN is a library for performing fast approximate nearest-neighbor searches in high dimensional spaces.

FLANN was written by Marius Muja and David G. Lowe. It consists of:

  1. A collection of algorithms, each of which was found by the authors to work best across a range of nearest-neighbor-search use-cases, and
  2. A meta-algorithm that, for a given dataset, selects the best algorithm and the optimal parameters.

A common use of FLANN is in the detection of homography across images in applications – FLANN finds the nearest neighbors among sets of features extracted from the images in question. This visualization illustrates FLANN matches found amongst two sets of feature keypoint data:

FLANN keypoint matches

FLANN is written in and contains bindings for the following languages: , and .

Useful links:

162 questions
5
votes
0 answers

Hardware optimizations using Qualcomm Snapdragon 800 and Adreno 330

I am developing a real-time computer vision project that runs on an Ubuntu (Linaro) board with an ARM CPU (Snapdragon 800). Some parts of the software operate on HD images, huge amount of data. This slows the execution and acts as a…
avi123
  • 51
  • 3
5
votes
1 answer

C++ CMake FLANN failing when building pcl in vs2012

Trying to build PCL on VS2012 in Windows 8.1 so I can attempt to integrate my Kinect for Windows v2 sensor with it, however I seem to be running into a bunch of CMake errors that I don't know what to do with. this is partially because I am not very…
physincubus
  • 986
  • 2
  • 11
  • 26
4
votes
3 answers

CMake - FLANN library does not build (for PCL library)

I am a novice to CMake, so I always prefer to use the CMake GUI. I am actually setting up the Point Cloud Library (PCL). However, it requires a few other dependency libraries, and one among them was FLANN -> Git Link FLANN What I have done until now…
Joker
  • 715
  • 1
  • 14
  • 31
4
votes
1 answer

How to build flann in windows 10 from source?

I was trying to build flann from source in Windows-10 using cmake. During the installation process it says it cannot find liblz4. I tried two method : 1) So I downloaded the prebuild lz4 from here (https://github.com/lz4/lz4/releases) and placed…
mato
  • 503
  • 8
  • 18
4
votes
1 answer

OpenCV's Flann matcher index in python

I'm implementing a program which is supposed to match an image (img1) to a very similar image (usually just different resolution an lighting; sometimes some translation) from a set of around 15-30 images. I'm using ORB feature detector and and Flann…
sveatlo
  • 543
  • 9
  • 27
4
votes
1 answer

OpenCV python FlannBasedMatcher add multiple descriptors

I'm trying to detect an image using SURF following the tutorial (https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_feature2d/py_matcher/py_matcher.html) My goal is now to add multiple images to FlannBasedMatcher and then save…
suizo
  • 531
  • 8
  • 24
4
votes
2 answers

C++ - OpenCV feature detection with ORB

I'm trying to extract and match features with OpenCV using ORB for detecting and FLANN for matching, and i get a really weird result. After loading my 2 images and converting them to grayscale, here's my code: // Initiate ORB detector …
YaronGh
  • 371
  • 2
  • 4
  • 13
4
votes
4 answers

cv2 3.0.0 cv2.FlannBasedMatcher: flann.knnMatch is throwing cv2 error

I want to use a flann-based matcher in Python as described in http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_feature2d/py_matcher/py_matcher.html Since I am using OpenCV 3.0.0, I had to adjust the code regarding the…
Frank Zickert
  • 63
  • 1
  • 5
4
votes
2 answers

OpenCV Python: Occasionally get segmentation fault when using FlannBasedMatcher

I'm trying to classify objects using SURF and kNN. The code work well however it occasionally crashes and shows 'Segmentation Fault'. I'm not sure whether I did something wrong but I'm pretty sure that it is corrected. Here is the input file in case…
Nuntipat Narkthong
  • 1,387
  • 2
  • 16
  • 24
4
votes
0 answers

C++/OpenCV - Why FLANN::index with ORB and LSH works very badly?

I'm looking for a picture inside a database (1000 pictures). In order to do that, i use Bag of Features with ORB. Then, i use LSH. There is something i don't understand at all. With KD-TREE i got among my 3 nearest neighbor one good match then, the…
lilouch
  • 1,054
  • 4
  • 23
  • 43
4
votes
0 answers

pyflann returns negative indices for nearest neighbours on ubuntu when passed 'kmeans' parameter

Goal I'm trying to get: The approximate nearest neighbours library FLANN, and The python binding pyflann working correctly on an AWS ec2 instance, which is running Ubuntu. My aim is to compare FLANN with other ANN implementations, like ANNOY and…
flaneur
  • 41
  • 2
4
votes
1 answer

FlannBasedMatcher returning different results

Using the FlannBasedMatcher in OpenCV, I am getting different results calling the matcher with the same parameters. Can anyone suggest what I am doing wrong please? The code below shows a minimal example of the problem I am having - it is simplified…
cdmh
  • 3,294
  • 2
  • 26
  • 41
4
votes
1 answer

Which distance function does FlannBasedMatcher use and how to change it?

Which distance function does openCVs flannBasedMatcher use and is it possible to change the default? In the user manual from the original flann by Muja and Lowe there are some different distance types (flann_distance_t) and I don't see a method in…
Hans Sperker
  • 1,347
  • 2
  • 15
  • 37
3
votes
1 answer

How to access to each member of a DMatch(OpenCV) object?

I'm working on a FLANN based Matcher using OpenCV, and for specific reasons, I need to get access to each pair coordinates of matches object (DMatch). The result of good matches filter was stored in a nested list: i.e good_matches = []. Once I tried…
Miguel Rueda
  • 478
  • 1
  • 6
  • 13
3
votes
0 answers

pyflann code much faster than C++ FLANN

I have some data, an array of 400k rows, with each row having 200 elements. I'm trying to use this data to do knn matching using FLANN. Using the pyflann library, which is just a set of bindings to the C++ code, I get outstanding performance. It…
James
  • 3,957
  • 4
  • 37
  • 82
1
2
3
10 11