knn

[ XITE Reference Manual | XITE home ]

Name

knn - k nearest neighbour noise reduction

Syntax

knn <input image> <output image> <n> <k>

Description

Performs k nearest neighbour noise removal. n x n is window size. Averages over center pixel and k neighbours, using histogram updating technique.

Restrictions

The input image must have pixel type unsigned byte.

Reference

L. S. Davis & A. Rosenfeld:"Noise Cleaning by Iterated Local Averaging" IEEE trans. on syst., man, and cyb., vol smc-8, no 9, 1978.

See also

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

Author

Tor Lønnestad, BLAB, Ifi, UiO

Examples

knn mona.img monaknn.img 5 9

Id

$Id: knn.c,v 1.24 1997/01/10 16:03:52 svein Exp $