예제 #1
0
 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'))
예제 #2
0
 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'))