colour.Hunter_Lab_to_XYZ

colour.Hunter_Lab_to_XYZ(Lab, XYZ_n=array([ 96.38, 100., 82.45]), K_ab=array([ 173.51, 58.48]))[source]

Converts from Hunter L,a,b colour scale to CIE XYZ tristimulus values.

Parameters:
  • Lab (array_like) – Hunter L,a,b colour scale array.
  • XYZ_n (array_like, optional) – Reference illuminant tristimulus values.
  • K_ab (array_like, optional) – Reference illuminant chromaticity coefficients, if K_ab is set to None it will be computed using colour.XYZ_to_K_ab_HunterLab1966().
Returns:

CIE XYZ tristimulus values.

Return type:

ndarray

Notes

  • Input Lightness \(L^*\) is in domain [0, 100].
  • Input CIE XYZ and reference illuminant tristimulus values are in domain [0, 100].
  • Output CIE XYZ tristimulus values are in range [0, 100].

References

Examples

>>> Lab = np.array([31.74901573, -15.11462629, -2.78660758])
>>> D50 = HUNTERLAB_ILLUMINANTS[
...     'CIE 1931 2 Degree Standard Observer']['D50']
>>> Hunter_Lab_to_XYZ(Lab, D50.XYZ_n, D50.K_ab)   
array([  7.049534,  10.08    ,   9.558313])