def test_image_threshold(self): img = Image(np.array([[0, 1, 0], [3, 4, 5.]])) op_img = threshold(img) self.assertEqual( op_img, img.clone(np.array([[0, 1, 0], [1, 1, 1]]), group='Threshold'))
def test_image_threshold(self): img = Image(np.array([[0, 1, 0], [3, 4, 5.]])) op_img = threshold(img) self.assertEqual(op_img, img.clone(np.array([[0, 1, 0], [1, 1, 1]]), group='Threshold'))