Skip to content

Commit

Permalink
Fix bug with add_roi_set and fuzzy rois
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraig-ibme committed Jan 10, 2024
1 parent 7410922 commit 84c1d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oxasl/region_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def add_roi_set_from_fsl_atlas(wsp, rois, atlas_name, resolution=2, threshold=0.
if wsp.fuzzy_sets or wsp.psf is not None:
# When treating as an ROI set, do not threshold, allow it to be fuzzy
roi_set = Image(np.stack(roi_set, axis=3), header=roi_region.header)
add_roi_set(rois, names, roi_set, names)
add_roi_set(wsp, rois, names, roi_set)

def add_rois_from_3d_label_atlas(wsp, rois, atlas_img, region_names):
"""
Expand Down Expand Up @@ -436,7 +436,7 @@ def add_roi_set_from_4d_atlas(wsp, rois, atlas_img, region_names, threshold=0.5)

if wsp.fuzzy_sets or wsp.psf is not None:
roi_set = Image(np.stack(roi_set, axis=3), header=roi_region.header)
add_roi_set(rois, roi_set, names)
add_roi_set(wsp, rois, roi_set, names)

def get_perfusion_data(wsp):
if wsp.perfusion_wm is not None:
Expand Down

0 comments on commit 84c1d2e

Please sign in to comment.