Skip to content

Reimplementation of Semi-Global Matching depth estimation technique with Numpy.

License

Notifications You must be signed in to change notification settings

ChristianOrr/semi-global-matching-numpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semi-Global Matching Numpy

Introduction

This is a reimplementation of the Semi-Global Matching algorithm using numpy. A python script and jupyter notebook is provided implementing SGM in the same way. The notebook provides visualizations and explanations for each step in the process. If you're new to depth estimation/SGM, its recommended to read the notebook first.

SGM Brief Description

SGM is a popular classic depth estimation algorithm, known for having good accuracy for its speed. Its widely used in resource constrained situations.

Requirements

All you need to run the SGM algorithm are a pair of rectified stereo images. Stereo pair examples from the Middlebury dataset are provided for you (cones, figures and teddy). If you would like to review the algorithms accuracy, you will also need groundtruth disparities.

If you would like to use your own stereo images and your stereo camera doesn't provide rectified stereo pairs, then you can calibrate your stereo camera using the methods shown in this repo: stereo-camera-calibration.

The python packages needed are shown in the requirements.txt. I've listed the versions of the packages I used, but it will probably also work with other versions.

References

About

Reimplementation of Semi-Global Matching depth estimation technique with Numpy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published