This repository contains the source code for my thesis, which implements and extends CPM for motion estimation and PatchMatch Stereo for stereo matching.
You can obtain a copy of the thesis at the address: https://elib.uni-stuttgart.de/handle/11682/9592
The estimation results for the standard benchmarks are available at: KITTI-2012, KITTI-2015, MPI Sintel and Middlebury.
It has been tested on macOS and Ubuntu.
To compile the code, you need to install OpenCV and its contribution module opencv_contrib. In addition, your compiler has to support C++11.
-
Download the repository.
-
Build the code
cd ppm
mkdir build
cd build
cmake ..
make -j4
- It will generate three demo executables
ppm_cmd
for CPM without post processing (motion estimation)ppm_cmd_with_epic
for CPM with post processing (motion estimation)ppm_st_cmd
for stereo matching.
Refer to ppm_commandline.cpp, ppm_commandline_with_epic_flow.cpp and ppm_st_cmd.cpp for how to use it.