Removed unecessary initialisation of Mat centers.
authorNghia Ho <nghiaho12@yahoo.com>
Thu, 9 Jan 2014 10:04:17 +0000 (21:04 +1100)
committerNghia Ho <nghiaho12@yahoo.com>
Thu, 9 Jan 2014 10:04:17 +0000 (21:04 +1100)
samples/cpp/kmeans.cpp

index b742112..19e9983 100644 (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++ )