3 DMatchに必要な環境整備
2709 ワード
3 DMatchはlearning baseの3次元特徴抽出アルゴリズムであり,最近は既存の開発環境に影響を及ぼさないようにdocker環境を構築するために試用されている
https://github.com/andyzeng/3dmatch-toolbox
https://github.com/andyzeng/3dmatch-toolbox
FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu14.04
ENV DEBIAN_FRONTEND=noninteractive
# opnecv3
RUN apt-get update \
&& apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
yasm \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libavformat-dev \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# opencv 3
RUN wget https://github.com/opencv/opencv/archive/3.4.5.zip \
&& unzip 3.4.5.zip \
&& cd opencv-3.4.5 \
&& mkdir build \
&& cd build \
&& sudo cmake .. \
&& export CXXFLAGS="-fPIC" \
&& sudo make -j8 \
&& sudo make install
# # matlab support
RUN apt-get update && apt-get install -y \
libpng12-dev libfreetype6-dev \
libblas-dev liblapack-dev gfortran build-essential xorg
ENV PATH="/usr/local/MATLAB/from-host/bin:${PATH}"