Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv 3.0 what is the correct way to use surffeaturedetector?

I looked all over of the site and from different sites, and found that the syntax were different for each for opencv 3.0

https://github.com/Itseez/opencv_contrib/blob/master/modules/xfeatures2d/samples/surf_matcher.cpp

http://docs.opencv.org/trunk/doc/tutorials/features2d/feature_homography/feature_homography.html#feature-homography

http://answers.opencv.org/question/52001/how-to-compile-nonfree-module-in-opencv-30-beta/?answer=52002#post-id-52002

all these sites provide different syntax for instantiating surffeaturedetector.

I followed the homography tutorial but it was in 2.4. When i switched to 3.0 beta, i keep getting errors when i compiled. any guidance? thanks!

notes: windows 8.1, opencv 3.0 beta with Qt creator

click to hide/show revision 2
retagged

updated 2015-03-04 13:32:47 -0600

berak gravatar image

opencv 3.0 what is the correct way to use surffeaturedetector?

I looked all over of the site and from different sites, and found that the syntax were different for each for opencv 3.0

https://github.com/Itseez/opencv_contrib/blob/master/modules/xfeatures2d/samples/surf_matcher.cpp

http://docs.opencv.org/trunk/doc/tutorials/features2d/feature_homography/feature_homography.html#feature-homography

http://answers.opencv.org/question/52001/how-to-compile-nonfree-module-in-opencv-30-beta/?answer=52002#post-id-52002

all these sites provide different syntax for instantiating surffeaturedetector.

I followed the homography tutorial but it was in 2.4. When i switched to 3.0 beta, i keep getting errors when i compiled. any guidance? thanks!

notes: windows 8.1, opencv 3.0 beta with Qt creator

opencv 3.0 what is the correct way to use surffeaturedetector?

I looked all over of the site and from different sites, and found that the syntax were different for each for opencv 3.0

https://github.com/Itseez/opencv_contrib/blob/master/modules/xfeatures2d/samples/surf_matcher.cpp

http://docs.opencv.org/trunk/doc/tutorials/features2d/feature_homography/feature_homography.html#feature-homography

http://answers.opencv.org/question/52001/how-to-compile-nonfree-module-in-opencv-30-beta/?answer=52002#post-id-52002

all these sites provide different syntax for instantiating surffeaturedetector.

I followed the homography tutorial but it was in 2.4. When i switched to 3.0 beta, i keep but it's not getting errors when i compiled. the same results. any guidance? thanks!

notes: windows 8.1, opencv 3.0 beta with Qt creator

EDIT: sorry wrong problem. i meant to say wrong results instead of compilation errors.

int minHessian = 40; //400

//this worked with 2.4 but didnt with 3.0
//SurfFeatureDetector detector(minHessian);

// this wouldnt work if minHessian goes over 40
Ptr<FeatureDetector> detector = FastFeatureDetector::create(minHessian);
vector<KeyPoint> keypoints_obj, keypoints_scene;
detector->detect(center, keypoints_obj);
detector->detect(theScene, keypoints_scene);