okaneco / kmeans-colors

k-means clustering library and binary to find dominant colors in images
Apache License 2.0
132 stars 9 forks source link

Move `map_indices_to_centroids` to its own trait #11

Closed okaneco closed 4 years ago

okaneco commented 4 years ago

This function isn't necessary for kmeans calculation and is more of a helper trait for the color implementations. That shouldn't slow down people from implementing Calculate.