pseudomedian3x3
[ XITE Reference Manual | XITE home ]
Name
pseudomedian3x3 - median like noise reduction filtering
Syntax
#include <xite/median.h>
int pseudomedian3x3( IBAND input,
IBAND output );
Description
Filters the input band into the output band
using a median like filter with window size 3 x 3.
Given the neighborhood a..i around e:
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.
Restrictions
input and output must have pixel type unsigned byte.
Return value
0 => ok
1 => bad input pixel type
2 => bad output pixel type
Author
Tor Lønnestad, BLAB, Ifi, UiO.
Id
$Id: pseudomedian3x3.c,v 1.23 1997/01/10 16:08:31 svein Exp $