Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

BOWImgDescriptorExtractor::compute fail on BRIEF + BruteForce-Hamming(2)

I have tried to train a classifier based on the BOW, but BOWImgDescriptorExtractor::compute fail on descriptors extractor of type BRIEF and matcher of type BruteForce-Hamming(2). It says:

OpenCV Error: Assertion failed (type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U)) in batchDistance, file /home/me/opencv/modules/core/src/stat.cpp, line 2473
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/me/opencv/modules/core/src/stat.cpp:2473: error: (-215) type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in function batchDistance

In fact what are the compatibilities between the extractor types and matcher types? (I know that flann works just with SIFT and SURF)