title: Find the most representative color in a grid of pixels
body: <p>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?</p>
  
  <p><a href="http://www.stan.mx/images/stackoverflowPixels.gif" rel="nofollow noreferrer">alt text http://www.stan.mx/images/stackoverflowPixels.gif</a></p>