A simple C++ algorithm that performs Stereo block matching powered by OpenCV .
$ git clone https://github.com/y3n11/StereoMatching.git
$ cd StereoMatching/src
$ make
$ ./StereoMatching <Left image> <Right image> <Method> <Window_Size> <Disp>
- SAD : Sum of absolute differences
- SSD : sum of squared differences
- LBP : Local binary pattern
./StereoMatching ../images/left.tif ../images/right.tif SAD 5 40