colour.primaries_whitepoint#

colour.primaries_whitepoint(npm: ArrayLike) Tuple[NDArrayFloat, NDArrayFloat][source]#

Compute the primaries and whitepoint \(xy\) chromaticity coordinates using given Normalised Primary Matrix (NPM).

Parameters:

npm (ArrayLike) – Normalised Primary Matrix.

Returns:

Primaries and whitepoint \(xy\) chromaticity coordinates.

Return type:

tuple

References

[Tri15]

Examples

>>> npm = np.array(
...     [
...         [9.52552396e-01, 0.00000000e00, 9.36786317e-05],
...         [3.43966450e-01, 7.28166097e-01, -7.21325464e-02],
...         [0.00000000e00, 0.00000000e00, 1.00882518e00],
...     ]
... )
>>> p, w = primaries_whitepoint(npm)
>>> p  
array([[  7.3470000...e-01,   2.6530000...e-01],
       [  0.0000000...e+00,   1.0000000...e+00],
       [  1.0000000...e-04,  -7.7000000...e-02]])
>>> w  
array([ 0.32168,  0.33767])