colour.matrix_cvd_Machado2009#
- colour.matrix_cvd_Machado2009(deficiency: Literal['Deuteranomaly', 'Protanomaly', 'Tritanomaly'] | str, severity: float) NDArrayFloat[source]#
Compute the Machado et al. (2009) colour vision deficiency matrix for the specified deficiency and severity using pre-computed matrices.
- Parameters:
deficiency (Literal['Deuteranomaly', 'Protanomaly', 'Tritanomaly'] | str) –
Colour vision deficiency type:
Protanomaly: Defective long-wavelength cones (L-cones) with reduced sensitivity. Complete absence of L-cones is Protanopia or red-dichromacy.
Deuteranomaly: Defective medium-wavelength cones (M-cones) with peak sensitivity shifted towards red-sensitive cones. Complete absence of M-cones is Deuteranopia.
Tritanomaly: Defective short-wavelength cones (S-cones), representing an alleviated form of blue-yellow colour blindness. Complete absence of S-cones is Tritanopia.
severity (float) – Severity of the colour vision deficiency in domain [0, 1].
- Returns:
Colour vision deficiency matrix.
- Return type:
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...]])