sfm所需要的配置

·安装所需要的包

Opencv-3.1.0

Opencv_contrib-master

首先是依赖的配置

按照官网上面的进行配置

1、首先把需要添加的附加模块放入opencv-3.1.0的modules里面,进行编译

http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation

关于配置sfm所需要的条件

https://github.com/opencv/opencv_contrib/tree/master/modules/sfm

如果添加不进去sfm,可以注销掉sfm的CMakeLists.txt里面的disabled

 

关于VTK的安装

配置openGL

http://blog.csdn.net/zhangliang_571/article/details/25241911

然后找一个vtk的包

VTK-6.3.0

然后进行配置

http://www.linuxdiyf.com/linux/21391.html

目的是为了添加viz模块

 

Eigen 3.2.2 or later. Required

Google Log 0.3.1 or later. Required

Google Flags. Required

Ceres Solver. Needed by the reconstructionAPI in order to solve part of the Bundle Adjustment plus the points Intersect.If Ceres Solver is not installed on your system, the reconstructionfuncionality will be disabled. Recommended

Google Log 0.3.1的下载

以及所需要的包如下面所示:

如果包没有安装上的话,关于包的安装

首先进行解压

然后进入

mkdir build  cd build cmake .. make  sudo make install

 

 

然后就是用cmake-gui进行编译

 

 

关于sfm里面的samples进行测试的CMakeLists.txt文件

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

 

set(name "face")

project(samples)

 

#SET(OpenCV_DIR/path/to/your/opencv/installation)

 

# packages

find_package(OpenCV REQUIRED) #http://opencv.org

 

# probably you should loop through thesample files here

add_executable(scene_reconstructionscene_reconstruction.cpp)

target_link_libraries(scene_reconstructionopencv_sfm opencv_viz opencv_calib3d opencv_core)

 

 

 

 

你可能感兴趣的:(opencv)