3D重建 | COLMAP 源码解析
持续更新中
- CMakeLists 项目构建解读
目的:通过CMakeLists一览编译过程 作为研究源码全局入口,最终生成可执行的colmap
Include CMake dependencies
Options 设定编译参数[变量]
Find packages
Compiler specific configuration
Add sources 内部库 也就是git下来包含在该项目文件夹中的【lib】【src】
外部库【Ceres等】 不包含在COLMAP项目中 需要外部安装的
Generate source groups for Visual Studio, XCode, etc. [IDE]
Prevent the library from being compiled automatically. 防止被自动编译
Install and uninstall scripts 安装
Install header files.
Generate and install CMake configuration.
Install find_package scripts for dependencies.
Install application menu entry under Linux/Unix. 安装
Configure the uninstallation script. 卸载
- SourceCode 解读
当我们运行MVS框架时,执行到以下pipeline
AutomaticReconstructionController::Run
主体框架如下: RunFeatureExtraction RunFeatureMatching
If sparse: RunSparseMapper
If dense: RunDenseMapper