Removed unecessary initialisation of Mat centers.

This commit is contained in:
Nghia Ho 2014-01-09 21:04:17 +11:00
parent 601b7d1dd3
commit bf4994554d

View File

@ -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++ )