Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
public static int KMeans2( Array samples, MatrixType samplesType, int clusterCount, int[] labels, CvTermCriteria termcrit, int attemps, CvRNG rng, KMeansFlag flag, CvArr centers, out double compactness )
Parameters
- samples
- Type: SystemArray
Floating-point matrix of input samples, one row per sample. - samplesType
- Type: OpenCvSharpMatrixType
[Missing <param name="samplesType"/> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]
- clusterCount
- Type: SystemInt32
Number of clusters to split the set by. - labels
- Type: SystemInt32
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). - attemps
- Type: SystemInt32
[Missing <param name="attemps"/> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]
- rng
- Type: OpenCvSharpCvRNG
[Missing <param name="rng"/> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]
- flag
- Type: OpenCvSharpKMeansFlag
[Missing <param name="flag"/> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]
- centers
- Type: OpenCvSharpCvArr
[Missing <param name="centers"/> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]
- compactness
- Type: SystemDouble
[Missing <param name="compactness"/> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]
Return Value
Type: Int32[Missing <returns> documentation for "M:OpenCvSharp.Cv.KMeans2(System.Array,OpenCvSharp.MatrixType,System.Int32,System.Int32[],OpenCvSharp.CvTermCriteria,System.Int32,OpenCvSharp.CvRNG,OpenCvSharp.KMeansFlag,OpenCvSharp.CvArr,System.Double@)"]