Skip to content

Commit

Permalink
Replace deprecated skeletonize_3d
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainKadar committed Apr 11, 2024
1 parent 0383c94 commit 06dbb59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions StructuralGT/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 06dbb59

Please sign in to comment.