1 | initial version |
the problem is NOT with the opencv libraries, but you to run outdated, opencv2.4 based code.
api has changed a bit with 3.x, you'll have to adapt :
Ptr<xfeatures2d::SURF> surf = xfeatures2d::SURF::create()
, not SURF() (you have to use that smart pointer)
surf->detect(image, keypoints)
(pointer access for all functions)
also make sure, to #include <vector>
and (at least) using std::vector;
2 | No.2 Revision |
the problem is NOT with the opencv libraries, but you try to run outdated, opencv2.4 based code.
api has changed a bit with 3.x, you'll have to adapt :
Ptr<xfeatures2d::SURF> surf = xfeatures2d::SURF::create()
, not SURF() (you have to use that smart pointer)
surf->detect(image, keypoints)
(pointer access for all functions)
also make sure, to #include <vector>
and (at least) using std::vector;