Ask Your Question
1

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

asked 2014-01-01 14:08:38 -0600

still_learning gravatar image

updated 2020-10-25 13:51:17 -0600

Hi. I'm trying to use FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors. Opencv version is 3.0.0(dev). It throws the following error:

OpenCV Error: Unsupported format or combination of formats (type=0 ) in cv::flann::buildIndex_, file D:\dev\opencv\source\modules\flann\src\minifla nn.cpp, line 315

It works fine with LshIndexParams.

Am I missing something?

EDIT: Solved. You have to convert descriptors to float(CV_32F) before adding them to the matcher. Query descriptors also have to be converted to float.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-04 08:55:15 -0600

v01d gravatar image

I believe this may not be the correct choice since the idea of using binary features is that hamming distance can be performed, instead of euclidean, much faster using integers (XOR operations). I also would like to try the HierarchicalClustering based matcher in OpenCV for integer descriptors and don't know how to proceed with this error. I believe this error may indicate some problem in OpenCV.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-01 14:08:38 -0600

Seen: 517 times

Last updated: Sep 04 '14