I am trying to match Orb features using FLANN matcher and LSH, and it gives me this error:
OpenCV: terminate handler is called! The last OpenCV error is:
OpenCV(4.1.0) Error: Unsupported format or combination of formats (> type=5 > ) in buildIndex_, file C:\opencv\source\opencv-4.1.0\modules\flann\src\miniflann.cpp, line 315
What is the reason for this?
Descriptors are already converted to CV_32F.
cv::FlannBasedMatcher matcher = cv::FlannBasedMatcher(cv::makePtr(12, 20, 2));
std::vector< std::vector > matches;
matcher.knnMatch(descriptors1, descriptors2, matches, 2 );