Skip to content

Commit

Permalink
Merge pull request #119 from fmi-basel/threshold
Browse files Browse the repository at this point in the history
Bug fix in select largest component function.
  • Loading branch information
nrepina authored Aug 21, 2024
2 parents 3732d1d + 881e843 commit 0b05fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scmultiplex/meshing/LabelFusionFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def select_largest_component(label_image):
roi_count = len(rois)

if roi_count > 1:
label_with_largest_volume = None
largest_volume = None
label_with_largest_volume = 0
largest_volume = 0
for r in rois:
rlabel = r.label
rvolume = r.area
Expand Down

0 comments on commit 0b05fa5

Please sign in to comment.