colour.quality.cri Module

Colour Rendering Index

Defines colour rendering index computation objects:

References

[1]Ohno, Y., & Davis, W. (2008). NIST CQS simulation 7.4. Retrieved from http://cie2.nist.gov/TC1-69/NIST CQS simulation 7.4.xls
class colour.quality.cri.TCS_ColorimetryData[source]

Bases: colour.quality.cri.TCS_ColorimetryData

Defines the the class holding test colour samples colorimetry data.

class colour.quality.cri.TCS_ColourQualityScaleData[source]

Bases: colour.quality.cri.TCS_ColourQualityScaleData

Defines the the class holding test colour samples colour rendering index data.

colour.quality.cri.colour_rendering_index(spd_test, additional_data=False)[source]

Returns the colour rendering index \(Q_a\) of given spectral power distribution.

Parameters:
  • spd_test (SpectralPowerDistribution) – Test spectral power distribution.
  • additional_data (bool, optional) – Output additional data.
Returns:

Colour rendering index.

Return type:

numeric or CRI_Specification

Examples

>>> from colour import ILLUMINANTS_RELATIVE_SPDS
>>> spd = ILLUMINANTS_RELATIVE_SPDS.get('F2')
>>> colour_rendering_index(spd)  
64.1507331...