colour.colour_rendering_index#

colour.colour_rendering_index(sd_test: SpectralDistribution, additional_data: Literal[False] = False, method: Literal['CIE 1995', 'CIE 2024'] | str = 'CIE 1995') float[source]#
colour.colour_rendering_index(sd_test: SpectralDistribution, additional_data: Literal[True], method: Literal['CIE 1995', 'CIE 2024'] | str = 'CIE 1995') ColourRendering_Specification_CRI
colour.colour_rendering_index(sd_test: MultiSpectralDistributions, additional_data: Literal[False] = False, method: Literal['CIE 1995', 'CIE 2024'] | str = 'CIE 1995') NDArrayFloat

Compute the Colour Rendering Index (CRI) \(Q_a\) of the specified spectral distribution.

Parameters:
Returns:

Colour Rendering Index (CRI).

Return type:

float, numpy.ndarray or colour.quality.ColourRendering_Specification_CRI

References

[OD08]

Examples

>>> from colour import SDS_ILLUMINANTS
>>> sd = SDS_ILLUMINANTS["FL2"]
>>> colour_rendering_index(sd)
np.float64(64.2337241...)