

def test_to_rgI_value(self):
    img = to_rgI(self.I)
    grey_value = int((((0.2125 * 50) + (0.7154 * 100)) + (0.0721 * 150)))
    assert (img[:, :, 0] == 50).all()
    assert (img[:, :, 1] == 100).all()
    assert (img[:, :, 2] == grey_value).all()

dataset/ETHPy150Open belltailjp/selective_search_py/test_color_space.py TestColorSpace.test_to_rgI_value/original