Ask Your Question

Opencv 3.0 FAST Corner Detection

asked 2015-08-13 10:45:41 -0500

Marosko89 gravatar image

updated 2017-08-22 08:13:03 -0500

I am beginner in OpenCV. I have problem implement FAST algoritmus in Vsual Studio with version OpenCV 3.0. I have tried following implementation in c++:

src = imread("../images/right.jpg", CV_LOAD_IMAGE_GRAYSCALE);
Ptr<FastFeatureDetector> detector = FastFeatureDetector::create(TRESHOLD);
vector<KeyPoint> keypointsD;

with (but both realizations are BAD)

detector->detect(src, keypointsD);
drawKeypoints(src, keypointsD, output);
imshow(window_name, output);


FAST(src, keypointsD, TRESHOLD, true); //fast detector
drawKeypoints(src, keypointsD, output);
imshow(window_name, output);

Can you help me with any example or what Do I do bad?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-14 02:52:30 -0500

LBerger gravatar image

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;

drawKeypoints(src, keypointsD, src);

of course you have to check image path

edit flag offensive delete link more


+1 Just verified, this indeed works on latest master branch.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-08-14 04:13:42 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-08-13 10:45:41 -0500

Seen: 3,788 times

Last updated: Aug 14 '15