So yesterday, I was chatting on a developer e-mail list about how you can use basic statistics to find the most prevalent color in a camera frame.
One thing led to another, which in my case meant sample code followed by -- hey, this is kind of cool. Maybe I should put it in App Store. (Thanks go to Roland Gröpmair, who provided me with the on-screen buttons you see on the screen shot.) Which then led to a flurry of coding, submission to app store, and chatting with some dev buddies on IRC afterwards about how I built this thing.
It works by sampling the live camera preview provided by the iPad 2's audio video framework. The centermost part of the image provides the data, which the app runs through some histogramming. It then selects the most statistically significant color from tha