Description: Within each folder, first run gendata.m (in Matlab) to generate the appropriate data files. Then, run gclabel.cpp to estimate the shadow map and normal field. Finally, run genheight.m in Matlab to integrate the normal field. The light source directions and some other parameters are hard coded in gclabel.cpp.
For other datasets of your own, you can generate the input files and the graph cuts optimization code similar to the examples shown above.
To Search:
File list (Check if you may need any files):
padMatrix.m
padPatch.m
cgLearnFFT.m
compute_h_noLoop2.m
normalize_h.m