Coverage for characterisation/datasets/displays/crt/primaries.py: 0%
14 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-16 22:49 +1300
« prev ^ index » next coverage.py v7.11.0, created at 2025-11-16 22:49 +1300
1"""
2Primaries of CRT Displays
3=========================
5Define the primaries multi-spectral distributions of *CRT* displays.
7Each *CRT* display data is in the form of a *dict* of
8:class:`colour.characterisation.RGB_DisplayPrimaries` classes as follows::
10 {
11 'name': RGB_DisplayPrimaries,
12 ...,
13 'name': RGB_DisplayPrimaries
14 }
16The following *CRT* displays are available:
18- Typical CRT Brainard 1997
20References
21----------
22- :cite:`Machado2010a` : Machado, Gustavo Mello. (2010). A model for
23 simulation of color vision deficiency and a color contrast enhancement
24 technique for dichromats. (pp. 1-94).
25 http://www.lume.ufrgs.br/handle/10183/26950
26"""
28from __future__ import annotations
30from functools import partial
32from colour.characterisation import RGB_DisplayPrimaries
33from colour.utilities import LazyCanonicalMapping
35__author__ = "Colour Developers"
36__copyright__ = "Copyright 2013 Colour Developers"
37__license__ = "BSD-3-Clause - https://opensource.org/licenses/BSD-3-Clause"
38__maintainer__ = "Colour Developers"
39__email__ = "colour-developers@colour-science.org"
40__status__ = "Production"
42__all__ = [
43 "DATA_DISPLAY_PRIMARIES_CRT",
44 "MSDS_DISPLAY_PRIMARIES_CRT",
45]
47DATA_DISPLAY_PRIMARIES_CRT: dict = {
48 "Typical CRT Brainard 1997": {
49 380.0: (0.0025, 0.0018, 0.0219),
50 385.0: (0.0017, 0.0016, 0.0336),
51 390.0: (0.0017, 0.0020, 0.0524),
52 395.0: (0.0011, 0.0021, 0.0785),
53 400.0: (0.0017, 0.0025, 0.1130),
54 405.0: (0.0028, 0.0030, 0.1624),
55 410.0: (0.0037, 0.0043, 0.2312),
56 415.0: (0.0046, 0.0059, 0.3214),
57 420.0: (0.0064, 0.0079, 0.4263),
58 425.0: (0.0079, 0.0104, 0.5365),
59 430.0: (0.0094, 0.0126, 0.6296),
60 435.0: (0.0105, 0.0147, 0.6994),
61 440.0: (0.0113, 0.0170, 0.7470),
62 445.0: (0.0115, 0.0191, 0.7654),
63 450.0: (0.0113, 0.0220, 0.7519),
64 455.0: (0.0113, 0.0267, 0.7151),
65 460.0: (0.0115, 0.0340, 0.6619),
66 465.0: (0.0164, 0.0462, 0.5955),
67 470.0: (0.0162, 0.0649, 0.5177),
68 475.0: (0.0120, 0.0936, 0.4327),
69 480.0: (0.0091, 0.1345, 0.3507),
70 485.0: (0.0119, 0.1862, 0.2849),
71 490.0: (0.0174, 0.2485, 0.2278),
72 495.0: (0.0218, 0.3190, 0.1809),
73 500.0: (0.0130, 0.3964, 0.1408),
74 505.0: (0.0123, 0.4691, 0.1084),
75 510.0: (0.0260, 0.5305, 0.0855),
76 515.0: (0.0242, 0.5826, 0.0676),
77 520.0: (0.0125, 0.6195, 0.0537),
78 525.0: (0.0119, 0.6386, 0.0422),
79 530.0: (0.0201, 0.6414, 0.0341),
80 535.0: (0.0596, 0.6348, 0.0284),
81 540.0: (0.0647, 0.6189, 0.0238),
82 545.0: (0.0251, 0.5932, 0.0197),
83 550.0: (0.0248, 0.5562, 0.0165),
84 555.0: (0.0325, 0.5143, 0.0143),
85 560.0: (0.0199, 0.4606, 0.0119),
86 565.0: (0.0161, 0.3993, 0.0099),
87 570.0: (0.0128, 0.3297, 0.0079),
88 575.0: (0.0217, 0.2719, 0.0065),
89 580.0: (0.0693, 0.2214, 0.0057),
90 585.0: (0.1220, 0.1769, 0.0051),
91 590.0: (0.1861, 0.1407, 0.0047),
92 595.0: (0.2173, 0.1155, 0.0043),
93 600.0: (0.0777, 0.0938, 0.0029),
94 605.0: (0.0531, 0.0759, 0.0023),
95 610.0: (0.2434, 0.0614, 0.0036),
96 615.0: (0.5812, 0.0522, 0.0061),
97 620.0: (0.9354, 0.0455, 0.0088),
98 625.0: (1.6054, 0.0437, 0.0141),
99 630.0: (0.6464, 0.0278, 0.0060),
100 635.0: (0.1100, 0.0180, 0.0015),
101 640.0: (0.0322, 0.0136, 0.0008),
102 645.0: (0.0207, 0.0107, 0.0006),
103 650.0: (0.0194, 0.0085, 0.0006),
104 655.0: (0.0196, 0.0067, 0.0007),
105 660.0: (0.0166, 0.0055, 0.0006),
106 665.0: (0.0173, 0.0044, 0.0005),
107 670.0: (0.0220, 0.0039, 0.0006),
108 675.0: (0.0186, 0.0033, 0.0005),
109 680.0: (0.0377, 0.0030, 0.0007),
110 685.0: (0.0782, 0.0028, 0.0010),
111 690.0: (0.0642, 0.0023, 0.0010),
112 695.0: (0.1214, 0.0028, 0.0016),
113 700.0: (0.7169, 0.0078, 0.0060),
114 705.0: (1.1098, 0.0113, 0.0094),
115 710.0: (0.3106, 0.0039, 0.0030),
116 715.0: (0.0241, 0.0011, 0.0007),
117 720.0: (0.0180, 0.0009, 0.0009),
118 725.0: (0.0149, 0.0008, 0.0008),
119 730.0: (0.0108, 0.0009, 0.0011),
120 735.0: (0.0097, 0.0011, 0.0010),
121 740.0: (0.0091, 0.0009, 0.0010),
122 745.0: (0.0093, 0.0010, 0.0012),
123 750.0: (0.0083, 0.0011, 0.0013),
124 755.0: (0.0073, 0.0013, 0.0012),
125 760.0: (0.0081, 0.0015, 0.0016),
126 765.0: (0.0067, 0.0018, 0.0015),
127 770.0: (0.0070, 0.0021, 0.0028),
128 775.0: (0.0073, 0.0015, 0.0046),
129 780.0: (0.0066, 0.0018, 0.0058),
130 }
131}
133MSDS_DISPLAY_PRIMARIES_CRT: LazyCanonicalMapping = LazyCanonicalMapping(
134 {
135 "Typical CRT Brainard 1997": partial(
136 RGB_DisplayPrimaries,
137 DATA_DISPLAY_PRIMARIES_CRT["Typical CRT Brainard 1997"],
138 name="Typical CRT Brainard 1997",
139 )
140 }
141)
142"""
143Primaries multi-spectral distributions of *CRT* displays.
145References
146----------
147:cite:`Machado2010a`
148"""