CvKMeans2 Method (CvArr, Int32, CvArr, CvTermCriteria) 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 static int KMeans2(
	CvArr samples,
	int clusterCount,
	CvArr labels,
	CvTermCriteria termcrit
)

Parameters

samples
Type: OpenCvSharpCvArr
Floating-point matrix of input samples, one row per sample.
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).

Return Value

Type: Int32

[Missing <returns> documentation for "M:OpenCvSharp.Cv.KMeans2(OpenCvSharp.CvArr,System.Int32,OpenCvSharp.CvArr,OpenCvSharp.CvTermCriteria)"]

See Also

Reference