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)

 

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值