Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. featureDetector->detect(image, keypoints);
  2. descriptorExtractor->compute(image, keypoints, descriptors);
  3. bowTrainer.add(descriptors);
  4.  
  5. featureDetector->detect(image, keypoints);
  6. bowDE->compute(image, keypoints, histogram);
  7. for (int i = 0; i < histogram.cols; i++)
  8. cout << histogram.at<unsigned>(0, i) << ",";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement