Comment

Comment by refulgentis

Highly recommend Celebi's K-Means, weighted square means.

It feeds the results from a box cutting quantizer (Wu) into K-Means, giving you deterministic initial clusters and deterministic results. It leverages CIELAB distance to avoid a bunch of computation. I used it for Material 3's dynamic color and it was awesome as it enabled higher cluster counts.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton