Skip to content

Disparity map calculation using naive, dynamic programming, and OpenCV SGBM approaches

Notifications You must be signed in to change notification settings

nasbotond/project-cumulus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-cumulus

Description

This code compares three different disparity map calculation approaches, i.e., naive approach, dynamic programming approach, and the built-in OpenCV StereoSGBM approach, to a ground truth disparity map. Using the disparity maps, the point clouds are reconstructed including an oriented point cloud and a rudimentary triangulated surface mesh.

The algorithms are tested on the public Middlebury dataset.

Requirements

  • Working C++ compiler (C++ 17 or greater)
  • CMake (version >= 2.8)
  • OpenCV (version >= 4.0.0)
  • PCL

Usage

  • ./stereo <path to left image> <path to right image> <path to ground truth disparity image> <output file prefix> <window size> <lambda> <dmin>

Example Results

Naive Disp
Disparity map calculated using Naive approach
DP Disp
Disparity map calculated using dynamic programming approach
OpenCV Disp
Disparity map calculated using OpenCV SGBM approach
DP PC
Point cloud from disparity map calculated using dynamic programming approach

About

Disparity map calculation using naive, dynamic programming, and OpenCV SGBM approaches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published