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
-
R
numpy.ndarray
-
Intensities for red (
[0., 1.]
). -
G
numpy.ndarray
-
Intensities for green (
[0., 1.]
). -
B
numpy.ndarray
-
Intensities for blue (
[0., 1.]
). -
XN
None, 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.ndarray
s of the same length as the inputs ([X, Y, Z]
).