Ask Your Question
0

changing the type of FAST feature detector in c++

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

jpl gravatar image

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

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
0

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

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

Stats

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

Seen: 529 times

Last updated: Apr 27 '14