Exemplo n.º 1
0
 def test_case_three(self):
     """Test case 3."""
     out = im_utils.skel_kernels(3)
     assert np.all(out == np.array([[0, 0, 0], [1, 1, 1], [0, 1, 0]]))
Exemplo n.º 2
0
 def test_case_four(self):
     """Test case 4."""
     out = im_utils.skel_kernels(4)
     assert np.all(out == np.array([[0, 1, 0], [1, 1, 0], [0, 1, 0]]))
Exemplo n.º 3
0
 def test_case_two(self):
     """Test case 2."""
     out = im_utils.skel_kernels(2)
     assert np.all(out == np.array([[0, 1, 0], [0, 1, 1], [0, 1, 0]]))