I wrote a tool that explores different ways to cluster in the RGB space - https://github.com/mattnedrich/palette-maker
It compares k-means, median-cut, and simple RGB space quantization.
mean-shift is great, but it is unbelievably slow (n^2)
It compares k-means, median-cut, and simple RGB space quantization.
mean-shift is great, but it is unbelievably slow (n^2)
See: https://home.cscamm.umd.edu/programs/fam04/fgt_duraiswami_fa... (PDF file)