Finding a Photo's Main Colour in Swift: Why the Average Lies, and k-means in Lab Doesn't
Here's a task that sounds like a one-liner: given a photo, return its main colour. It comes up in my iPhone app, which turns a photo into a colour card, and the obvious one-liner gives the wrong answe