Ask Your Question

changing the type of FAST feature detector in c++

asked 2014-04-27 16:14:42 -0500

jpl gravatar image

updated 2018-10-21 11:53:34 -0500

In the documentation there's this signature of the FAST detector : void FASTX(InputArray image, vector<keypoint>& keypoints, int threshold, bool nonmaxSuppression, int type).
type – one of the three neighborhoods as defined in the paper: FastFeatureDetector::TYPE_9_16, FastFeatureDetector::TYPE_7_12, FastFeatureDetector::TYPE_5_8.
but how can you use it?
I mean, all I can do is this:
FastFeatureDetector detector(100,true); for example.
How can I choose the type TYPE_5_8 for example?
writing FastFeatureDetector detector(100,true, TYPE_5_8); doesn't work.
writing detector.detect(imgA,keypointsA,50,true,TYPE_5_8); doesn't work either.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2014-04-27 16:38:45 -0500

Moster gravatar image

FAST and FASTX are simply functions and not to be used as constructors. So just call them with the given 4/5 arguments.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-27 16:14:42 -0500

Seen: 493 times

Last updated: Apr 27 '14