title: Processing image to get the accent color
body: <p>I want to get the most used color from image. </p>
  
  <p>In most used color I dont mean specific pixel, I mean a most used color RANGE.</p>
  
  <p>For example if there is an 2x3 pixels image and two pixels are f00(red) and the rest for are: 0b0, 0c0, 0d0, 0e0, 0f0 (Kind of green), I should get 0d0 (average of greens) and not the F00 (red, because there are exactly 2 pixels of this color).
  I want to distinguish that kind of cases.
  How am I supposed to do it? 
  Or where can I find materials to learn how it can be done?
  Thanks.</p>