Ask Your Question

Revision history [back]

click to hide/show revision 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();

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, ....);