Nonfree module is missing in OpenCV 3.0
with opencv3.0, SURF/SIFT and some other things have been moved to a seperate opencv_contrib repo .
you will have to download that, add it to your main opencv cmake settings (please look at the readme there), and rerun cmake/make.
then:
#include "opencv2/xfeatures2d.hpp"
...
Ptr<SIFT> sift = cv::xfeatures2d::SIFT::create(...);
sift->detect(...);
How to install OpenCV 3.1 with nonfree module?
Try using Visual Studio 12 2013 for compilation, this has worked for me, but not the other (newer) versions of Visual Studio.
error /usr/include/opencv2/nonfree/features2d.hpp error vector in opencv on ubuntu
Include header file vector
#include <vector>
refer http://www.cplusplus.com/reference/vector/vector/vector/
Related Topics
Is It Legal to Compare Dangling Pointers
Construct Path for #Include Directive with MACro
Explain C++ Sfinae to a Non-C++ Programmer
Waitpid Equivalent with Timeout
What's Up with the Thousands of Warnings in Standard Headers in Msvc -Wall
Use Wm_Copydata to Send Data Between Processes
Building Multiple Binaries Within One Eclipse Project
How to Write to a Memory Buffer With a File*
Template Within Template: Why "'>>' Should Be '> >' Within a Nested Template Argument List"
Constant References with Typedef and Templates in C++
Compare Two Float Variables in C++
Getline Not Working Properly? What Could Be the Reasons
Removing a Non Empty Directory Programmatically in C or C++
What Is a Glibc Free/Malloc/Realloc Invalid Next Size/Invalid Pointer Error and How to Fix It