回答編集履歴
1
修正
answer
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
[0, 0, 0, 0, 0, 0],
|
13
13
|
[0, 0, 0, 0, 0, 1]])
|
14
14
|
|
15
|
-
s = np.ones((3, 3), dtype=
|
15
|
+
s = np.ones((3, 3), dtype=bool)
|
16
16
|
|
17
17
|
binary_dilation(a, s)
|
18
18
|
# [[ True True True False False False]
|