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.