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

Mathematical question #60

Open ElvishScout opened 2 months ago

ElvishScout commented 2 months ago

Hi, I wrote a similar program in C++ for learning purposes: https://github.com/ElvishScout/color-scheme, I am wondering that is it mathematically correct to calculate the centroid of points by simply adding them up and divide by their size in Lab space, which is non-Euclidean? Thx.