projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
601b7d1
)
Removed unecessary initialisation of Mat centers.
author
Nghia Ho
<nghiaho12@yahoo.com>
Thu, 9 Jan 2014 10:04:17 +0000
(21:04 +1100)
committer
Nghia Ho
<nghiaho12@yahoo.com>
Thu, 9 Jan 2014 10:04:17 +0000
(21:04 +1100)
samples/cpp/kmeans.cpp
patch
|
blob
|
history
diff --git
a/samples/cpp/kmeans.cpp
b/samples/cpp/kmeans.cpp
index
b742112
..
19e9983
100644
(file)
--- a/
samples/cpp/kmeans.cpp
+++ b/
samples/cpp/kmeans.cpp
@@
-36,7
+36,7
@@
int main( int /*argc*/, char** /*argv*/ )
Mat points(sampleCount, 2, CV_32F), labels;
clusterCount = MIN(clusterCount, sampleCount);
- Mat centers
(clusterCount, 1, points.type())
;
+ Mat centers;
/* generate random sample from multigaussian distribution */
for( k = 0; k < clusterCount; k++ )