Ask Your Question

startux's profile - activity

2013-10-30 08:05:58 -0600 received badge  Editor (source)
2013-10-30 08:05:21 -0600 commented answer How to use bag of words example with BRIEF descriptors?

My question is if it is "OK" to make these type of conversions just to make it work ?

2013-10-30 08:03:52 -0600 answered a question How to use bag of words example with BRIEF descriptors?

The vocabulary that is computed using the cluster() function in BOWKMeansTrainer is of type CV_32FC1. The descriptors of the image against which to match the vocabulary is of type CV_8UC1, when computed using non-sift and non-surf descriptor extractors. One gets this error ""OpenCV Error: Assertion failed (queryDescriptors.type() == trainDescCollection[0].type()) in knnMatchImpl, file /Users/jamescharters/Downloads/opencv-2.4.6.1/modules/features2d/src/matchers.cpp, line 351"" when one tries to match descriptors of different types .