Beispiel #1
0
    def test_alexa_log_c_to_linear(self):
        """
        Tests :func:`colour.models.log.alexa_log_c_to_linear` definition.
        """

        self.assertAlmostEqual(
            alexa_log_c_to_linear(0.092809),
            0,
            places=7)

        self.assertAlmostEqual(
            alexa_log_c_to_linear(0.39100683203408376),
            0.18,
            places=7)

        self.assertAlmostEqual(
            alexa_log_c_to_linear(0.57063155812041733),
            1,
            places=7)