Coverage for characterisation/datasets/displays/lcd/primaries.py: 0%

14 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-11-16 22:49 +1300

1""" 

2Primaries of LCD Displays 

3========================= 

4 

5Define the primaries multi-spectral distributions of *LCD* displays. 

6 

7Each *LCD* display data is in the form of a *dict* of 

8:class:`colour.characterisation.RGB_DisplayPrimaries` classes as follows:: 

9 

10 { 

11 'name': RGB_DisplayPrimaries, 

12 ..., 

13 'name': RGB_DisplayPrimaries 

14 } 

15 

16The following *LCD* displays are available: 

17 

18- Apple Studio Display 

19 

20References 

21---------- 

22- :cite:`Fairchild1998b` : Fairchild, M., & Wyble, D. (1998). Colorimetric 

23 Characterization of The Apple Studio Display (flat panel LCD) (p. 22). 

24 http://scholarworks.rit.edu/cgi/viewcontent.cgi?article=1922&\ 

25context=article 

26- :cite:`Machado2010a` : Machado, Gustavo Mello. (2010). A model for 

27 simulation of color vision deficiency and a color contrast enhancement 

28 technique for dichromats. (pp. 1-94). 

29 http://www.lume.ufrgs.br/handle/10183/26950 

30""" 

31 

32from __future__ import annotations 

33 

34from functools import partial 

35 

36from colour.characterisation import RGB_DisplayPrimaries 

37from colour.utilities import LazyCanonicalMapping 

38 

39__author__ = "Colour Developers" 

40__copyright__ = "Copyright 2013 Colour Developers" 

41__license__ = "BSD-3-Clause - https://opensource.org/licenses/BSD-3-Clause" 

42__maintainer__ = "Colour Developers" 

43__email__ = "colour-developers@colour-science.org" 

44__status__ = "Production" 

45 

46__all__ = [ 

47 "DATA_DISPLAY_PRIMARIES_LCD", 

48 "MSDS_DISPLAY_PRIMARIES_LCD", 

49] 

50 

51DATA_DISPLAY_PRIMARIES_LCD: dict = { 

52 "Apple Studio Display": { 

53 380: (0.0000, 0.0000, 0.0000), 

54 385: (0.0000, 0.0000, 0.0000), 

55 390: (0.0000, 0.0000, 0.0000), 

56 395: (0.0000, 0.0000, 0.0000), 

57 400: (0.0000, 0.0000, 0.0040), 

58 405: (0.0000, 0.0000, 0.0040), 

59 410: (0.0000, 0.0000, 0.0079), 

60 415: (0.0000, 0.0000, 0.0238), 

61 420: (0.0000, 0.0000, 0.0516), 

62 425: (0.0000, 0.0000, 0.0992), 

63 430: (0.0000, 0.0040, 0.1865), 

64 435: (0.0000, 0.0119, 0.3929), 

65 440: (0.0040, 0.0000, 0.2540), 

66 445: (0.0040, 0.0119, 0.2738), 

67 450: (0.0000, 0.0119, 0.3016), 

68 455: (0.0040, 0.0079, 0.3016), 

69 460: (0.0000, 0.0198, 0.2976), 

70 465: (0.0040, 0.0238, 0.2698), 

71 470: (0.0040, 0.0317, 0.2460), 

72 475: (0.0040, 0.0357, 0.2103), 

73 480: (0.0040, 0.0516, 0.2460), 

74 485: (0.0040, 0.0873, 0.3929), 

75 490: (0.0040, 0.0873, 0.3333), 

76 495: (0.0040, 0.0675, 0.2024), 

77 500: (0.0040, 0.0437, 0.0913), 

78 505: (0.0000, 0.0357, 0.0437), 

79 510: (0.0000, 0.0317, 0.0238), 

80 515: (0.0000, 0.0317, 0.0119), 

81 520: (0.0000, 0.0238, 0.0079), 

82 525: (0.0000, 0.0238, 0.0040), 

83 530: (0.0000, 0.0317, 0.0040), 

84 535: (0.0000, 0.1944, 0.0159), 

85 540: (0.0000, 1.5794, 0.0794), 

86 545: (0.0437, 1.4048, 0.0754), 

87 550: (0.0317, 0.4127, 0.0079), 

88 555: (0.0040, 0.0952, 0.0040), 

89 560: (0.0000, 0.0317, 0.0000), 

90 565: (0.0000, 0.0159, 0.0000), 

91 570: (0.0000, 0.0079, 0.0000), 

92 575: (0.0000, 0.0952, 0.0000), 

93 580: (0.0040, 0.1429, 0.0000), 

94 585: (0.0198, 0.1468, 0.0000), 

95 590: (0.0635, 0.0754, 0.0000), 

96 595: (0.0873, 0.0357, 0.0000), 

97 600: (0.0635, 0.0159, 0.0000), 

98 605: (0.0714, 0.0040, 0.0000), 

99 610: (0.2619, 0.0476, 0.0000), 

100 615: (1.0714, 0.0159, 0.0000), 

101 620: (0.4881, 0.0040, 0.0000), 

102 625: (0.3532, 0.0040, 0.0000), 

103 630: (0.2103, 0.0000, 0.0000), 

104 635: (0.1944, 0.0000, 0.0000), 

105 640: (0.0556, 0.0000, 0.0000), 

106 645: (0.0238, 0.0000, 0.0000), 

107 650: (0.0476, 0.0000, 0.0000), 

108 655: (0.0675, 0.0000, 0.0000), 

109 660: (0.0238, 0.0000, 0.0000), 

110 665: (0.0397, 0.0040, 0.0000), 

111 670: (0.0397, 0.0040, 0.0000), 

112 675: (0.0278, 0.0000, 0.0000), 

113 680: (0.0278, 0.0000, 0.0000), 

114 685: (0.0317, 0.0000, 0.0000), 

115 690: (0.0317, 0.0000, 0.0000), 

116 695: (0.0198, 0.0000, 0.0000), 

117 700: (0.0159, 0.0000, 0.0000), 

118 705: (0.0119, 0.0000, 0.0000), 

119 710: (0.0952, 0.0040, 0.0000), 

120 715: (0.0952, 0.0000, 0.0000), 

121 720: (0.0159, 0.0000, 0.0000), 

122 725: (0.0040, 0.0000, 0.0000), 

123 730: (0.0000, 0.0000, 0.0000), 

124 735: (0.0000, 0.0000, 0.0000), 

125 740: (0.0000, 0.0000, 0.0000), 

126 745: (0.0000, 0.0000, 0.0000), 

127 750: (0.0000, 0.0000, 0.0000), 

128 755: (0.0000, 0.0000, 0.0000), 

129 760: (0.0000, 0.0000, 0.0000), 

130 765: (0.0000, 0.0000, 0.0000), 

131 770: (0.0000, 0.0000, 0.0000), 

132 775: (0.0000, 0.0119, 0.0000), 

133 780: (0.0000, 0.0000, 0.0000), 

134 } 

135} 

136 

137MSDS_DISPLAY_PRIMARIES_LCD: LazyCanonicalMapping = LazyCanonicalMapping( 

138 { 

139 "Apple Studio Display": partial( 

140 RGB_DisplayPrimaries, 

141 DATA_DISPLAY_PRIMARIES_LCD["Apple Studio Display"], 

142 name="Apple Studio Display", 

143 ) 

144 } 

145) 

146""" 

147Primaries multi-spectral distributions of *LCD* displays. 

148 

149References 

150---------- 

151:cite:`Fairchild1998b`, :cite:`Machado2010a` 

152"""