Giter Club home page Giter Club logo

spmatch's Introduction

SPMatch, a PatchMatch Stereo implementation

This is a simple implementation of the PatchMatch algorithm for stereo reconstruction. The algorithm is described in: Michael Bleyer, Christoph Rhemann and Carsten Rother. PatchMatch Stereo - Stereo Matching with Slanted Support Windows. In Jesse Hoey, Stephen McKenna and Emanuele Trucco, Proceedings of the British Machine Vision Conference, pages 14.1-14.11. BMVA Press, September 2011.

This software closely follows the description of this paper. This is not an efficient implementation. There are some differences, however, in the Random Initialization and Plane Refinement steps. These changes allow to sample versors with uniform distribution in the required domains.

Dependencies:

  • libboost-program-options-dev (1.62)
  • cimg-dev (1.7.9)
  • imagemagick (8:6.9.7)
  • libeigen3-dev (3.3.2)

The version numbers are the ones that have been used. Any future version with the same API is fine.

Build:

First install all the dependencies. Then, you can build using CMake, as:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Usage:

Run:

spmatch <left-image> <right-image>

The left and right images must be RGB images. The outputs are two new images, "disparityL." and "disparityR.", with the computed disparity map from the two views. These images are nomalized in [0,255], because they are just visual representations of the result. The actual disparity will be written in two other files: "disparityL.csv" and "disparityR.csv". The format of each line is:

<p_w>, <p_h>, <disparity>

This means that the disparity value of pixel (p_w, p_h) is given by the real number "disparity".

There are many options available. Run spmatch --help for alist of all available options. Some of them (e.g. -i and -w) affect excecution time and accuracy.

spmatch's People

Contributors

cipollone avatar

Watchers

James Cloos avatar Wang Pengfei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.