From 639a6ba2f898ce6ea5d9f5fe18436b05d4274b5a Mon Sep 17 00:00:00 2001 From: Fischer Robert Date: Wed, 1 Feb 2023 10:06:41 +0100 Subject: [PATCH] mistake in the syntax --- 01_extract_surfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_extract_surfaces.py b/01_extract_surfaces.py index c8a368a..6c33c30 100644 --- a/01_extract_surfaces.py +++ b/01_extract_surfaces.py @@ -78,7 +78,7 @@ class mesh_maker: if np.any(im): im = im.data if clean: im = ndimage.binary_opening(im, structure=fp) - if remove_small: im = morphology.remove_small(im, min_size=minsize) + if remove_small: im = morphology.remove_small_objects(im, min_size=minsize) im[:,:,:2] = 0 im[:,:,-3:] = 0 verts, faces, _, _ = measure.marching_cubes(im) #_lewiner