From: L on
Hi

How do you write a MATLAB code to remove ‘salt-and-pepper’ noise, using a median filter?

This code should be my own and not using MATLAB’s predefined functions, however I am allowed to use functions such as imread, imshow and similar. This code should use different size of filters.

Please could you help me with this, as I don’t know how to get started?

Thank you in advance.