admin管理员组

文章数量:1598075

近期因为想要入选学校某位很厉害的老师的某个项目,布置的小任务就是先把colmap以及openMVS跑一跑。我就记录了一下学习的经过。

 

一、Ubuntu上源码编译colmap:

       参考网址:https://colmap.github.io/install.html

      

1、获取源码:

             

git clone https://github/colmap/colmap

2、安装依赖项:
             

     sudo apt-get install \

                         git \

                         cmake \

                         build-essential \

                         libboost-program-options-dev \

                         libboost-filesystem-dev \

                         libboost-graph-dev \

                         libboost-regex-dev \

                         libboost-system-dev \

                         libboost-test-dev \

                         libeigen3-dev \

                         libsuitesparse-dev \

                         libfreeimage-dev \

                         libgoogle-glog-dev \

                         libgflags-dev \

                         libglew-dev \

                         qtbase5-dev \

                         libqt5opengl5-dev \

                         libcgal-dev

                  

                   PS:在Ubuntu16.04下,CGAL的cmake配置是损坏的,必须安装CGAL的qt5包:

                           

 sudo apt-get install libcgal-qt5-dev

 

       3、编译安装Ceres-Solver:             

         sudo apt-get install libatlas-base-dev libsuitesparse-dev

              git clone https://ceres-solver.googlesource/ceres-solver

              cd ceres-solver

              git checkout $(git describe --tags)               # Checkout the latest release

              mkdir build

              cd build

              cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF

              make -j12

              sudo make install

        

       4、配置和编译colmap:
                  

        git clone https://github/colmap/colmap.git

              cd colmap

              git checkout dev

              mkdir build

              cd build

              cmake ..

              make -j12

              sudo make install

好了到这里为止就安装完colmap了。运行一下,

             

colamp gui

成功打开一个colmap的窗口就说明安装成功

本文标签: 参数文档官方Colmap