okaneco / kmeans-colors

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

Fix bugs introduced by switch to kmeans++, update documentation, bump to 0.3.2 #23

Closed okaneco closed 4 years ago

okaneco commented 4 years ago

Possible divide by zero if buffer is filled with one value. Add assert that buffer length is greater than 0. Update documentation to remove references to pre-optimized settings. Reduce convergence factor for Lab to 5.0 for better results.