title: What's the best way to analyse the colours in an image (Java)?
body: <p>I don't have much experience doing image analysis so I thought I'd ask more enlightened individuals :)</p>
  
  <p>Basically what I want to do is analyse an image and work out what the most common colours are (these will be averages obviously).</p>
  
  <p>Does anybody know of an effective way to do this? If at all possible I'd like to avoid using any third party libraries, but everything will be considered at least.</p>
  
  <p>Like I said, I don't have much experience with image analysis so please be patient with me if I don't understand your answers properly!</p>
  
  <p>I've tried Google but there doesn't seem to be anything resembling what I'm after. Maybe my Google-Fu just isn't good enough today.</p>
  
  <p>I'd really appreciate any pointers you guys could give!</p>
  
  <p>Thanks,
  Tom</p>