maxSimilar3x3
[ XITE Reference Manual | XITE home ]
Name
maxSimilar3x3 - maximum similarity 3x3 noise reduction
Syntax
#include <xite/stdiff.h>
int maxSimilar3x3( IBAND input, IBAND output );
Description
For every pixel p, calculate the five 3x3 averages:
x x x x x x x x x x x p p x x
x x x x x x x p x x x x x x x
x x p p x x x x x x x x x x x
Replace p in the output band with the average that
is closest to p. The 1 pixel wide edge of the band
is copied from input without modification. The next
line/sample is partly processed.
Restrictions
Bands must have pixel type UNS_BYTE.
Reference
W. Niblack: "Digital Image Processing", Prentice/Hall, p80.
See also
Return value
0 => ok
1 => Bad input pixel type
2 => Bad output pixel type
3 => Malloc failed
Author
Tor Lønnestad, BLAB, Ifi, UiO.
Id
$Id: maxSimilar3x3.c,v 1.22 1997/01/10 16:14:33 svein Exp $