A Matlab code is written to remove rain successfully using Lo gradient minimization technique.
How to run??
1. Unzip and place the folder 'Rain Pixel' in the path of Matlab
2. Run Rain_Removal_GUI.m
3. Select an image from 'Bangalore Rain' folder. Next click on Remove Rain button & observe the results.
4. Next run Verify.m to verify the proposed technique using HOG+SVM approach
The code is based on my paper: https://www.researchgate.net/profile/Manu_Bn2/publication/295235499_Rain_Removal_From_Still_Images_Using_L0_Gradient_Minimization_Technique/links/56c847aa08ae96cdd06acb6f.pdf
PPT Download Link: https://www.researchgate.net/publication/295235748_Rain_Removal_PPT
Please cite the below if you are using this for your research:
 Manu, B. N. "Rain removal from still images using L0 gradient minimization technique." Information Technology and Electrical Engineering (ICITEE), 2015 7th International Conference on. IEEE, 2015.
Note: The method of rain detection is only approximate and is different than the one mentioned in the paper. Nevertheless gives highly satisfactory results.
Comments & suggestions are always welcome
Thanks in advance,
Manu BN (2019). Rain Removal From Still Images Using L0 Gradient Minimization Technique (https://www.mathworks.com/matlabcentral/fileexchange/57416-rain-removal-from-still-images-using-l0-gradient-minimization-technique), MATLAB Central File Exchange. Retrieved .
Can anyone explain the mathematical model for detecting rain and the steps in matlab for detecting rain???
Use Matlab 2013, the latest version of Matlab have different gui functions. Hence the errors.
This project was done 3 years ago in Matlab 2013.
Please rate it if you find it useful for academic research
??? Error using ==> imreconstructmex
MARKER pixels must be <= MASK pixels.
Error in ==> imreconstruct at 77
im = imreconstructmex(marker,mask);
Error in ==> Rain_Removal_GUI>pushbutton2_Callback at 188
Iobrcbr = imreconstruct(imcomplement(Iobrd), imcomplement(closeBW));
Error in ==> gui_mainfcn at 96
Error in ==> Rain_Removal_GUI at 46
Error in ==>
??? Error while evaluating uicontrol Callback
This error comes when I click on remove rain button. Please help me Manu...
One can use imshowpair command. I have alredy done the befor /after in the gui itself. Its there in verify.m also.
Might be nice to show a before/after example image pair. I think I see only rain in the one you've added.
Verify.m is added to verify the proposed technique.