MAN page from Mandrake Other XITE-3.3-3.i386.rpm
CLASSIFYNEAREST
Section: C Library Functions (3)
Updated: 16 Mar 1998
Index
NAME
classifyNearest - classify to nearest class
SYNTAX
#include <
xite/classification.h>
int classifyNearest( IMAGE input, IBAND oldres,
IBAND newres, float* means[], int k,
int metric, int* changes );
DESCRIPTION
Classifies the input image to the nearest of thespecified class means.
inputmay be multi band image.oldresis previous classification result.newresis the classification result.meansrefers to the class mean vectors.kis the number of classes.metricmust be one of
1 => Euclidian distance
2 => City block distance
3 => Chess distance
changesis the number of changes from previousclassification.
Identical arguments may be given for oldresand newres.
RESTRICTIONS
input,oldresand
newresmust have pixel type unsignedbyte.
meansmust be an array of pointers to arraysof floats, indexable on the interval
means[0..k-1][1..Inbands(input)].
RETURN VALUE
0 => ok
1 => bad pixel type in input image
2 => bad pixel type in oldres
3 => bad pixel type in newres
4 => bad k value (less than 2)
5 => unknown metric
AUTHOR
Tor Lønnestad, BLAB, Ifi, UiO.
ID
$Id: kMeansCluster.c,v 1.25 1997/01/29 10:38:27 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RESTRICTIONS
- RETURN VALUE
- AUTHOR
- ID
This document was created byman2html,using the manual pages.