ubuntu20.04中使用openMVG和openMVS进行三维重建
2022/7/7 5:20:21
本文主要是介绍ubuntu20.04中使用openMVG和openMVS进行三维重建,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
需要指定相机焦距-f,大致可以由图像长乘以1.2估计得到,例如图像长宽为1280×720,则焦距估计为1280×1.2=1536。(或者可以点击图像属性看,一般自己拍的能显示焦距,网图的话可能就没有这个信息)
openMVG_main_SfMInit_ImageListing -i /home/zll/restruct/picture -o /home/zll/restruct/match -f 4800 openMVG_main_ComputeFeatures -i /home/zll/restruct/match/sfm_data.json -o /home/zll/restruct/match -m SIFT openMVG_main_PairGenerator -i /home/zll/restruct/match/sfm_data.json -o /home/zll/restruct/match/pairs.bin openMVG_main_ComputeMatches -i /home/zll/restruct/match/sfm_data.json -p /home/zll/restruct/match/pairs.bin -o /home/zll/restruct/match/matches.putatives.bin openMVG_main_GeometricFilter -i /home/zll/restruct/match/sfm_data.json -m /home/zll/restruct/match/matches.putatives.bin -o /home/zll/restruct/match/matches.f.bin openMVG_main_SfM --sfm_engine INCREMENTAL --input_file /home/zll/restruct/match/sfm_data.json --match_dir /home/zll/restruct/match --output_dir /home/zll/restruct/reconstruction openMVG_main_ComputeSfM_DataColor -i /home/zll/restruct/reconstruction/sfm_data.bin -o /home/zll/restruct/reconstruction/colorized.ply
openMVS可以很好地与openMVG对接,其主要的作用是进行稠密点云重建、网格重建与纹理映射。-d 4与–resolution-level=4的作用是为了简化运算,减小了重建的网格数量与精细程度
openMVG_main_openMVG2openMVS -i /home/zll/restruct/reconstruction/sfm_data.bin -o /home/zll/restruct/mvs/scene.mvs -d /home/zll/restruct/picture /usr/local/bin/OpenMVS/DensifyPointCloud scene.mvs --dense-config-file Densifu.ini --resolution-level 1 --number-views 7 -w /home/zll/restruct/mvs /usr/local/bin/OpenMVS/ReconstructMesh scene_dense.mvs -w /home/zll/restruct/mvs /usr/local/bin/OpenMVS/RefineMesh --resolution-level=4 scene_dense_mesh.mvs -w /home/zll/restruct/mvs /usr/local/bin/OpenMVS/TextureMesh scene_dense_mesh_refine.mvs --decimate 0.5 -w /home/zll/restruct/mvs /usr/local/bin/OpenMVS/Viewer /home/zll/restruct/mvs/scene_dense_mesh_refine_texture.mvs
效果:
这篇关于ubuntu20.04中使用openMVG和openMVS进行三维重建的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-13TiDB + ES:转转业财系统亿级数据存储优化实践
- 2024-05-09“2024鸿蒙零基础快速实战-仿抖音App开发(ArkTS版)”实战课程已上线
- 2024-05-09聊聊如何通过arthas-tunnel-server来远程管理所有需要arthas监控的应用
- 2024-05-09log4j2这么配就对了
- 2024-05-09nginx修改Content-Type
- 2024-05-09Redis多数据源,看这篇就够了
- 2024-05-09Google Chrome驱动程序 124.0.6367.62(正式版本)去哪下载?
- 2024-05-09有没有大佬知道这种数据应该怎么抓取呀?
- 2024-05-09这种运行结果里的10.100000001,怎么能最快改成10.1?
- 2024-05-09企业src漏洞挖掘-有意思的命令执行