From: ImageAnalyst on
Then write it yourself using for loops and adding and dividing (for
the mean), or sorting and selecting (for the median). It's a simple
set of four nested for loops - intuitively obvious.
From: Salim Azak on
try a mean filter. If you don't want to use ready-function, you can create it easily.
scan the image with a 3x3 or 5x5 mask. sum and average of 9 pixels in each mask.
I do not know that noise is what kind of.
From: PinkLab on
"Salim Azak" <salimazak(a)metu.edu.tr> wrote in message <hqmlcm$7ji$1(a)fred.mathworks.com>...
> try a mean filter. If you don't want to use ready-function, you can create it easily.
> scan the image with a 3x3 or 5x5 mask. sum and average of 9 pixels in each mask.
> I do not know that noise is what kind of.

it is salt & pepper noise on image, could you please help me on how to do the filter for mean and median please? thanks
From: Salim Azak on
&#304;f you will use it only for salt & pepper noise you can do so that;
salt & pepper noise means that small white or black points involving only one pixel.
Firstly you will find black or white pixels in an image. (0 or 255)
After you find a B/W value you will look around it. Assume it's in the middle of a 3x3 mask. Average of sum of all (eight) pixels out of middle. And change it's value to average.
From: PinkLab on
Is this mean or median filter? Thanks a lot