Does any one know matlab who can help me getting code to the file i have attached below?

1 view (last 30 days)
Please help in getting this in matlab code.Please

Answers (1)

Image Analyst
Image Analyst on 22 Apr 2015
Looks like nonsense to me. Looks like they just wanted to make it as complicated as possible and ended up doing it wrong. First of all Maxij is just going to be the max of the image except for the first few window locations where it's not. So there's no reason to "build it up as you go along" when in the end, when you've looked at all the windows up to and including the last window, it will just be the max value of the image.
I definitely don't agree with setting Minij and Nmin to the maximum of the prior mins. It's saying that the min of the current window is equal to the min of the prior window location if the min of the prior window is greater than the min of the current window. Let's say the image was a uniform 128 with noise at 0 and 255 with at least one window where there was no dark pepper noise at all. This algorithm would set Nmin to 128 in that case. What's the justification in that? That's the image "no-noise" level!
If you want a salt and pepper noise demo, see my attached demo. I just find 0s and 255s and replace those pixels by the median of the pixels in the window.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!