Why does the ICE "Color to Brightness" node have weird weight values? (0.3, 0.59, 0.11)

767 views
Skip to first unread message

Alan Fregtman

unread,
Dec 15, 2011, 10:03:15 PM12/15/11
to XSI Mailing List
Hey guys,


I always wonder why the "Color to Brightness" ICE node comes with the
default RGB weight values of 0.3, 0.59 and 0.11.

Is there any reason it's not 1,1,1? Who came up with these seemingly
arbitrary numbers and why are they so?


Cheers,

-- Alan

Ben Houston

unread,
Dec 15, 2011, 10:06:24 PM12/15/11
to soft...@listproc.autodesk.com
Perceived luminance, see the first answer here:

http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color

-ben

--
Best regards,
Ben Houston
Voice: 613-762-4113 Skype: ben.exocortex Twitter: @exocortexcom
Exocortex - Passionate CG Software Professionals.

Alokgandhi

unread,
Dec 16, 2011, 12:10:12 AM12/16/11
to soft...@listproc.autodesk.com
These are settings for 'perceived luminance'. Human eye is most sensitive to green color, then to red and least to blue. What that means is that for a given RGB value, the brightness or luminance is calculated as: 0.3 x R + 0.59 x G + 0.11 x B.

Thereby we assign weights to the various color components based on human eye model. You can easily see that 0.3 + 0.59 + 0.11 = 1. So for any given color space like 0 - 255, for any given RGB value, the brightness will be from 0 - 255 as well.

These numbers are not at all arbitrary as might appear. In fact the this model was used for Television as well. There are other few formulae as well having different breakup of components. But I guess this is the most preferred one.

Sent from my iPad

Reply all
Reply to author
Forward
0 new messages