码迷,mamicode.com
首页 > 其他好文 > 详细

OpenCV Error: The function/feature is not implemented (OpenCV was built without SURF support) in cvE

时间:2015-05-19 10:34:06      阅读:1073      评论:0      收藏:0      [点我收藏+]

标签:

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‘
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)

OpenCV Error: The function/feature is not implemented (OpenCV was built without SURF support) in cvE

标签:

原文地址:http://blog.csdn.net/dxuehui/article/details/45841293

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!