VideoDeRaining(AVIFilename, Nun_of_frames, Alg) 

AVIFilename: file name, Ex: 'StaticRainVideo.avi', 'SingleRainImage.jpg'
Nun_of_frames: number of frames (unuse in single image rain removal)
Alg: used rain removal algorithm (1, 2, 3)

Video rain removal via single-image-based method
Alg = 1
Ex: VideoDeRaining('DynamicRainVideo.avi', 2, 1);

Video rain removal for static camera
Alg = 2
Ex: VideoDeRaining('StaticRainVideo.avi', 55, 2); % Nun_of_frames > 50 

Single image rain removal
Alg = 3
Ex: VideoDeRaining('SingleRainImage.jpg', '', 3);


Publications:

[1] L. W. Kang, C. W. Lin, and Y. H. Fu, "Automatic single-image-based rain streaks removal via image decomposition," IEEE Trans. on Image Processing (in press).
[2] Y. H. Fu, L. W. Kang, C. W. Lin, and C. T. Hsu, "Single-frame-based rain removal via image decomposition," Proc. IEEE Int. Conf. on Acoustics, Speech and Signal Processing, Prague, Czech Republic, May 2011, pp. 1453-1456 (ICASSP2011).