Beispiel #1
0
    def test_RGB_colourspace_limits(self):
        """
        Tests :func:`colour.volume.rgb.RGB_colourspace_limits` definition.
        """

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(RGB_COLOURSPACE_BT709),
            np.array([
                [0.00000000, 100.00000000],
                [-86.18159689, 98.23744381],
                [-107.85546554, 94.48384002],
            ]),
            decimal=7)

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(RGB_COLOURSPACE_BT2020),
            np.array([
                [0.00000000, 100.00000000],
                [-172.32005590, 130.52657313],
                [-120.27412558, 136.88564561],
            ]),
            decimal=7)

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(RGB_COLOURSPACE_ACES2065_1),
            np.array([
                [-58.9920208, 102.4721629],
                [-404.1883039, 317.5082799],
                [-274.0297625, 174.4716296],
            ]),
            decimal=7)
Beispiel #2
0
    def test_RGB_colourspace_limits(self):
        """
        Tests :func:`colour.volume.rgb.RGB_colourspace_limits` definition.
        """

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(REC_709_COLOURSPACE),
            np.array([[0.00000000, 100.00000000],
                      [-79.21854477, 94.65669508],
                      [-114.78759841, 96.72026446]]),
            decimal=7)

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(REC_2020_COLOURSPACE),
            np.array([[0.00000000, 100.00000000],
                      [-159.59726205, 127.32669335],
                      [-129.74325643, 142.13784519]]),
            decimal=7)

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(ACES_2065_1_COLOURSPACE),
            np.array([[-79.45116285, 103.30589122],
                      [-461.76531700, 176.36321555],
                      [-309.68548384, 184.82616441]]),
            decimal=7)
Beispiel #3
0
    def test_RGB_colourspace_limits(self):
        """
        Tests :func:`colour.volume.rgb.RGB_colourspace_limits` definition.
        """

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(REC_709_COLOURSPACE),
            np.array([[0., 100.], [-79.22637417, 94.66574917],
                      [-114.78462716, 96.71351991]]),
            decimal=7)

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(REC_2020_COLOURSPACE),
            np.array([[0., 100.], [-159.61691594, 127.33819164],
                      [-129.73792222, 142.12971261]]),
            decimal=7)

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(ACES_2065_1_COLOURSPACE),
            np.array([[-79.44256015, 103.30554311], [-461.8341805, 176.445741],
                      [-309.6704667, 184.8212395]]),
            decimal=7)
Beispiel #4
0
    def test_RGB_colourspace_limits(self):
        """Test :func:`colour.volume.rgb.RGB_colourspace_limits` definition."""

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(RGB_COLOURSPACE_BT709),
            np.array(
                [
                    [0.00000000, 100.00000000],
                    [-86.18159689, 98.23744381],
                    [-107.85546554, 94.48384002],
                ]
            ),
            decimal=7,
        )

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(RGB_COLOURSPACE_BT2020),
            np.array(
                [
                    [0.00000000, 100.00000000],
                    [-172.32005590, 130.52657313],
                    [-120.27412558, 136.88564561],
                ]
            ),
            decimal=7,
        )

        np.testing.assert_almost_equal(
            RGB_colourspace_limits(RGB_COLOURSPACE_ACES2065_1),
            np.array(
                [
                    [-65.15706201, 102.72462756],
                    [-380.86283223, 281.23227495],
                    [-284.75355519, 177.11142683],
                ]
            ),
            decimal=7,
        )