【计算机视觉】从运动中恢复结构SfM模块安装

结构运动Structure From Motion,SFM模块安装

来源 http://docs.opencv.org/master/db/db8/tutorial_sfm_installation.html

OpenCV  3.2.0-dev

依赖关系

从运动模块结构取决于一些开源库。

  • Eigen 3.2.2 或更高版本。 要求
  • GLog 0.3.1或更高版本。 要求
  • GFlags 。 要求
  • Ceres Solver. Ceres解算器 为了解决重建所需的API的一部分包调整加上点相交。 如果不安装在您的系统上,谷神星解决重建funcionality将被禁用。 推荐

安装

所需的依赖项

以防你在 Ubuntu 您可以简单地通过键入下面的命令安装所需的依赖关系:

sudo apt-get install libeigen3-dev libgflags-dev libgoogle-glog-dev

Ceres解算器

首先安装所有的依赖关系:

# CMake

sudo apt-get install cmake

# google-glog + gflags

sudo apt-get install libgoogle-glog-dev

# BLAS & LAPACK

sudo apt-get install libatlas-base-dev

# Eigen3

sudo apt-get install libeigen3-dev

# SuiteSparse and CXSparse (optional)

# - If you want to build Ceres as a *static* library (the default)

# you can use the SuiteSparse package in the main Ubuntu package

# repository:

sudo apt-get install libsuitesparse-dev

# - However, if you want to build Ceres as a *shared* library, you must

# add the following PPA:

sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687

sudo apt-get update

sudo apt-get install libsuitesparse-dev

我们现在可以构建、测试和安装Ceres:

git clone https://ceres-solver.googlesource.com/ceres-solver

cd ceres-solver

mkdir build && cd build

cmake ..

make -j4

make test

sudo make install

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值