Middlebury Stereo Vision Page Database of stereo-pairs with known ground truth.
Contains quantitative comparison of 31 state-of-the-art stereo algorithms. Most of the top methods use either graph cuts or
Max-Flow/Min-cut: A c++ library of class Graph that contains
a function computing minimum cost cut. Should be faily self explainatory (see a header file).