Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determine the amount of white/brightness in an image



G'day all 

I have a id<QCPlugInInputImageSource> and I want to determine how much white or brightness is in the image.

I was thinking of changing it to a texture representation and using glReadPixels. Then looping over the retrieved pixels and individually seeing which ones are white.

But I have an hunch there is a better/easier way to do this, but googling isn't helping much.

Has anyone ever tried this?

Does anyone have any ideas?

Should I just continue with how I was going to do it?

Cheers

Lango
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.