1 | initial version |
you're trying with outdated 2.4 code, the api has changed since 3.x.
please use:
Ptr<xfeatures2d::SURF> surf = xfeatures2d::SURF::create();
std::vector<KeyPoint> keypoints;
Mat descriptors;
surf->detectAndCompute(img, Mat(), keypoints, descriptors);
please also have a look at current tutorials