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
0
votes
1 answer

nanoflann kdtree adaptor raises segfault

I am trying to use nanoflann's kdtree structure in a class of mine. I have the following header for a kdtree adaptor, which is only a small (possibly bad) variation of this, supposed to allow a kd-tree structure with 3d vectors as elements: //…
bernhard_e
  • 37
  • 5
0
votes
1 answer

Bag of Visual Words (obtained from features) for CBIR. Steps?

I'm very confused about the steps to follow to use BOVW for CBIR. I found a lot of literature about classification, machine learning and SVM but it is not quite what I'm looking for. My problem is related to searching image similarity in a database…
Furin
  • 532
  • 10
  • 31
0
votes
1 answer

Downgrade Opencv using conda in mac os

I'm using this code: import numpy as np import cv2 from matplotlib import pyplot as plt # file filename1 = 'img1.png' filename2 = 'img2.jpg' img1 = cv2.imread(filename1,0) img2 = cv2.imread(filename2,0) # resize height1, width1 = img1.shape if…
nck
  • 1,673
  • 16
  • 40
0
votes
1 answer

HDF5 library segfault (mismatching headers)

I installed the flann and libhdf5-serial-dev c++ library on ubuntu. After that, I compiled the flann_example.cpp file without problems. However, when I launched the executable I got the following error message : Warning! HDF5 library version…
axel
  • 77
  • 1
  • 9
0
votes
1 answer

Error when using LSH index in opencv::flann

I'm trying to use LSH implementation of flann in opencv: const int mySizes[1]={100}; cv::Mat descriptors1 = cv::Mat::zeros(1,mySizes,CV_32F); cv::Mat descriptors2 = cv::Mat::zeros(1,mySizes,CV_32F); cv::Ptr
Luca
  • 1,270
  • 1
  • 18
  • 34
0
votes
1 answer

Opencv Surf and FlannIndex to find image in images database

I'm new to opencv and using EMGU as wrapper in C#. I'm trying to get the best similar image for a query image from images database. I followed up the example as show here to do the work. it uses SURF detector to detect image features and then it…
0
votes
2 answers

Flann index in OpenCV Java API

How do I create a Flann index with OpenCV in Java? I am trying to do a KNN search of feature descriptors. I cannot find the equivalent class in Java API. Or is the official Java binding incomplete? The C++ class is documented here:…
Derek Chan
  • 71
  • 4
0
votes
1 answer

Merge close enough points in contours

I'm getting some info from image with Canny algorithm and findContours function. Sometimes I get too many noisy points in some images which contains hairs or any other detailed stuff. I wonder how can I merge close enough points with OpenCV. For…
s1ddok
  • 4,615
  • 1
  • 18
  • 31
0
votes
2 answers

Vector subscript out of range error in c++ and opencv

I'm trying to write a program that uses ORB algorithm to detect and compute the keypoints of an image and matches descriptor vectors using FLANN matcher. The issue I am facing is, that every time I run the program on Visual C++, I am getting an…
patri
  • 333
  • 1
  • 4
  • 16
0
votes
1 answer

Find the most frequent element in flann matrix type

What is the best way to find the most frequent element of flann matrix such as flann::Matrix k_indices
neouyghur
  • 1,577
  • 16
  • 31
0
votes
2 answers

matching error in ORB with opencv 3

currently i am working on opevcv with python but when i use kp1 = orb.detect(img1,None) kp2 = orb.detect(img2,None) kp1, des1 = orb.compute(img1, kp1) kp2, des2 = orb.compute(img2, kp2) matches = matcher.match(des1, des2) i get…
whishky
  • 396
  • 3
  • 13
0
votes
1 answer

FLANN matcher-OPENCV 3-min max disatance

I have some code which uses the Flann matcher and ORB detector to find features between two images of a person. I'm using opencv 3 on ubuntu. I have a few doubts.. The Code is as follows: #include #include…
K.Sruti
  • 33
  • 1
  • 6
0
votes
0 answers

install pyflann for python 2.7

I would like to use the pyflann module for nearest neighbor search show like here: http://pythonhosted.org/laspy/tut_part_1.html . I have a python 2.7 for ArcGis. Unfortunately the installing guide is not clear for me and I have problem compiling…
Gary
  • 209
  • 1
  • 3
  • 13
0
votes
0 answers

Feature detection (Empty descriptor during the second debugging)

I'm trying to find an object at the video from usb camera. Code: for (;;) { Mat frame; cap >> frame; Mat img_scene = frame; if (!img_object.data || !img_scene.data) { string message = " Error reading "; …
Nikita Belov
  • 85
  • 1
  • 9
0
votes
1 answer

flann dependency to matlab - MEX

I faced below error when I tried to install the flann library from the source on the ubuntu machine. /flann-master/src [72] mkdir build /flann-master/src [73] cd build /flann-master/src/build [74] cmake .. CMake Warning (dev) at…
eSadr
  • 395
  • 5
  • 21
1 2 3
10
11