SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other XITE-3.3-3.i386.rpm

KNN

Section: C Library Functions (3)
Updated: 16 Mar 1998
Index

 

NAME

knn - k nearest neighbour noise reduction

 

SYNTAX


 #include <xite/knn.h>


 int knn( IBAND input, IBAND output, int n,
    int k );

 

DESCRIPTION

knnperforms knearest neighbour noise reduction,averaging over the center pixel and the knearest neighbours. If nis even n+1 is used.Uses histogram updating.

nis the width of a square window. kis the number ofneighbours to average over.

 

RESTRICTIONS

inputand outputmust have pixeltype unsigned byte.

 

REFERENCE

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

 

SEE ALSO

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

 

RETURN VALUE


 0 => ok
 1 => Bad input pixel type
 2 => Bad output pixel type
 3 => Bad n value (less than 1)
 4 => Bad k value (less than 1 or larger than n**2-1)

 

AUTHOR

Tor Lønnestad, BLAB, Ifi, UiO

 

ID

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


 

Index

NAME
SYNTAX
DESCRIPTION
RESTRICTIONS
REFERENCE
SEE ALSO
RETURN VALUE
AUTHOR
ID

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector