mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-18 12:40:14 +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