def test_rgb2rgbcie_conversion(self):
     gt = np.array([[[0.1488856, 0.18288098, 0.19277574],
                     [0.01163224, 0.16649536, 0.18948516],
                     [0.12259182, 0.03308008, 0.17298223],
                     [-0.01466154, 0.01669446, 0.16969164]],
                    [[0.16354714, 0.16618652, 0.0230841],
                     [0.02629378, 0.1498009, 0.01979351],
                     [0.13725336, 0.01638562, 0.00329059], [0., 0., 0.]]])
     assert_almost_equal(rgb2rgbcie(self.colbars_array), gt)
Beispiel #2
0
 def test_rgb2rgbcie_conversion(self):
     gt = np.array([[[ 0.1488856 ,  0.18288098,  0.19277574],
                     [ 0.01163224,  0.16649536,  0.18948516],
                     [ 0.12259182,  0.03308008,  0.17298223],
                     [-0.01466154,  0.01669446,  0.16969164]],
                    [[ 0.16354714,  0.16618652,  0.0230841 ],
                     [ 0.02629378,  0.1498009 ,  0.01979351],
                     [ 0.13725336,  0.01638562,  0.00329059],
                     [ 0.        ,  0.        ,  0.        ]]])
     assert_almost_equal(rgb2rgbcie(self.colbars_array), gt)
 def test_rgbcie2rgb_conversion(self):
     # only roundtrip test, we checked rgb2rgbcie above already
     assert_almost_equal(rgbcie2rgb(rgb2rgbcie(self.colbars_array)),
                         self.colbars_array)
Beispiel #4
0
 def test_rgbcie2rgb_conversion(self):
     # only roundtrip test, we checked rgb2rgbcie above already
     assert_almost_equal(rgbcie2rgb(rgb2rgbcie(self.colbars_array)),
                         self.colbars_array)