-------------------------------------------------------------------------------------------------------------------
Program of ICCV '13 Paper: Line Assisted Light Field Triangulation and Stereo Matching

The program is free for research purpose only

Implemented by:
Zhan Yu
yshmzhan@udel.edu

If you have any problem or questions with the program, please send me an Email.
-------------------------------------------------------------------------------------------------------------------

Compiled by Visual C++ 10.0 x64 Compiler 

To use the program, simply call LAGC.bat 

-------------------------------------------------------------------------------------------------------------------
Explanation of the Program:

LAGC.exe In_Folder Out_Folder Dimension_U Dimention_V Start_Disp End_Disp Step_Disp Color_Sigma FLIP_V

In_Folder: A Folder contains all the input images, the image format can be ".png", ".bmp", ".jpg", ".tiff", ".ppm".

Our_Folder: A Folder for saving the disparity maps for all images. The output contains the normalized disparity maps in ".png" format and the binary disparity map and cost map. The binary disparity map and cost maphas the following format:
[32bitfloat](m_u) [32bit float](m_v) [32bit float](m_x) [32bit float](m_y) m_u*m_v*m_x*m_y*[32bit float](disparity data/cost data)

Dimension_U: The number of columns in an 2D array of images, in integer

Dimension_V: The number of rows in an 2D array of images, in  integer

Start_Disp: The minimun disparity value to check, in float

End_Disp: The maximum disparity value to check, in float

Step_Disp: The step of disparity checking, in float

Color_Sigma: The sigma of Gaussian curve to compute color distance, in float

FLIP_V: Flip the V direction to fit the arrangement of different light fields, in bool (0 or 1). 
e.g. Middlebury and Stanford have different image arrangements in V directions of the light field.
-------------------------------------------------------------------------------------------------------------------
Others:

The folder "Lines" is used to save the intermediate line detection result.

Since the LAGC is trying to find the max flow in a 4D graph, the running speed can be slow. Please first use a low resolution light field to test, then run the full light field.





