colour.cvd_matrix_Machado2009¶
-
colour.
cvd_matrix_Machado2009
(deficiency, severity)[source]¶ Computes Machado et al. (2009) CVD matrix for given deficiency and severity using the pre-computed matrices dataset.
- Parameters
deficiency (unicode) – {‘Protanomaly’, ‘Deuteranomaly’, ‘Tritanomaly’} Colour blindness / vision deficiency types : - Protanomaly : defective long-wavelength cones (L-cones). The complete absence of L-cones is known as Protanopia or red-dichromacy. - Deuteranomaly : defective medium-wavelength cones (M-cones) with peak of sensitivity moved towards the red sensitive cones. The complete absence of M-cones is known as Deuteranopia. - Tritanomaly : defective short-wavelength cones (S-cones), an alleviated form of blue-yellow color blindness. The complete absence of S-cones is known as Tritanopia.
severity (numeric) – Severity of the colour vision deficiency in domain [0, 1].
- Returns
CVD matrix.
- Return type
ndarray
References
[Colb], [Cola], [Colc], [MOF09]
Examples
>>> cvd_matrix_Machado2009('Protanomaly', 0.15) array([[ 0.7869875..., 0.2694875..., -0.0564735...], [ 0.0431695..., 0.933774 ..., 0.023058 ...], [-0.004238 ..., -0.0024515..., 1.0066895...]])