Skip to content

Commit f07017c

Browse files
authored
1 parent e625df3 commit f07017c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

digital_image_processing/morphological_operations/dilation_operation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ def gray2binary(gray: np.array) -> np.array:
3939
def dilation(image: np.array, kernel: np.array) -> np.array:
4040
"""
4141
Return dilated image
42-
>>> dilation(np.array([[True, False, True]]), np.array([[0, 1, 0], [1, 1, 1], [0, 1, 0]]))
43-
array([[ True, True, True]])
44-
>>> dilation(np.array([[True, False, False]]), np.array([[0, 1, 0], [1, 1, 1], [0, 1, 0]]))
45-
array([[ True, True, False]])
42+
>>> dilation(np.array([[True, False, True]]), np.array([[0, 1, 0]]))
43+
array([[False, False, False]])
44+
>>> dilation(np.array([[False, False, True]]), np.array([[1, 0, 1]]))
45+
array([[False, False, False]])
4646
"""
4747
output = np.zeros_like(image)
4848
image_padded = np.zeros(

0 commit comments

Comments
 (0)