def test_enhance():
image = np.ones((5, 4), dtype='uint8')
expected = np.zeros((5, 4), dtype='uint8')
enhanced = ni.enhance(image, ie.Brightness, 0.0)
nt.assert_allclose(expected, enhanced)
assert enhanced.dtype == np.uint8
评论列表
文章目录