title: How to get dominant color from an image?
body: <p>I have an image with a car(only the car with a little background) in it. I need to find the color of the car. I tried getting the most frequent R, G, B values and combining them, but this may not guarantee the most frequent (R, G, B) pixel (can it?). I also tried making kmeans-clusters of (R, G, B) pixels and get the centroid of the biggest cluster. But I don't know what k to use. Which method do I use?</p>