Ask Your Question
1

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);

or

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
1

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;

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

of course you have to check image path

edit flag offensive delete link more

Comments

+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

Stats

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

Seen: 2,676 times

Last updated: Aug 14 '15