A tutorial for colmap to openMVS
2021/10/29 23:09:41
本文主要是介绍A tutorial for colmap to openMVS,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Step1 特征提取
colmap feature_extractor \ --SiftExtraction.use_gpu 0 \ --database_path $PROJECT/database.db\ --image_path $DATA_ROOT/$PROJECT/images
Step2 特征匹配
colmap exhaustive_matcher\ --SiftMatching.use_gpu 0\ --database_path $PROJECT/database.db
Step2 特征匹配
colmap exhaustive_matcher\ --SiftMatching.use_gpu 0\ --database_path $PROJECT/database.db
Step3 空三
colmap mapper\ --database_path $PROJECT/database.db \ --image_path $DATA_ROOT/$PROJECT/images \ --output_path $PROJECT/sparse
Step4 影像去畸变
colmap image_undistorter \ --image_path $DATA_ROOT/$PROJECT/images \ --input_path $PROJECT/sparse/0 \ --output_path $PROJECT/dense \ --output_type COLMAP \
- here --output_type, you could find the usage at colmap
Step5 模型转换
colmap model_converter \ --input_path $PROJECT/dense/sparse \ --output_path $PROJECT/dense/sparse \ --output_type TXT
- Under this step, you will see three txt file will be created at $PROJECT/dense/sparse dir.
- cameras.txt, images.txt, point3D.txt
- But you could choice another place to save them.
- And PINHOLE is in cameras.txt you will see.
Step6 格式转换
InterfaceCOLMAP \ --working-folder $(pwd)/$PROJECT/ \ --input-file $(pwd)/$PROJECT/ \ --output-file $(pwd)/$PROJECT/model_colmap.mvs
Step7 密集重建
DensifyPointCloud \ --input-file $(pwd)/$PROJECT/model_colmap.mvs \ --working-folder $(pwd)/$PROJECT/ \ --output-file $(pwd)/$PROJECT/model_dense.mvs \ --archive-type -1 \
- Here --archive-type -1 must be set
Step8 构网
ReconstructMesh --input-file $(pwd)/$PROJECT/model_dense.mvs \ --working-folder $(pwd)/$PROJECT/ \ --output-file $(pwd)/$PROJECT/model_dense_mesh.mvs
Step9 网格精化
RefineMesh \ --resolution-level 1 \ --input-file $(pwd)/$PROJECT/model_dense_mesh.mvs \ --working-folder $(pwd)/$PROJECT/ \ --output-file $(pwd)/$PROJECT/model_dense_mesh_refine.mvs
Step10 纹理映射
TextureMesh \ --export-type obj \ --output-file $(pwd)/$PROJECT/model.obj \ --working-folder $(pwd)/$PROJECT/ \ --input-file $(pwd)/$PROJECT/model_dense_mesh_refine.mvs
这篇关于A tutorial for colmap to openMVS的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23增量更新怎么做?-icode9专业技术文章分享
- 2024-11-23压缩包加密方案有哪些?-icode9专业技术文章分享
- 2024-11-23用shell怎么写一个开机时自动同步远程仓库的代码?-icode9专业技术文章分享
- 2024-11-23webman可以同步自己的仓库吗?-icode9专业技术文章分享
- 2024-11-23在 Webman 中怎么判断是否有某命令进程正在运行?-icode9专业技术文章分享
- 2024-11-23如何重置new Swiper?-icode9专业技术文章分享
- 2024-11-23oss直传有什么好处?-icode9专业技术文章分享
- 2024-11-23如何将oss直传封装成一个组件在其他页面调用时都可以使用?-icode9专业技术文章分享
- 2024-11-23怎么使用laravel 11在代码里获取路由列表?-icode9专业技术文章分享
- 2024-11-22怎么实现ansible playbook 备份代码中命名包含时间戳功能?-icode9专业技术文章分享