Coverage for models/rgb/datasets/ntsc.py: 0%

1"""

2 NTSC Colourspaces

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

4

5 Define the *NTSC* colourspaces:

6

7- :attr:`colour.models.RGB_COLOURSPACE_NTSC1953`.

8- :attr:`colour.models.RGB_COLOURSPACE_NTSC1987`.

9

10 References

11----------

12- :cite:`InternationalTelecommunicationUnion1998a` : International

13 Telecommunication Union. (1998). Recommendation ITU-R BT.470-6 -

14 CONVENTIONAL TELEVISION SYSTEMS (pp. 1-36).

15 http://www.itu.int/dms_pubrec/itu-r/rec/bt/\

16 R-REC-BT.470-6-199811-S!!PDF-E.pdf

17- :cite:`SocietyofMotionPictureandTelevisionEngineers2004a` : Society of

18 Motion Picture and Television Engineers. (2004). RP 145:2004: SMPTE C Color

19 Monitor Colorimetry. In RP 145:2004: Vol. RP 145:200. The Society of Motion

20 Picture and Television Engineers. doi:10.5594/S9781614821649

21"""

22

23 from __future__ import annotations

24

25 import typing

26

27 if typing.TYPE_CHECKING:

28 from colour.hints import NDArrayFloat

29

30 from colour.models.rgb import RGB_Colourspace

31 from colour.models.rgb.datasets.itur_bt_470 import (

32 CCS_WHITEPOINT_BT470_525,

33 MATRIX_BT470_525_TO_XYZ,

34 MATRIX_XYZ_TO_BT470_525,

35 PRIMARIES_BT470_525,

36 RGB_COLOURSPACE_BT470_525,

37 WHITEPOINT_NAME_BT470_525,

38)

39 from colour.models.rgb.datasets.smpte_c import (

40 CCS_WHITEPOINT_SMPTE_C,

41 MATRIX_SMPTE_C_TO_XYZ,

42 MATRIX_XYZ_TO_SMPTE_C,

43 PRIMARIES_SMPTE_C,

44 RGB_COLOURSPACE_SMPTE_C,

45 WHITEPOINT_NAME_SMPTE_C,

46)

47

48 __author__ = "Colour Developers"

49 __copyright__ = "Copyright 2013 Colour Developers"

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

51 __maintainer__ = "Colour Developers"

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

53 __status__ = "Production"

54

55 __all__ = [

56 "PRIMARIES_NTSC1953",

57 "WHITEPOINT_NAME_NTSC1953",

58 "CCS_WHITEPOINT_NTSC1953",

59 "MATRIX_NTSC1953_TO_XYZ",

60 "MATRIX_XYZ_TO_NTSC1953",

61 "RGB_COLOURSPACE_NTSC1953",

62 "PRIMARIES_NTSC1987",

63 "WHITEPOINT_NAME_NTSC1987",

64 "CCS_WHITEPOINT_NTSC1987",

65 "MATRIX_NTSC1987_TO_XYZ",

66 "MATRIX_XYZ_TO_NTSC1987",

67 "RGB_COLOURSPACE_NTSC1987",

68]

69

70 PRIMARIES_NTSC1953: NDArrayFloat = PRIMARIES_BT470_525

71"""*NTSC (1953)* colourspace primaries."""

72

73 WHITEPOINT_NAME_NTSC1953: str = WHITEPOINT_NAME_BT470_525

74"""*NTSC (1953)* colourspace whitepoint name."""

75

76 CCS_WHITEPOINT_NTSC1953: NDArrayFloat = CCS_WHITEPOINT_BT470_525

77"""*NTSC (1953)* colourspace whitepoint chromaticity coordinates."""

78

79 MATRIX_NTSC1953_TO_XYZ: NDArrayFloat = MATRIX_BT470_525_TO_XYZ

80"""*NTSC (1953)* colourspace to *CIE XYZ* tristimulus values matrix."""

81

82 MATRIX_XYZ_TO_NTSC1953: NDArrayFloat = MATRIX_XYZ_TO_BT470_525

83"""*CIE XYZ* tristimulus values to *NTSC (1953)* colourspace matrix."""

84

85 RGB_COLOURSPACE_NTSC1953: RGB_Colourspace = RGB_Colourspace(

86 "NTSC (1953)",

87 PRIMARIES_NTSC1953,

88 CCS_WHITEPOINT_NTSC1953,

89 WHITEPOINT_NAME_NTSC1953,

90 MATRIX_NTSC1953_TO_XYZ,

91 MATRIX_XYZ_TO_NTSC1953,

92 RGB_COLOURSPACE_BT470_525.cctf_encoding,

93 RGB_COLOURSPACE_BT470_525.cctf_decoding,

94)

95 RGB_COLOURSPACE_NTSC1953.__doc__ = """

96*NTSC (1953)* colourspace.

97

98 References

99----------

100:cite:`InternationalTelecommunicationUnion1998a`

101"""

102

103 PRIMARIES_NTSC1987: NDArrayFloat = PRIMARIES_SMPTE_C

104"""*NTSC (1987)* colourspace primaries."""

105

106 WHITEPOINT_NAME_NTSC1987: str = WHITEPOINT_NAME_SMPTE_C

107"""*NTSC (1987)* colourspace whitepoint name."""

108

109 CCS_WHITEPOINT_NTSC1987: NDArrayFloat = CCS_WHITEPOINT_SMPTE_C

110"""*NTSC (1987)* colourspace whitepoint chromaticity coordinates."""

111

112 MATRIX_NTSC1987_TO_XYZ: NDArrayFloat = MATRIX_SMPTE_C_TO_XYZ

113"""*NTSC (1987)* colourspace to *CIE XYZ* tristimulus values matrix."""

114

115 MATRIX_XYZ_TO_NTSC1987: NDArrayFloat = MATRIX_XYZ_TO_SMPTE_C

116"""*CIE XYZ* tristimulus values to *NTSC (1987)* colourspace matrix."""

117

118 RGB_COLOURSPACE_NTSC1987: RGB_Colourspace = RGB_Colourspace(

119 "NTSC (1987)",

120 PRIMARIES_NTSC1987,

121 CCS_WHITEPOINT_NTSC1987,

122 WHITEPOINT_NAME_NTSC1987,

123 MATRIX_NTSC1987_TO_XYZ,

124 MATRIX_XYZ_TO_NTSC1987,

125 RGB_COLOURSPACE_SMPTE_C.cctf_encoding,

126 RGB_COLOURSPACE_SMPTE_C.cctf_decoding,

127)

128 RGB_COLOURSPACE_NTSC1987.__doc__ = """

129*NTSC (1987)* colourspace.

130

131 References

132----------

133:cite:`SocietyofMotionPictureandTelevisionEngineers2004a`

134"""