Ask Your Question
0

How to detect keypoints, compute descriptors and match those descriptors in OpenCV 3.0.0, Visual Studio 2013, in C++?

asked 2016-03-06 04:58:12 -0500

sunnyhith gravatar image

I have seen the documentation of OpenCV. In there, SurfFeatureDetector, SurfDescriptorExtractor and BruteForceMatcher are being used. But when I try in my code, it is showing - Error : identifier "SurfFeatureDetector" is unidentified. Same case for other two.

After going through some threads and forums, I tried to include some header files like - #include <opencv2 nonfree="" features2d.hpp=""> and some others but those files don't exist. So shows another error saying - Error : Cannot open source file "opencv2/nonfree/features2d.hpp".

Is there any alternative way to do these in OpenCV 3.0.0?

Please let me know where I have gone wrong. :/

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-06 05:52:29 -0500

berak gravatar image
  • please refer to the opencv 3 docs , not the old 2.4 ones. api changed a bit wrt. Features2d

  • you will need the opencv_contrib repo for this (please take care to look at the readme there for instructions) ; and you will need to update your main opencv repo to latest version (3.1.0 atm), since both repos are tightly coupled.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-03-06 04:58:12 -0500

Seen: 143 times

Last updated: Mar 06 '16