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

24 statements  

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

1""" 

2Panasonic V-Gamut Colourspace 

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

4 

5Define the *Panasonic V-Gamut* colourspace: 

6 

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

8 

9References 

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 

15from __future__ import annotations 

16 

17import typing 

18 

19import numpy as np 

20 

21from colour.colorimetry import CCS_ILLUMINANTS 

22 

23if typing.TYPE_CHECKING: 

24 from colour.hints import NDArrayFloat 

25 

26from 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 

44PRIMARIES_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 

53WHITEPOINT_NAME_V_GAMUT: str = "D65" 

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

55 

56CCS_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 

61MATRIX_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 

70MATRIX_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 

79RGB_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) 

89RGB_COLOURSPACE_V_GAMUT.__doc__ = """ 

90*Panasonic V-Gamut* colourspace. 

91 

92References 

93---------- 

94:cite:`Panasonic2014a` 

95"""