Skip to content

Commit

Permalink
Add missing line
Browse files Browse the repository at this point in the history
  • Loading branch information
frheault committed Aug 6, 2024
1 parent be71344 commit e27c357
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scilpy/image/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def get_labels_from_mask(mask_data, labels=None, background_label=0,
for label in range(1, nb_structures + 1):
if np.count_nonzero(label_map == label) < min_voxel_count:
label_map[label_map == label] = 0
mask_data = label_map > 0
label_map, nb_structures = ndi.label(mask_data)

# Assign labels to each blob if provided
Expand Down

0 comments on commit e27c357

Please sign in to comment.