CvArrKMeans2 Method OpenCvSharp Class Library
Splits set of vectors by given number of clusters

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void KMeans2(
	int clusterCount,
	CvArr labels,
	CvTermCriteria termcrit
)

Parameters

clusterCount
Type: SystemInt32
Number of clusters to split the set by.
labels
Type: OpenCvSharpCvArr
Output integer vector storing cluster indices for every sample.
termcrit
Type: OpenCvSharpCvTermCriteria
Specifies maximum number of iterations and/or accuracy (distance the centers move by between the subsequent iterations).
See Also

Reference