home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
morpho
/
median.
/
median.bin
Wrap
Text File
|
1995-12-09
|
1KB
|
29 lines
OPERATOR
median --- greyscale median filter
DESCRIPTION
The median operator performs median filtering on greyscale images. The operator
sets each pixel in the output image to the median value, determined over all
selected pixels, in the neighbourhood of that pixel. The pixels to be used
can be selected using a structuring element defined by the kernel parameter.
For more on the use of the kernel, consult the documentation or help for
the berode and bdilate operators.
The median operator is useful for removing isolated lines of pixels while
preserving spatial resolutions. Its performance is poor when the number of
noise pixels in the neighborhood is greater than half the number of pixels
in the neighborhood. Median filtering performs very well on images containing
binary noise but performs poorly when the noise is Gaussian. For example, the
kernel
1 0 1
0 1 0
1 0 1
is very good at removing vertical and horizontal binary noise lines.