From: Nghia Ho Date: Thu, 9 Jan 2014 10:04:17 +0000 (+1100) Subject: Removed unecessary initialisation of Mat centers. X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~145^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf4994554df10e9c070da5490b5c274fa152fe84;p=profile%2Fivi%2Fopencv.git Removed unecessary initialisation of Mat centers. --- diff --git a/samples/cpp/kmeans.cpp b/samples/cpp/kmeans.cpp index b742112..19e9983 100644 --- 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++ )