2014-06-30 07:08:43 -0600 | received badge | ● Teacher (source) |
2014-02-27 01:29:43 -0600 | received badge | ● Necromancer (source) |
2013-10-07 10:32:13 -0600 | answered a question | How to use bag of words example with BRIEF descriptors? Hi, I had same problem and when I change type of dictionary float to unsigned char it works. cv::Mat floatdictonary; // floatDictionary = bowTrainer.cluster(floatFeaturesUnclustered);//you have convert features //unsigned char to float cv::Mat udictionary; floatdictionary.convertTo(udictonary,CV_8UC1); // bowDE->setVocabulary(udictonary); Mat bowDescriptor; std::vector<std::vector<int> > pointIdxOfClusters; bowDE.compute(img, keypoints, bowDescriptor,&pointIdxOfClusters); |