Ask Your Question

Revision history [back]

I don't understand what you mean by bad but this code works :

Mat src = imread("../samples/data/right01.jpg", CV_LOAD_IMAGE_GRAYSCALE);
cout << " Image size :" << src.rows << " " << src.cols << "\n";
vector<KeyPoint> keypointsD;
Ptr<FastFeatureDetector> detector=FastFeatureDetector::create();
vector<Mat> descriptor;

detector->detect(src,keypointsD,Mat());
drawKeypoints(src, keypointsD, src);
imshow("keypoints",src);
waitKey();

of course you have to check image path