Image - Expanded Area Max/Min

SaintTheo's picture

Is there a way to return a floating point max/min/average of an image area? I've used the built-in ones, but they don't seem to recognize that Quartz Composer is capable of using floating-point values from well beyond the range of [0,1] in both directions.

Basically, I'm trying to scale down an image with a maximum component of over 1, and a minimum component of less than 0. I'm doing this by the formula "Channel = (Channel-Min)/(Max-Min)," but I need accurate Max and Min values. Core Image is limited to parallel processing, Java can't read image pixel values (from what I can tell), and OpenCL just scares me (i've tried to get the converter to change the image into a structure, but that never seems to work...).