Beispiel #1
0
 def test_case_eight(self):
     """Test case 8."""
     out = im_utils.bp_kernels(8)
     assert np.all(out == np.array([[1, 0, 0], [1, 10, 0], [0, 0, 0]]))
Beispiel #2
0
 def test_case_six(self):
     """Test case 6."""
     out = im_utils.bp_kernels(6)
     assert np.all(out == np.array([[0, 0, 0], [0, 10, 0], [1, 1, 0]]))
Beispiel #3
0
 def test_case_seven(self):
     """Test case 7."""
     out = im_utils.bp_kernels(7)
     assert np.all(out == np.array([[0, 0, 0], [1, 10, 0], [1, 0, 0]]))
Beispiel #4
0
 def test_case_five(self):
     """Test case 5."""
     out = im_utils.bp_kernels(5)
     assert np.all(out == np.array([[0, 0, 0], [0, 10, 0], [0, 1, 1]]))
Beispiel #5
0
 def test_case_four(self):
     """Test case 4."""
     out = im_utils.bp_kernels(4)
     assert np.all(out == np.array([[0, 0, 0], [0, 10, 1], [0, 0, 1]]))
Beispiel #6
0
 def test_case_three(self):
     """Test case 3."""
     out = im_utils.bp_kernels(3)
     assert np.all(out == np.array([[0, 0, 1], [0, 10, 1], [0, 0, 0]]))
Beispiel #7
0
 def test_case_two(self):
     """Test case 2."""
     out = im_utils.bp_kernels(2)
     assert np.all(out == np.array([[0, 1, 1], [0, 10, 0], [0, 0, 0]]))
Beispiel #8
0
 def test_case_one(self):
     """Test case 1."""
     out = im_utils.bp_kernels(1)
     assert np.all(out == np.array([[1, 1, 0], [0, 10, 0], [0, 0, 0]]))