Re:How the algorithm for coloring the iTunes song list works
by raverbashing on Wednesday July 03, 2013 @03:43AM
(#5983026)
I wouldn't pick the median of the dominant class for the BG, but rather from the borders (even though this could work)
for 4 you want that, picking from one of the colors of the album or a contrasting color if this is not available from the album
1. pick 500 random points from the album art
2. cluster them in 10 classes (k-means is an old, well understood algorithm)
3. pick the median point of dominant class for the bg
4. pick a contrasting color from a different cluster for the text