ubuntuにOpenCV2のnon free版を入れる
RTAB-MapでSURFが必要っぽいので、OpenCV2のnon free版を入れる。
dpkg -l | grep opencv
StackOverFlowの記事
最良の回答のとおりにやったら出来た。
http://stackoverflow.com/questions/27481849/include-nonfree-opencv-2-4-10-on-ubuntu
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree sudo apt-get update sudo apt-get install libopencv-nonfree-dev
RTAB-Map
cmakeをしたら、nonfree moduleが入っていると出た。
http://kubotti.hatenablog.com/entry/2016/05/12/153414
-- With OpenCV 2 nonfree module (SIFT/SURF) = YES (License: Non commercial)
-- Info : -- Version : 0.11.5 -- CMAKE_INSTALL_PREFIX = /usr/local -- CMAKE_BUILD_TYPE = Release -- CMAKE_INSTALL_LIBDIR = lib/x86_64-linux-gnu -- BUILD_APP = ON -- BUILD_TOOLS = ON -- BUILD_EXAMPLES = ON -- BUILD_SHARED_LIBS = ON -- CMAKE_CXX_FLAGS = -fmessage-length=0 -Wno-deprecated -fopenmp -- With OpenCV 2 nonfree module (SIFT/SURF) = YES (License: Non commercial) -- With Freenect = NO (libfreenect not found) -- With OpenNI2 = NO (OpenNI2 not found) -- With Freenect2 = YES (License: Apache v2 and/or GPLv2) -- With dc1394 = YES (License: LGPL) -- With FlyCapture2/Triclops = NO (Point Grey SDK not found) -- With TORO = YES (License: Creative Commons [Attribution-NonCommercial-ShareAlike]) -- With g2o = NO (g2o not found) -- With GTSAM = NO (GTSAM not found) -- With VERTIGO = YES (License: GPLv3) -- With cvsba = NO (cvsba not found) -- With Qt4 = YES (License: Open Source or Commercial) -- -------------------------------------------- -- Configuring done -- Generating done