mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-11 12:43:04 +08:00
Make return type of skeletonize function boolean
This commit is contained in:
@@ -146,7 +146,7 @@ def skeletonize(image):
|
||||
pixelRemoved = True
|
||||
skeleton[code_mask] = 0
|
||||
|
||||
return skeleton
|
||||
return skeleton.astype(bool)
|
||||
|
||||
# --------- Skeletonization by medial axis transform --------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user