colour.characterisation.white_balance_multipliers

colour.characterisation.white_balance_multipliers(sensitivities, illuminant)[source]

Computes the RGB white balance multipliers for given camera RGB spectral sensitivities and illuminant.

Parameters
Returns

RGB white balance multipliers.

Return type

ndarray

References

[DFI+17]

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']
>>> white_balance_multipliers(sensitivities, illuminant)
... 
array([ 2.3414154...,  1.        ,  1.5163375...])