Y
Hacker News
new
|
ask
|
show
|
jobs
by
isani
5146 days ago
K-means clustering gives you a set of centroids which are the calculated means of each cluster. If you only want actually occurring colors, just look up the color closest to each centroid.