pseudomedian3x3
[ XITE Reference Manual | XITE home ]
Name
pseudomedian3x3 - median like noise reduction filtering
Syntax
pseudomedian3x3 <input> <output>
Description
Filters the input image into the output image
band by band, using a median like filter with
window size 3 x 3.
Given the neighborhood a..i :
a b c
d e f
g h i
First the median of a, b and c is computed, likewise the
median of d, e and f, and the median of g, h and i. Finally
the median of these three median values replaces the value e
in the output band. Corner pixels are copied from input image,
border pixels are set to the median of the border pixel and
the two neighboring border pixels.
See also
median(1)
Restrictions
input must have pixeltype unsigned byte.
Author
Tor Lønnestad, BLAB, Ifi, UiO.
Examples
pseudomedian3x3 mona.img monamed.img
Id
$Id: pseudomedian3x3.c,v 1.23 1997/01/10 16:08:31 svein Exp $