qw2208 / disparity-matching

In this project, we calculate the disparity map of two rectified images which imitate two eyes. In this project, SAD and DP algorithms (simplified) are implemented. PyCUDA codes are typically included.

Repository from Github https://github.comqw2208/disparity-matchingRepository from Github https://github.comqw2208/disparity-matching

disparity-matching

In this project, we calculate the disparity map of two rectified images which imitate two eyes. In this project, SAD and DP algorithms (simplified) are implemented. PyCUDA codes are typically included.

  1. "cudadpAdvanced.py" is the pycuda code for Dynamic Programming.
  2. "sad.py" is the pycuda code for local algorithms (SAD&SSD).
  3. "stereo-matching.py" is local algorithms which could be implemented on CPU.
  4. "dpmatching.py" is dp algorithm which could be implemented on CPU.
  5. "imL.png" and "imR.png" are input left images and right images.

Execution of dp algorithm and sad are around 0.2-0.4s on GPU and 10^-3 matching. We also enclosed disparity maps we derived.

This is a code by Qingwei Wu and Reixuan Zhang

Please feel free to contact me: qw2208@columbia.edu

About

In this project, we calculate the disparity map of two rectified images which imitate two eyes. In this project, SAD and DP algorithms (simplified) are implemented. PyCUDA codes are typically included.


Languages

Language:Python 100.0%