Exemple #1
0
__maintainer__ = 'Colour Developers'
__email__ = '*****@*****.**'
__status__ = 'Production'

__all__ = [
    'JZAZBZ_CONSTANTS', 'JZAZBZ_XYZ_TO_LMS_MATRIX', 'JZAZBZ_LMS_TO_XYZ_MATRIX',
    'JZAZBZ_LMS_P_TO_IZAZBZ_MATRIX', 'JZAZBZ_IZAZBZ_TO_LMS_P_MATRIX',
    'XYZ_to_JzAzBz', 'JzAzBz_to_XYZ'
]

JZAZBZ_CONSTANTS = Structure(b=1.15,
                             g=0.66,
                             d=-0.56,
                             d_0=1.6295499532821566 * 10**-11)
JZAZBZ_CONSTANTS.update(ST2084_CONSTANTS)
JZAZBZ_CONSTANTS.m_2 = 1.7 * 2523 / 2**5
"""
Constants for :math:`J_zA_zB_z` colourspace and its variant of the perceptual
quantizer (PQ) from Dolby Laboratories.

Notes
-----
-   The :math:`m2` constant, i.e. the power factor has been re-optimized during
    the development of the :math:`J_zA_zB_z` colourspace.

JZAZBZ_CONSTANTS : Structure
"""

JZAZBZ_XYZ_TO_LMS_MATRIX = np.array([
    [0.41478972, 0.579999, 0.0146480],
    [-0.2015100, 1.120649, 0.0531008],
Exemple #2
0
__maintainer__ = 'Colour Developers'
__email__ = '*****@*****.**'
__status__ = 'Production'

__all__ = [
    'CONSTANTS_JZAZBZ', 'MATRIX_JZAZBZ_XYZ_TO_LMS', 'MATRIX_JZAZBZ_LMS_TO_XYZ',
    'MATRIX_JZAZBZ_LMS_P_TO_IZAZBZ', 'MATRIX_JZAZBZ_IZAZBZ_TO_LMS_P',
    'XYZ_to_JzAzBz', 'JzAzBz_to_XYZ'
]

CONSTANTS_JZAZBZ = Structure(b=1.15,
                             g=0.66,
                             d=-0.56,
                             d_0=1.6295499532821566 * 10**-11)
CONSTANTS_JZAZBZ.update(CONSTANTS_ST2084)
CONSTANTS_JZAZBZ.m_2 = 1.7 * 2523 / 2**5
"""
Constants for :math:`J_zA_zB_z` colourspace and its variant of the perceptual
quantizer (PQ) from Dolby Laboratories.

Notes
-----
-   The :math:`m2` constant, i.e. the power factor has been re-optimized during
    the development of the :math:`J_zA_zB_z` colourspace.

CONSTANTS_JZAZBZ : Structure
"""

MATRIX_JZAZBZ_XYZ_TO_LMS = np.array([
    [0.41478972, 0.579999, 0.0146480],
    [-0.2015100, 1.120649, 0.0531008],