3 ms·
> How are the buckets defined? How are the representatives selected? There are probably a dozen different reasonable implementation choices you could make. Diff
by reaperman 3y ago
> How are the buckets defined? How are the representatives selected? There are probably a dozen different reasonable implementation choices you could make. Different choices will all give slightly different (or even very different) outputs.
I've done this using k-nearest neighbors to cluster colors of an image into n "modes". I was building a toy app to take a photo with your phone to select a color. Like a really, really dumb color wheel UI basically.
In my case, using something like CIELAB or Oklab also helped, to better cluster colors into human perception bins.