def test_green_is_not_altered_much(self): green_image_hsi = dc.rgb2hsi(green_image) green_image_rgb = dc.hsi2rgb(green_image_hsi) np.testing.assert_allclose(green_image_rgb, green_image, rtol=1e-7, atol=1e-7)
def test_blue_is_not_altered_to_much(self): blue_image_hsi = dc.rgb2hsi(blue_image) blue_image_rgb = dc.hsi2rgb(blue_image_hsi) np.testing.assert_array_equal(blue_image, blue_image_rgb)
def test_red_is_not_altered_at_all(self): red_image_hsi = dc.rgb2hsi(red_image) red_image_rgb = dc.hsi2rgb(red_image_hsi) np.testing.assert_array_equal(red_image, red_image_rgb)