Install from source
Colmap can be installed in the mainstream system Windows,mac,linux
Get the latest source of Colmap from GitHub
git clone https://Github.com/colmap/colmap
The installation tutorials are as follows
Linux
Recommended dependencies: CUDA.
1. Installing dependent Packages
$ sudo apt-get install openjdk-8-jdk git python-dev python3-dev python-numpy python3-numpy python-six p Ython3-six build-essential python-pip python3-pip python-virtualenv Swig python-wheel python3-wheel Libcurl3-dev Libcupti-dev
Where OPENJDK is required, otherwise the configuration file will be error after the time.
2. Installing Cuda and CUDNN
These two are the underlying computational framework that Nvidia has developed for machine learning, with the addition of hardware and software to achieve deep learning amputated I cards.
The installed Cuda and CUDNN versions of the graphics card used since the selection can be queried here. Here we use GeForce 1080ti, so the corresponding version is CUDA8.0 (. Run version) (download here) and cuDNN6.0 (download here).
# Install cuda$ wgethttps://developer.nvidia.com/compute/cuda/8.0/prod2/local_installers/cuda_8. 0.61_375.26_linux-run$ sudo sh cuda_8. 0.61_375.26_linux.run--override--silent--toolkit # installed Cuda under/usr/local/cuda # install cddnn$ cd/usr/local/ Cuda # CUDNN put in this directory to extract $ TAR-XZVF cudnn-8.0-linux-x64-v6. 0.tgz$ sudo cp cuda/include/cudnn.h/usr/local/cuda/include$ sudo cp cuda/lib64/libcudnn* /usr/local /cuda/lib64$ sudo chmod a+r/usr/local/cuda/include/cudnn.h/usr/local/cuda/lib64/libcudnn*
Then add the path to the environment variable:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"export CUDA_HOME=/usr/local/cuda
Put the above code into the ~/.BASHRC file after savingsource ~/.bashrc
Dependencies from default Ubuntu repositories:
sudo apt-get install cmake build-essential libboost-all-Dev Libeigen3-Dev libsuitesparse-Dev libfreeimage-Dev libgoogle- glog-Dev libgflags-Dev libglew-Dev qtbase5-Dev LIBQT5OPENGL5-dev
Install Ceres Solver:
sudo apt-get install libatlas-base-dev libsuitesparse-devgit clone https:// Ceres-solver.googlesource.com/ceres-solvercd ceres--dbuild_testing=off-dbuild_examples= Offmakesudo make install
Configure and compile Colmap:
CD path/to/colmapmkdir BUILDCD buildcmake. Makesudo make install
Run Colmap:
Colmap-Hcolmap GUI
Run Colmap
Data Set Download:
A number of different datasets is available for download at:https://demuc.de/colmap/datasets/
Install under Ubuntu run Colmap