colour.characterisation.normalise_illuminant#

colour.characterisation.normalise_illuminant(illuminant: colour.colorimetry.spectrum.SpectralDistribution, sensitivities: colour.characterisation.cameras.RGB_CameraSensitivities) colour.colorimetry.spectrum.SpectralDistribution[source]#

Normalise given illuminant with given camera RGB spectral sensitivities.

The multiplicative inverse scaling factor \(k\) is computed by multiplying the illuminant by the sensitivies channel with the maximum value.

Parameters
Returns

Normalised illuminant.

Return type

colour.SpectralDistribution

Examples

>>> path = os.path.join(
...     RESOURCES_DIRECTORY_RAWTOACES,
...     'CANON_EOS_5DMark_II_RGB_Sensitivities.csv')
>>> sensitivities = sds_and_msds_to_msds(
...     read_sds_from_csv_file(path).values())
>>> illuminant = SDS_ILLUMINANTS['D55']
>>> np.sum(illuminant.values)  
7276.1490000...
>>> np.sum(normalise_illuminant(illuminant, sensitivities).values)
... 
3.4390373...