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
From: Bruce Bowler on
On Mon, 21 Jun 2010 22:19:20 +0000, L set fingers to keyboard and typed:

> 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

But if WE do YOUR homework is it YOUR OWN or is it OUR OWN?

I found, at least when I was in school, that professors were more than
willing to help you to understand what they're trying to teach.