Giter Site home page Giter Site logo

stereomatching's Introduction

Disparity calculation using Loopy Belief Propagation

Context

The purpose of this work is to compute the disparity between two images (from which can be recovered the depth of field of the objects in the image).

Input

The input are two images of the same scene taken from two different points. Be careful, it is assumed that the two points differ only by an horizontal translation. Here are the two left and right tsukuba images used for the test :

alt textalt text

Try with your own images by replacing the imgL.png and imgR.png files in the input folder.

Compute disparity

To compute the disparity map run :

python main.py

Don't forget to adjust your parameters at the beginning of main.py.

Find your disparity map in the output folder. Here is an example of disparity map :

alt txt

Resource

This work has been made following the assignment.pdf file, proposed by the computer vision course of the ENPC school. See more details in it.

stereomatching's People

Contributors

aperezlebel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

stereomatching's Issues

The message_update function donot have a smoothness term

I have been going through your code, and I believe your message-update scheme for min-sum LBP is slightly wrong for two reasons :

  1. The smoothness/Binary Potential term is missing in the message update.
  2. For a message of a given label, it should take minimum of all labels. But your code doesnot have any such scheme.

Can you please look into the code and check, because I am using your code for message update in some other application?

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.