OpenCV Error: The function/feature is not implemented (OpenCV was built without SURF support) in cvE
时间:2015-05-19 10:31:53
收藏:0
阅读:2079
OpenCV Error: The function/feature is not implemented (OpenCV was built without SURF support) in cvExtractSURF, file /tmp/buildd/ros-hydro-opencv2-2.4.9-2precise-20141231-1914/modules/legacy/src/features2d.cpp, line 77
terminate called after throwing an instance of ‘cv::Exception‘
terminate called after throwing an instance of ‘cv::Exception‘
1、#include "opencv2/nonfree/features2d.hpp" #include "opencv2/nonfree/nonfree.hpp"
cv::initModule_nonfree();在main函数刚开始的时候调用这个。
include_directories( ${catkin_INCLUDE_DIRS} include ${OpenCV_INCLUDE_DIRS} ) add_executable(surf src/main.cpp src/surf.cpp )
target_link_libraries(surf ${catkin_LIBRARIES} ${OpenCV_LIBRARIES}
/opt/ros/hydro/lib/libopencv_nonfree.so.2.4.9)原文:http://blog.csdn.net/dxuehui/article/details/45841293
评论(0)