Hi, i build opencv 3.2 with opencv-contrib moduls also add [ #include "opencv2/xfeatures2d.hpp"] and [using namespace cv::xfeatures2d;] to my code but i have error when compile it. i used these commands for surf:
Ptr<SURF> detector;
detector->create();
detector->detect( imgbackground, Keypoints1 );
please guide me. thanks,