1 | initial version |
that's a funny way, specifying link-libs via #pragma, ;)
#include "opencv2/features2d/nonfree.hpp"
and add cv::initModule_nonfree();
as first line in main, SIFT ans SURF are non-free.#ifdef DEBUG
#pragma comment (lib , "opencv_core244d.lib")
#pragma comment (lib ,"opencv_highgui244d.lib")
//... more libs
#else
// same libs, but without "d" at the end:
#pragma comment (lib , "opencv_core244.lib")
#pragma comment (lib ,"opencv_highgui244.lib")
//... more libs
#endif