From fea4396023e591992280bb10fa7a8d037dd8da9c Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Tue, 13 May 2014 14:35:08 +0200 Subject: [PATCH] Added more info on the data input variable of kmeans --- modules/core/doc/clustering.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/core/doc/clustering.rst b/modules/core/doc/clustering.rst index 0f9fa6c..49fd1e2 100644 --- a/modules/core/doc/clustering.rst +++ b/modules/core/doc/clustering.rst @@ -17,7 +17,15 @@ Finds centers of clusters and groups input samples around the clusters. :param samples: Floating-point matrix of input samples, one row per sample. - :param data: Data for clustering. + :param data: Data for clustering. An array of N-Dimensional points with float coordinates is needed. Examples of this array can be: + + * ``Mat points(count, 2, CV_32F);`` + + * ``Mat points(count, 1, CV_32FC2);`` + + * ``Mat points(1, count, CV_32FC2);`` + + * ``std::vector points(sampleCount);`` :param cluster_count: Number of clusters to split the set by. -- 2.7.4