colour.XYZ_to_ProLab#

colour.XYZ_to_ProLab(XYZ: ArrayLike, illuminant: ArrayLike = CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D65']) NDArrayFloat[source]#

Convert from CIE XYZ tristimulus values to ProLab colourspace.

Parameters:
  • XYZ (ArrayLike) – CIE XYZ tristimulus values.

  • illuminant (ArrayLike) – Reference illuminant CIE xy chromaticity coordinates or CIE xyY colourspace array.

Returns:

ProLab colourspace array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

XYZ

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

ProLab

L : [0, 1]

a : [-1, 1]

b : [-1, 1]

L : [0, 1]

a : [-1, 1]

b : [-1, 1]

References

[KSNN21]

Examples

>>> Lab = np.array([0.51634019, 0.15469500, 0.06289579])
>>> XYZ_to_ProLab(Lab)  
array([  59.846628... ,  115.039635... ,   20.1251035...])