PDA

View Full Version : Calculating luminance


arvid
12-16-2005, 12: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?

Carina
12-16-2005, 01: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-16-2005, 01: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.