Ejemplo n.º 1
0
 def test_xyz_to_lab(self):
     assert_items_almost_equal(
         (0.4890, 0.3657, 0.0449),
         grapefruit.lab_to_xyz(66.9518, 0.4308, 0.7397))
     assert_items_almost_equal(
         (0.4890, 0.3657, 0.0449),
         grapefruit.lab_to_xyz(66.9518, 0.4117, 0.6728,
                               grapefruit.WHITE_REFERENCE["std_D50"]))
Ejemplo n.º 2
0
 def test_xyz_to_lab(self):
   assert_items_almost_equal((0.4890, 0.3657, 0.0449), grapefruit.lab_to_xyz(66.9518, 0.4308, 0.7397))
   assert_items_almost_equal((0.4890, 0.3657, 0.0449), grapefruit.lab_to_xyz(66.9518, 0.4117, 0.6728, grapefruit.WHITE_REFERENCE["std_D50"]))
Ejemplo n.º 3
0
 def test_xyz_to_lab_tuple(self):
   assert_items_almost_equal((0.4890, 0.3657, 0.0449), grapefruit.lab_to_xyz((66.9518, 0.4308, 0.7397)))
Ejemplo n.º 4
0
 def test_xyz_to_lab_tuple(self):
     assert_items_almost_equal((0.4890, 0.3657, 0.0449),
                               grapefruit.lab_to_xyz(
                                   (66.9518, 0.4308, 0.7397)))