View Full Version : Calculating luminance

12 December 2005, 01:24 PM
Hey, what's the best or correct way to calculate an image's luminance, effectively converting it to grayscale, but preserving its relative brightness?

12 December 2005, 02:56 PM
Use the weighted sum of the colour values...

L = 0.3R + 0.59G + 0.11B

Or are you looking for something more sophisticated?

CGTalk Moderation
12 December 2005, 02:57 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.