Flash 10’s got this new method on the BitmapData object called “get histogram()”, which spits out a lot of neat data about the image in question. I’m particularly interested in finding the dimmest and brightest values for the image’s blue channel, which I’m using for some image processing / computer vision stuff. Once I find the two extremes on the range of the blue channel, I can throw them into a ColorTransform object and normalize the image.
Problem is, get histogram() does a lot of work that I don’t need it to, and it’s really expensive. I’d like to find the information I need in some other, faster way.
I’m going to try iterating over the image and doing the computations myself, but I feel like this will be even slower. Does anyone have any other ideas?