colour.primaries_whitepoint¶
-
colour.
primaries_whitepoint
(npm)[source]¶ Returns the primaries and whitepoint \(xy\) chromaticity coordinates using given normalised primary matrix.
Parameters: npm (array_like, (3, 3)) – Normalised primary matrix. Returns: Primaries and whitepoint \(xy\) chromaticity coordinates. Return type: tuple References
Examples
>>> npm = np.array([[9.52552396e-01, 0.00000000e+00, 9.36786317e-05], ... [3.43966450e-01, 7.28166097e-01, -7.21325464e-02], ... [0.00000000e+00, 0.00000000e+00, 1.00882518e+00]]) >>> p, w = primaries_whitepoint(npm) >>> p # doctest: +ELLIPSIS 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 # doctest: +ELLIPSIS array([ 0.32168, 0.33767])