質問するログイン新規登録

回答編集履歴

1

修正

2021/01/25 01:27

投稿

kirara0048
kirara0048

スコア1399

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=bbol)
15
+ s = np.ones((3, 3), dtype=bool)
16
16
 
17
17
  binary_dilation(a, s)
18
18
  # [[ True True True False False False]