Skip to content

Commit

Permalink
Removed unecessary initialisation of Mat centers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nghiaho12 committed Jan 9, 2014
1 parent 601b7d1 commit bf49945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/cpp/kmeans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
Expand Down

0 comments on commit bf49945

Please sign in to comment.