mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
CLN: Correct dtype typo
This commit is contained in:
1 parent
39267d103c
commit
12dab41c39
1 file changed
+1
-1
@@ -115,7 +115,7 @@ def disk(radius, dtype=np.uint8):
|
||||
"""
|
||||
L = np.arange(-radius, radius + 1)
|
||||
X, Y = np.meshgrid(L, L)
|
||||
return np.array((X ** 2 + Y ** 2) <= radius ** 2, dtype=np.uint8)
|
||||
return np.array((X ** 2 + Y ** 2) <= radius ** 2, dtype=dtype)
|
||||
|
||||
|
||||
def cube(width, dtype=np.uint8):
|
||||
|
||||
Reference in new issue
Block a user