3DMatch所需環境建設

3DMatch是一個learning base的3維特徵提取算法,最近在試用
為了不影響現有開發環境,建立docker 環境

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}"

你可能感兴趣的:(3DMatch所需環境建設)