band-tracker-app icon indicating copy to clipboard operation
band-tracker-app copied to clipboard

Average artwork color improvements

Open michaldivis opened this issue 2 years ago • 1 comments

The average color algorithm might be improved to favor distinct colors over shades of grey.

Favor distinct colors over shades of grey The current implementation simply returns the average color (RGB values) of all the pixels. The improved version might favor colors with greater RGB value differences. For example, favor (255, 135, 40) over (188, 185, 182).

Pick the most used color instead of averaging all colors The current implementation simply returns the average color (RGB values) of all the pixels. An alternative approach might be to find what colors are contained in the artwork (or color groups) and then pick the most used one. For example, an artwork might be mostly red with a few yellow elements and one tiny blue element. Instead of averaging those out, we might only use red as its the most used color in the artwork.

michaldivis avatar Dec 13 '22 09:12 michaldivis