Skip to content

Commit 7b501ed

Browse files
committed
enh: replaced erosion with slicethickness and added epimask support for bbregister
1 parent e3f0470 commit 7b501ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/rsfmri_preprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ def create_workflow(files,
319319
register.inputs.init = 'fsl'
320320
register.inputs.contrast_type = 't2'
321321
register.inputs.out_fsl_file = True
322+
register.inputs.epi_mask = True
322323

323324
# Compute fieldmaps and unwarp using them
324325
if fieldmap_images:
@@ -356,7 +357,7 @@ def create_workflow(files,
356357
wmcsf.inputs.wm_ven_csf = True
357358
wmcsf.inputs.match = [4, 5, 14, 15, 24, 31, 43, 44, 63]
358359
wmcsf.inputs.binary_file = 'wmcsf.nii.gz'
359-
wmcsf.inputs.erode = 1
360+
wmcsf.inputs.erode = int(slice_thickness)
360361
wf.connect(fssource, ('aparc_aseg', get_aparc_aseg), wmcsf, 'in_file')
361362
if fieldmap_images:
362363
wf.connect(fieldmap, 'exf_mask', wmcsftransform, 'source_file')

0 commit comments

Comments
 (0)