MVS-Texturing Exercise

mvs-texturing

参考链接:https://github.com/nmoehrle/mvs-texturing

准备工作

要求

依赖前提

检测

终端检测各个是否存在

下载其余的安装包

  1. libpng
    搜索后可知检查/usr/local/lib里无libpng。
    sudo apt-get install libpng-dev
    下载结束后查看正确的头文件和链接库的位置
    参考:https://www.cnblogs.com/sp-li/p/8306745.html
    安装

编译

Compilation Build Status

git clone https://github.com/nmoehrle/mvs-texturing.git
cd mvs-texturing
mkdir build && cd build && cmake ..
make (or make -j for parallel compilation)

If something goes wrong during compilation you should check the output of the cmake step. CMake checks all dependencies and reports if anything is missing.
If you think that there is some problem with the build process on our side please tell us.
If you are trying to compile this under windows (which should be possible but we haven’t checked it) and you feel like we should make minor fixes to support this better, you can also tell us.

出错:
Eigen出错尝试解决:

下载eigen,发现已下载过。查看相关教程发现需复制Eigen文件夹至/usr/local/include,即可。 现尝试重新编译中…

//可能不对,是编译过程中下载eigen3.3.2tar.gz,但是网络情况不佳,导致通信协议中断。
会成功的!

问题

问题:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’
参考:https://blog.csdn.net/x356982611/article/details/71169940

下载qt:
https://blog.csdn.net/wuweifeng_2017/article/details/78322249—无用
下载安装包后,使用“./qt……”会出现找不到该命令!!!!(fail!)
借鉴:http://www.pianshen.com/article/6147187926/

出现设备锁以后,即 ubuntu提示E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
检查用:
ps -e | grep apt
解除用:
sudo rm /var/lib/dpkg/lock-frontend

备份:
default.conf里为:
/usr/lib/x86_64-linux-gnu/qt4/bin
/usr/lib/x86_64-linux-gnu
参考:https://blog.csdn.net/anyuliuxing/article/details/90369822

将第一行改为自己安装路径下的bin目录的路径,第二行改为Qt5.12.3目录的路径
qmake version问题:/usr/bin/ld: 找不到 -lGL
解决:https://blog.csdn.net/u010159842/article/details/56833030

测试

imdir=<directory where you have your images>

codedir=<directory where you want to do the compilation>
cd $codedir

# Download and compile MVE
cd $codedir
git clone https://github.com/simonfuhrmann/mve.git
make -j8 -C mve

# Compile UMVE
cd mve/apps/umve && qmake && make

# Download and compile texrecon
cd $codedir
git clone https://github.com/nmoehrle/mvs-texturing.git texrecon
cd texrecon && mkdir build && cd build

cmake ..


make -j8

# Image import & bundling (images --> camera parameters)
cd $imdir
$codedir/mve/apps/makescene/makescene -i . scene
$codedir/mve/apps/sfmrecon/sfmrecon scene

# Multi-view stereo reconstruction (images + camera parameters --> depth maps)
$codedir/mve/apps/dmrecon/dmrecon -s3 scene # -s3 downscales the images three times

在这里插入图片描述

# Surface reconstruction (depth maps + camera parameters --> 3D model)
$codedir/mve/apps/scene2pset/scene2pset -F3 scene point-set.ply
$codedir/mve/apps/fssrecon/fssrecon point-set.ply surface.ply
$codedir/mve/apps/meshclean/meshclean -t10 -c10000 surface.ply surface-clean.ply

# Texturing (3D model + images + camera parameters --> textured 3D model)
$codedir/texrecon/build/apps/texrecon/texrecon scene::undistorted surface-clean.ply textured

# Inspect results
$codedir/mve/apps/umve textured.obj

执行到倒数第二步都没有问题,最后一步apps/umve是一个目录,所以应该是apps/umve/umve textured.obj
但是执行结果失败:
猜测也许是openGL的问题现在尝试安装openGL
参考:https://blog.csdn.net/huangkangying/article/details/82022177
安装有bug,需要更新apt,但是总有一点点下载不下来,所以更换源,参照https://blog.csdn.net/qq_41930236/article/details/93247412,为中科大的镜像源:

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值