Ask Your Question

PreetiJPillai's profile - activity

2015-03-17 02:59:09 -0600 received badge  Famous Question (source)
2014-08-01 07:09:30 -0600 received badge  Nice Question (source)
2014-06-30 06:41:06 -0600 received badge  Student (source)
2014-06-30 06:25:38 -0600 received badge  Notable Question (source)
2014-02-20 12:44:12 -0600 received badge  Popular Question (source)
2013-07-24 18:14:05 -0600 commented question How to use bag of words example with BRIEF descriptors?

I tried the conversion yesterday, but I got a Segmentation fault.

this is the function that results in the segmentation fault:

bowExtractor->compute( colorImage, keypoints, imageDescriptors );

2013-07-24 16:18:47 -0600 commented question How to use bag of words example with BRIEF descriptors?

I get this error..

OpenCV Error: Assertion failed (queryDescriptors.type() == trainDescCollection[0].type()) in knnMatchImpl, file /home/ppillai/programs/opencv-2.4.5/modules/features2d/src/matchers.cpp, line 351 terminate called after throwing an instance of 'cv::Exception' what(): /home/ppillai/programs/opencv-2.4.5/modules/features2d/src/matchers.cpp:351: error: (-215) queryDescriptors.type() == trainDescCollection[0].type() in function knnMatchImpl

2013-07-24 11:50:05 -0600 asked a question How to use bag of words example with BRIEF descriptors?

I am trying to run OpenCV's Bag of Words example. So far, it works perfectly just with SIFT and SURF descriptors(which are non free). I am trying other descriptors such as BRIEF and FREAK, but the code breaks every single time. On further debugging, I found that calculateImageDescriptors function calls to kmeans cluster doesn't seem to accept non-SIFT or non-SURF descriptor.

Is there a way to work around this problem?