Convert RGB to CIEXYZ
Description
R, G, and B give the levels of red, green and blue as values in the interval [0., 1.]. XN, YN, and ZN allow to specify additional CIE chromaticities to specify a specific white point.
Usage
colorlib.RGB_to_XYZ(R, G, B, XN=None, YN=None,
ZN=None)
Arguments
-
Rnumpy.ndarray -
Intensities for red (
[0., 1.]). -
Gnumpy.ndarray -
Intensities for green (
[0., 1.]). -
Bnumpy.ndarray -
Intensities for blue (
[0., 1.]). -
XNNone, numpy.ndarray -
Chromaticity of the white point. If of length
1, the white point specification will be recycled if needed. When not specified (allNone) a default white point is used. -
YN -
See
XN. -
ZN -
See
XN.
Return
list: Returns corresponding coordinates of CIE chromaticities, a list of numpy.ndarrays of the same length as the inputs ([X, Y, Z]).