News for hackers. Stuff that matters.
Re:K-Means Clustering by derwiki on Friday January 12, 2024 @08:59PM (#38976642)
Used it in college to downscale an X color image to Y number of colors. Sure, Photoshop does it, but it was informative to do it manually.
Re:K-Means Clustering by refulgentis on Friday January 12, 2024 @09:18PM (#38976728)
Google's Material You uses this to initiate color theming

(n.b. Celebi's, note usage of Lab / notHSL, respect Cartesian / polar nature of inputs / outputs, and ask for high-K, 128 is what we went with but it's arbitrary. Can get away with as few as 32 if you're ex. Doing brand color from favicon)

Re:K-Means Clustering by girvo on Friday January 12, 2024 @09:50PM (#38976882)
Ooh this is a much nicer approach than the kind of brute force approach we took at work for theme gen