参考博客:
https://blog.csdn.net/Zhangwellyear/article/details/79951715
https://blog.csdn.net/eshen7175/article/details/82316257
https://blog.csdn.net/qq_18882399/article/details/79687836最后
测试机器配置:
虚拟机VM14 Pro ubuntu16.04 分配大小60G,内存四G,核心数3核
主机配置i7-8750H,GTX1060
工程页面:
https://www.gcc.tu-darmstadt.de/home/proj/mve/
依赖:
System requirements to compile and run MVE or UVME are:
MVE-Users-Guide
https://github.com/simonfuhrmann/mve/wiki/MVE-Users-Guide
url:
https://github.com/simonfuhrmann/mve
mve
https://www.gcc.tu-darmstadt.de/home/proj/mve/
sudo apt-get install libjpeg-dev
sudo apt-get install libtiff-dev
sudo apt-get install libpng-dev
============================================
openGL
01--首先不可或缺的就是编译器与基本的函式库
sudo apt-get install build-essential
02--安装OpenGL Library
sudo apt-get install libgl1-mesa-dev
03--安装OpenGL Utilities
// OpenGL Utilities 是一组建构于 OpenGL Library 之上的工具组,
// 提供许多很方便的函式,使 OpenGL 更强大且更容易使用
sudo apt-get install libglu1-mesa-dev
04--安装OpenGL Utility Toolkit
// OpenGL Utility Toolkit 是建立在 OpenGL Utilities 上面的工具箱,
// 除了强化了 OpenGL Utilities 的不足之外,也增加了 OpenGL 对于视窗介面支援。
sudo apt-get install libglut-dev
注意:在这一步的时候,可能会出现以下情况,shell提示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libglut-dev
将上述sudo apt-get install libglut-dev命令改成
sudo apt-get install freeglut3-dev即可。
最后
sudo apt-get install libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev
============================================
3-构建完整的pipeline
./makescene -i
./sfmrecon
./dmrecon -s2
./scene2pset -F2
./fssrecon
./meshclean -t10
其中每条命令进入mve/apps/下相应模块执行,image-dir为原图像所在完全路径,scene-dir为处理后数据的完全路径
4-ply数据的可视化
将scene-dir下的clean后的.ply文件导入meshlab进行可视化展示。
*************************************************
sudo apt-get install libpng-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libtiff-dev
sudo apt-get install build-essential libgl1-mesa-dev
sudo apt-get install freeglut3-dev
sudo apt-get install libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev
*************************************************
cd mve
make -j8
gedit ~/.bashrc
# 一共14个
export PATH="/home/apple/Documents/120/mve-master/apps/bundle2pset:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/dmrecon:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/featurerecon:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/fssrecon:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/makescene:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/mesh2pset:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/meshalign:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/meshclean:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/meshconvert:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/prebundle:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/scene2pset:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/sceneupgrade:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/sfmrecon:$PATH"
export PATH="/home/apple/Documents/120/mve-master/apps/umve:$PATH"
数据集下载地址:
总地址
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/
分地址
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/mve-kermit-20151002.tar.gz
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/der_hass-20140923.tar.gz
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/citywall-20140923.tar.gz
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/mve-achteck_turm-20130528.tar.gz
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/mve-reader-20150428.tar.gz
http://download.hrz.tu-darmstadt.de/media/FB20/GCC/mve_datasets/pineapple.tar.gz
makescene -i der_hass-20140923 ynh_01
命令解释:
der_hass-20140923代表的是待处理的数据集
ynh_01代表的是处理后输出的存放数据的文件夹
sfmrecon ynh_01
很慢很慢 特征检测 特征匹配 79张图,检测 79次,匹配 78+77+76+75...+1=3081
dmrecon -s2 ynh_01
时间也是很长很长
scene2pset -F2 ynh_01 ynh_01/pset-L2.ply
运行速度很快
fssrecon ynh_01/pset-L2.ply ynh_01/surface-L2.ply
运行速度很慢
meshclean -t10 ynh_01/surface-L2.ply ynh_01/surface-L2-clean.ply
运行速度很快
ubuntu16.04 安装meshLab查看点云文件
打开pset-L2.ply
没有显示任何东西
因为mashLab不能打开点云好像
使用我们自己的
14332174个点,挺大的
打开pset-L2.ply
打开surface-L2-clean.ply