cvExtractSURF运行cv::Exception解决探究

问题:

OpenCV Error: The function/feature is not implemented (OpenCV was built without
SURF support) in unknown function, file ..\..\..\src\opencv\modules\legacy\src\f
eatures2d.cpp, line 77

解决:

#include "opencv2/nonfree/features2d.hpp"  
#include "opencv2/nonfree/nonfree.hpp"  

调用cv::initModule_nonfree();

你可能感兴趣的:(OpenCV)