Convert CIEXYZ to CIELAB

Description

X, Y, and Z specify the values in the three coordinates of the CIELAB color space, XN, YN, and ZN allow to specify additional CIE chromaticities to specify a specific white point.

Usage

colorlib.XYZ_to_LAB(X, Y, Z, XN=None, YN=None,
ZN=None)

Arguments

Xnumpy.ndarray
Values for the X dimension.
Ynumpy.ndarray
Values for the Y dimension.
Znumpy.ndarray
Values for the Z dimension.
XNNone, numpy.ndarray
Chromaticity of the white point. If of length 1, the white point specification will be recycled if needed. When not specified (all None) a default white point is used.
YN
See XN.
ZN
See XN.

Return

list: Returns corresponding coordinates of CIE chromaticities as a list of numpy.ndarrays of the same length as the inputs ([L, A, B]).