Ask Your Question
0

FeatureDetector for SURF

asked 2015-02-24 19:57:40 -0600

Hello.

I was wondering if it is possible to specify the Hessian threshold for the surf detector in the FeatureDetector class

cv::Mat image;
//get the image
cv::Ptr<cv::FeatureDetector> surf_detector;
surf_detector = FeatureDetector::create("SURF");
// I would like to set the Hessian threshold to 400
vector<cv::KeyPoint> keypoints;
surf_detector->detect(image, keypoints);

Or Will I need to continue using the cv::SurfFeatureDetector class and initialize it with the proper value?

while this specifically asks about the SURF detector, I'd like to know if it is possible to pass parameters to the underlying detector class. AKA specify the hessian value for surf, set non-maximal suppression for fast detector, and so on.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-02-25 08:14:26 -0600

Potato gravatar image

For the stable version(Without using pointers) --> SurfFeatureDetector detector(400);

For the beta version (3.0.0) --> Ptr<SURF> surf = SURF::create(400);

edit flag offensive delete link more
1

answered 2015-02-25 07:14:19 -0600

Eduardo gravatar image

Hi,

Something like this should work:

surf_detector->set("hessianThreshold", 400);

See: set

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-24 19:57:40 -0600

Seen: 802 times

Last updated: Feb 25 '15