title: How to get the Y-Coordinate of the cluster center?
body: <p>I read about the K-Means clustering available with OpenCV. The function returns the cluster labels, cluster centers and the overall compactness of the cluster.</p>
  
  <p>The centers are X-coordinates. How do I get the Y-Coordinates of the cluster center?</p>
  
  <p>This is what I did to cluster objects.</p>
  
  <pre><code>criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 10, 1.0)
  
  compactness,labels,centers = cv2.kmeans(np.float32(x_coord_list), 6, None, criteria, 10, cv2.KMEANS_RANDOM_CENTERS)
  </code></pre>
  
  <p>But it returns the centers as :</p>
  
  <pre><code>        [[646.8723  ]
       [111.409096]
       [803.1395  ]
       [495.14545 ]
       [235.57547 ]
       [349.85315 ]]
  </code></pre>
  
  <p>How could I get the Y-Coordinate?</p>