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

1"""

2 Panasonic V-Gamut Colourspace

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

4

5 Define the *Panasonic V-Gamut* colourspace:

6

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

8

9 References

10----------

11- :cite:`Panasonic2014a` : Panasonic. (2014). VARICAM V-Log/V-Gamut (pp. 1-7).

12 http://pro-av.panasonic.net/en/varicam/common/pdf/VARICAM_V-Log_V-Gamut.pdf

13"""

14

15 from __future__ import annotations

16

17 import typing

18

19 import numpy as np

20

21 from colour.colorimetry import CCS_ILLUMINANTS

22

23 if typing.TYPE_CHECKING:

24 from colour.hints import NDArrayFloat

25

26 from colour.models.rgb import RGB_Colourspace, log_decoding_VLog, log_encoding_VLog

27

28 __author__ = "Colour Developers"

29 __copyright__ = "Copyright 2013 Colour Developers"

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

31 __maintainer__ = "Colour Developers"

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

33 __status__ = "Production"

34

35 __all__ = [

36 "PRIMARIES_V_GAMUT",

37 "WHITEPOINT_NAME_V_GAMUT",

38 "CCS_WHITEPOINT_V_GAMUT",

39 "MATRIX_V_GAMUT_TO_XYZ",

40 "MATRIX_XYZ_TO_V_GAMUT",

41 "RGB_COLOURSPACE_V_GAMUT",

42]

43

44 PRIMARIES_V_GAMUT: NDArrayFloat = np.array(

45 [

46 [0.7300, 0.2800],

47 [0.1650, 0.8400],

48 [0.1000, -0.0300],

49 ]

50)

51"""*Panasonic V-Gamut* colourspace primaries."""

52

53 WHITEPOINT_NAME_V_GAMUT: str = "D65"

54"""*Panasonic V-Gamut* colourspace whitepoint name."""

55

56 CCS_WHITEPOINT_V_GAMUT: NDArrayFloat = CCS_ILLUMINANTS[

57 "CIE 1931 2 Degree Standard Observer"

58][WHITEPOINT_NAME_V_GAMUT]

59"""*Panasonic V-Gamut* colourspace whitepoint chromaticity coordinates."""

60

61 MATRIX_V_GAMUT_TO_XYZ: NDArrayFloat = np.array(

62 [

63 [0.679644, 0.152211, 0.118600],

64 [0.260686, 0.774894, -0.035580],

65 [-0.009310, -0.004612, 1.102980],

66 ]

67)

68"""*Panasonic V-Gamut* colourspace to *CIE XYZ* tristimulus values matrix."""

69

70 MATRIX_XYZ_TO_V_GAMUT: NDArrayFloat = np.array(

71 [

72 [1.589012, -0.313204, -0.180965],

73 [-0.534053, 1.396011, 0.102458],

74 [0.011179, 0.003194, 0.905535],

75 ]

76)

77"""*CIE XYZ* tristimulus values to *Panasonic V-Gamut* colourspace matrix."""

78

79 RGB_COLOURSPACE_V_GAMUT: RGB_Colourspace = RGB_Colourspace(

80 "V-Gamut",

81 PRIMARIES_V_GAMUT,

82 CCS_WHITEPOINT_V_GAMUT,

83 WHITEPOINT_NAME_V_GAMUT,

84 MATRIX_V_GAMUT_TO_XYZ,

85 MATRIX_XYZ_TO_V_GAMUT,

86 log_encoding_VLog,

87 log_decoding_VLog,

88)

89 RGB_COLOURSPACE_V_GAMUT.__doc__ = """

90*Panasonic V-Gamut* colourspace.

91

92 References

93----------

94:cite:`Panasonic2014a`

95"""