Name: SAKINO Shinya
Mail to: sin_sakino@yahoo.co.jp
Date:1 / 14 / 2010


Program Contents
These programs create depth image from 2 stereo-pair images.
These programs have two methods. One is 'alpha expantion', another is 'Hierarchical graph cut'.

You can download source programs from next:
MethodsSource program
alpha expantionstereo_alpha.cpp
hierarchical graph cutstereo_hierarchical.cpp


Preparation
You need 2 stereo-pair images.
Of cource, if you can take photos of stereo-pair images, it's OK.
But I recommend to download stereo-pair images from next web pages:
1. http://cat.middlebury.edu/stereo/data.html
2. http://vision.middlebury.edu/stereo/data/


These source programs use program library 'MAXFLOW' and 'OpenCV'.
The Details are next:
Installing for OpenCV
If you are with windows, download from souceforge(http://sourceforge.net/project/showfiles.php?group_id=22870) and run it.
Installing for MAXFLOW
Download MAXFROW from http://www.cs.ucl.ac.uk/staff/V.Kolmogorov/software.html and unzip it and copy it to same folder of source programs.
You can compile by linking 'graph.cpp','maxflow.cpp','graph.h','block.h', and source program.


Usage
'Execute file' 'Left Eye Image' 'Right Eye Image' 'Output Image'

These programs use DIPSMAX as 15. If you want to more value, you should change DIPSMAX.
1
Left Eye Image

2
Right Eye Image

1
Alpha Expantion

2
Hierarchical Graph Cut