示例#1
0
 def test_xyz_tolab(self):
     assert_items_almost_equal(
         (66.9518, 0.4308, 0.7397),
         grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137))
     assert_items_almost_equal(
         (66.9518, 0.4117, 0.6728),
         grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137,
                               grapefruit.WHITE_REFERENCE["std_D50"]))
示例#2
0
 def test_xyz_tolab(self):
   assert_items_almost_equal((66.9518, 0.4308, 0.7397), grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137))
   assert_items_almost_equal((66.9518, 0.4117, 0.6728), grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137, grapefruit.WHITE_REFERENCE["std_D50"]))
示例#3
0
 def test_xyz_tolab_tuple(self):
   assert_items_almost_equal((66.9518, 0.4308, 0.7397), grapefruit.xyz_to_lab((0.488941, 0.365682, 0.0448137)))
示例#4
0
 def test_xyz_tolab_tuple(self):
     assert_items_almost_equal((66.9518, 0.4308, 0.7397),
                               grapefruit.xyz_to_lab(
                                   (0.488941, 0.365682, 0.0448137)))