Finds centers of clusters and groups input samples around the clusters. The function kmeans implements a k-means algorithm that finds the centers of cluster_count clusters and groups the input samples around the clusters. As an output, labels_i contains
(Mat data, int K, Mat bestLabels, TermCriteria criteria, int attempts, int flags, Mat centers)