-
A while ago I saw @nick-shaw has replied in this forum that colour-science git repo provides several nice features such as In this forum, Pepijn Klijs mentioned that the LightSpace tool provides a nice GUI to convert the RGB values to the nits value. Are there any equivalent function provided by colour-science to do this RGB to nits conversion? Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Taking an example 10 bit RGB triple, [ 123, 456, 789 ] you would use the following code:
The luminance is the Y of XYZ, so the second component above, which is 106.9 nits in this example. |
Beta Was this translation helpful? Give feedback.
-
What a nice library, brilliant! Many thanks! |
Beta Was this translation helpful? Give feedback.
-
Add |
Beta Was this translation helpful? Give feedback.
Taking an example 10 bit RGB triple, [ 123, 456, 789 ] you would use the following code:
The luminance is the Y of XYZ, so the second component above, which is 106.9 nits in this example.