FIX: Fixed test_hed_rgb_roundtrip.

This commit is contained in:
Xavier Moles Lopez
2013-03-04 12:15:35 +01:00
parent 7f5b331f22
commit 0a6b72bfe4
+9 -9
View File
@@ -124,15 +124,15 @@ class TestColorconv(TestCase):
# RGB<->HED roundtrip
def test_hed_rgb_roundtrip(self):
test = np.array([[[97, 105, 152],
[217, 187, 225],
[117, 107, 168]],
[[217, 187, 225],
[176, 135, 83],
[234, 144, 205]],
[[97, 105, 152],
[117, 107, 168],
[217, 187, 225]]], dtype=np.uint8)
img_rgb = np.array([[[97, 105, 152],
[217, 187, 225],
[117, 107, 168]],
[[217, 187, 225],
[176, 135, 83],
[234, 144, 205]],
[[97, 105, 152],
[117, 107, 168],
[217, 187, 225]]], dtype=np.uint8)
assert_array_almost_equal(hed2rgb(rgb2hed(img_rgb)), img_rgb)
# RGB to RGB CIE