Commit bf499455 authored by Nghia Ho's avatar Nghia Ho

Removed unecessary initialisation of Mat centers.

parent 601b7d1d
...@@ -36,7 +36,7 @@ int main( int /*argc*/, char** /*argv*/ ) ...@@ -36,7 +36,7 @@ int main( int /*argc*/, char** /*argv*/ )
Mat points(sampleCount, 2, CV_32F), labels; Mat points(sampleCount, 2, CV_32F), labels;
clusterCount = MIN(clusterCount, sampleCount); clusterCount = MIN(clusterCount, sampleCount);
Mat centers(clusterCount, 1, points.type()); Mat centers;
/* generate random sample from multigaussian distribution */ /* generate random sample from multigaussian distribution */
for( k = 0; k < clusterCount; k++ ) for( k = 0; k < clusterCount; k++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment