I am designing a filter removing impulses noises from an RGB IMAGE
For identifying the noise pixels in the image I need a 3x3 window to slide over the image starting from the first Pixel to the Last.
If the corrupted Pixel is found i have to do some calculation to correct it.
To find this Corrupted Pixel I need a 3x3 Window to slide over my Image.
please send me the code for this
FIR, I've ALREADY posted code to get rid of impulse noise. In fact it was to your very own question just a few days ago! Perhaps you've forgotten, or just ignored my answer. Here is the link: http://www.mathworks.com/matlabcentral/answers/56515#answer_68417 If you want to replace noise pixels with blurred pixels, just replace the medfilt2() with conv2() like Matt said, though I don't know why you'd do that because you'd be designing a worse filter.