%==================================================================
%  Source code for local motion blur estimation
%  - Shengyang Dai, 6/30/2010
%==================================================================

* Related paper: 
	- Motion from Blur, Shengyang Dai and Ying Wu, In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR'08)

* How to use:
	- Run the cells in main.m, by loading the pre-computed alpha channel
	- If you want to compute the alpha channel by yourself (it takes some time):
		a. Download the spectral matting code from http://www.vision.huji.ac.il/SpectralMatting/, extract to this folder, and compile
		b. Modify line 21 of calcMattingComponents.m: s_eigs_num = 20; -> s_eigs_num = min(eigs_num, 20);
		c. Modify line 35 of unsp_GroupMattingComponents.m: nbest = 10; -> nbest = min(10, size(scr,2));
		d. Uncomment the line 'getAlpha_Image(imgn);' in main.m, and run it. 
	- If you want to generate the partially blurred image (e.g., syn5.png) by yourself:
		run synBlurAlpha.m

* Contact:
	- shengyangdai2009@u.northwestern.edu
	- http://www.eecs.northwestern.edu/~sda690/