I’m looking for an idea for getting the most representative color in a grid of pixels. There is any algorithm for this? I’m not sure if the most representative is one of the colors appearing in the grid of is the average af all the pixels better?
Share
Have a look at some color quantization algorithms. I found them to be the most effective method to generate palettes from photographs. Also, most image manipulation/processing libraries should have some fast quantization built in.