Repository Moved
This project has been merged into Stereo Matching Algorithms in MATLAB and Python.
The new repository contains the latest code, documentation, and updates.
An optimized Matlab implementation of Semi-Global Matching (SGM) for stereo matching. It uses the 8-direction version of the algorithm with a small improvement for better results. The improvement is that in the calculation of the total cost, the matching cost does not add up. Normally it had to add up eight times (once for each direction).
The Tsukuba stereo image that used as input.
The disparity map that created at the output.

