File Exchange

image thumbnail

Rain Removal From Still Images Using L0 Gradient Minimization Technique

version 1.0.0.0 (565 KB) by Manu BN
A Matlab code to remove rain

14 Downloads

Updated 29 May 2016

View License

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:
[1] 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 B.N

Cite As

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 .

Comments and Ratings (9)

Rohan Shah

Can anyone explain the mathematical model for detecting rain and the steps in matlab for detecting rain???

Deepa Jayan

Manu BN

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
feval(varargin{:});

Error in ==> Rain_Removal_GUI at 46
gui_mainfcn(gui_State, varargin{:});

Error in ==>
@(hObject,eventdata)Rain_Removal_GUI('pushbutton2_Callback',hObject,eventdata,guidata(hObject))


??? Error while evaluating uicontrol Callback
This error comes when I click on remove rain button. Please help me Manu...

Manu BN

One can use imshowpair command. I have alredy done the befor /after in the gui itself. Its there in verify.m also.

Rob Campbell

Might be nice to show a before/after example image pair. I think I see only rain in the one you've added.

i Image

Updates

1.0.0.0

Verify.m is added to verify the proposed technique.

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux