mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
CLN: Correct dtype typo
This commit is contained in:
@@ -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