Ask Your Question
0

How to create SurfFeatureDetector using FeatureDetector::create?

asked 2014-04-15 02:44:37 -0500

davidshen gravatar image

From the tutorial, I know how to SurfFeatureDetector with minHessian parameter. But when I create the detector with FeatureDetector::create, it does not provide me a way to set the parameter. I tried to call

FeatureDetector->setInt("minHessian", 100);

But I got no parameter name "minHessian" error in debug mode.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-15 03:25:17 -0500

Guanta gravatar image

You can use the explicit constructor instead of the create method (haven't tested it, but should work like this):

cv::Ptr<cv::FeatureDetector> mysurf = cv::Ptr<cv::FeatureDetector>( new cv::SURF(100) );
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2014-04-15 02:44:37 -0500

Seen: 695 times

Last updated: Apr 15 '14