colour.matrix_cvd_Machado2009

colour.matrix_cvd_Machado2009(deficiency: Union[Literal['Deuteranomaly', 'Protanomaly', 'Tritanomaly'], str], severity: float) numpy.ndarray[source]

Compute Machado et al. (2009) CVD matrix for given deficiency and severity using the pre-computed matrices dataset.

Parameters
  • deficiency (Union[Literal['Deuteranomaly', 'Protanomaly', 'Tritanomaly'], str]) – 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 (float) – Severity of the colour vision deficiency in domain [0, 1].

Returns

CVD matrix.

Return type

numpy.ndarray

References

[Colblindorb], [Colblindora], [Colblindorc], [MOF09]

Examples

>>> matrix_cvd_Machado2009('Protanomaly', 0.15)  
array([[ 0.7869875...,  0.2694875..., -0.0564735...],
       [ 0.0431695...,  0.933774 ...,  0.023058 ...],
       [-0.004238 ..., -0.0024515...,  1.0066895...]])