1 | initial version |
I have installed opencv_contrib extra package using cmake
good ! make sure you have cmake -DOPENCV_ENABLE_NONFREE=ON
then, syntax has changed:
#include "opencv2/xfeatures2d.hpp"
Ptr<xfeatures2d::SURF> = xfeatures2d::SURF::create();
2 | No.2 Revision |
I have installed opencv_contrib extra package using cmake
good ! make sure you have cmake -DOPENCV_ENABLE_NONFREE=ON
then, syntax has changed:
#include "opencv2/xfeatures2d.hpp"
Ptr<xfeatures2d::SURF> surf = xfeatures2d::SURF::create();
surf->detectAndCompute(img, ....);