Skip to content

Commit

Permalink
bug fix (if none) in align_seg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter authored Sep 9, 2024
1 parent 3c7a971 commit 77231fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recon_surf/align_seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_seg_centroids(
centroids_dst
List of centroids of target segmentation.
"""
if label_ids is not None:
if label_ids is None:
# use all joint labels except -1 and 0:
nda1 = sitk.GetArrayFromImage(seg_mov)
nda2 = sitk.GetArrayFromImage(seg_dst)
Expand Down

0 comments on commit 77231fb

Please sign in to comment.