
---------------------------------------------------------------
First step: create a sharp depth gradient field (depthgrad.txt)
---------------------------------------------------------------

Go to directory CreateDepthGrad and run Matlab program CreateDepthGrad.m
Note that the input is a set of segmented ratio images.
To run the demo in other images, you need to obtain the ratio images through the depth edge detection code 
(also available in the website) and then simply binarize it or apply a more sophisticated segmentation algorithm

The output is the gradient field (depthgrad.txt) based on shadow width information and sign of depth edge

---------------------------------------------------------------
Second step: reconstruction from gradient fields
---------------------------------------------------------------
Go to Poisson/Release folder and run the executable.
On the menu, select File / Process Gradient. Then select the file depthgrad.txt
The output (.pgm file) is the qualitative depth map
