From 06dbb59ad83fe07890dabb5694f524f8cf969bd5 Mon Sep 17 00:00:00 2001 From: AlainKadar Date: Thu, 11 Apr 2024 12:21:31 -0400 Subject: [PATCH] Replace deprecated skeletonize_3d --- StructuralGT/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StructuralGT/base.py b/StructuralGT/base.py index 18da6df..f43d5dd 100755 --- a/StructuralGT/base.py +++ b/StructuralGT/base.py @@ -12,7 +12,7 @@ import csv import scipy -from skimage.morphology import skeletonize, skeletonize_3d, binary_closing, remove_small_objects +from skimage.morphology import skeletonize, binary_closing, remove_small_objects from StructuralGT import process_image, GetWeights_3d, error, convert, skel_ID, sknwEdits, util def read(name, read_type): @@ -297,10 +297,10 @@ def debubble(g, elements): canvas = g.img_bin for elem in elements: - canvas = skeletonize_3d(canvas)/255 + canvas = skeletonize(canvas)/255 canvas = binary_closing(canvas, footprint=elem) - g._skeleton = skeletonize_3d(canvas)/255 + g._skeleton = skeletonize(canvas)/255 if g._2d: g._skeleton_3d = np.swapaxes(np.array([g._skeleton]), 2, 1)