Ask Your Question

How to create SurfFeatureDetector using FeatureDetector::create?

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

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

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

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

Question Tools

1 follower


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

Seen: 859 times

Last updated: Apr 15 '14