Ask Your Question

Revision history [back]

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

Hi. I'm trying to use FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors. 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?

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

Hi. I'm trying to use FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors. 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?

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

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 Mat to float(CV_32F).

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

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 Mat descriptors to float(CV_32F).

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

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).float(CV_32F) before adding them to the matcher. Query descriptors also have to be converted to float.

FlannMatcher with HierarchicalClusteringIndexParams and binary descriptors

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.