From bea46c90b5ecf35ced46698c61df0b9ed965e398 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Mon, 19 May 2014 17:38:30 +0400 Subject: [PATCH 1/2] Remove a useless loop that copies an array to itself --- modules/legacy/src/calibfilter.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/legacy/src/calibfilter.cpp b/modules/legacy/src/calibfilter.cpp index 64b9957beb..49ff6e52dc 100644 --- a/modules/legacy/src/calibfilter.cpp +++ b/modules/legacy/src/calibfilter.cpp @@ -333,12 +333,6 @@ void CvCalibFilter::Stop( bool calibrate ) points[0],points[1], buffer, &stereo); - - for( i = 0; i < 9; i++ ) - { - stereo.fundMatr[i] = stereo.fundMatr[i]; - } - } } From fea4396023e591992280bb10fa7a8d037dd8da9c Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Tue, 13 May 2014 14:35:08 +0200 Subject: [PATCH 2/2] 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 0f9fa6cf89..49fd1e2122 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.