mbkncn

[ XITE Reference Manual | XITE home ]

Name

mbkncn - multi band k nearest connected neighbour noise reduction

Syntax

 #include <xite/kncn.h>

 int mbkncn( IMAGE i1, IMAGE i2, int k );

Description

Performs multi band k nearest connected neighbours noise filtering. All bands are filtered simultaneously. Taxi distance is used as distance measure.

i1 is the input image, i2 is the output image.

Restrictions

The bands of i1 and i2 must have pixel type unsigned byte.

Return value

 0 => ok
 1 => Bad pixel type input image
 2 => Bad pixel type output image
 3 => Bad k value

See also

mbkncn(1), kncn(3), knn(3), mbknn(3)

Author

Tor Lønnestad, BLAB, Ifi, UiO

Id

$Id: mbkncn.c,v 1.24 1997/01/10 16:04:25 svein Exp $