% hdbf - is High density bilateral filter, which removes high density salt
% & pepper noise.
% im = input image
% sigr = range parmeter for intensity kernel
% K = length to compute window win=(2*l)+1
% n = Noise density of Salt & Pepper Noise
% out = output image
% Code developed by: Suraj Kamya
% Other used functions
% trimmf - trimmed mean filter
% fbif - free bilateral filter
% rpadd - removing padding
It can remove more than 90% of the noise try it yourself. :)
Good code. But from which paper you adapted this code and have you published this code in any paper. Could you please cite the code and algorithm used.
Your screenshot does not illustrate any filtering that I can see. Why don't you show both an original image, and a filtered image in your screenshot?