diff --git a/src/napatrackmater/clustering.py b/src/napatrackmater/clustering.py index 905bb552..3be24c74 100644 --- a/src/napatrackmater/clustering.py +++ b/src/napatrackmater/clustering.py @@ -383,7 +383,7 @@ def get_label_centroid_cloud(binary_image, num_points, ndim, label, centroid, mi vertices = None if vertices is not None: mesh_obj = trimesh.Trimesh(vertices=vertices, faces=faces) - simple_clouds = mesh_obj.sample(num_points).data + simple_clouds = np.asarray(mesh_obj.sample(num_points).data) if compute_with_autoencoder: mesh_obj = trimesh.Trimesh(vertices=vertices, faces=faces, process=False)