colour.colour_fidelity_index

colour.colour_fidelity_index(sd_test, additional_data=False, method='CIE 2017')[source]

Returns the Colour Fidelity Index (CFI) \(R_f\) of given spectral distribution using given method.

Parameters
  • sd_test (SpectralDistribution) – Test spectral distribution.

  • additional_data (bool, optional) – Whether to output additional data.

  • method (unicode, optional) – {‘CIE 2017’, ‘ANSI/IES TM-30-18’}, Computation method.

Returns

Colour Fidelity Index (CFI) \(R_f\).

Return type

numeric or ColourRendering_Specification_CIE2017 or ColourQuality_Specification_ANSIIESTM3018

References

[CIET19017], [ANSIIESCCommittee18]

Examples

>>> from colour.colorimetry import SDS_ILLUMINANTS
>>> sd = SDS_ILLUMINANTS['FL2']
>>> colour_fidelity_index(sd)  
70.1208254...