luox-app / luox

Code base for the luox platform
https://luox.app/
GNU General Public License v3.0
15 stars 11 forks source link

Add colour rendering index Ra to Explore light view #3

Closed mudge closed 4 years ago

mudge commented 4 years ago

Trello: https://trello.com/c/oLacxYGL/27-implement-standard-colour-rendering-metrics

Colour rendering refers to how a set of samples looks under a specific light source. For example, when you buy light bulbs, oftentimes, they specify the CRI on the box. It's typically between 70 and 100. 100 means that the light bulb makes colours appears as if they're under daylight.

There are two main colour rendering metrics: 1) Colour rendering index Ra, following publication CIE 13.3 1995 [https://en.wikipedia.org/wiki/Color_rendering_index] 2) Colour fidelity index Rf, following publication CIE224-2017

Both are similar in that they calculate the appearance of a sample under the illuminant in question with a daylight or a black-body illuminant of the same colour.

This PR implements the first metric: Colour rendering index Ra following CIE 13.3 1995.

Note this will only appear on the Explore view and only if the user uploads their spectral power distribution with a wavelength interval of 5 nm.