Skip to content

Commit 71f1daf

Browse files
committed
more strict erosion
1 parent ec1ac39 commit 71f1daf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/rsfmri_conn_ants_preprocessing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def create_reg_workflow(name='registration'):
329329
Binarize the segmentation
330330
"""
331331

332-
binarize = MapNode(fsl.ImageMaths(op_string='-nan -thr 0.5 -bin'),
332+
binarize = MapNode(fsl.ImageMaths(op_string='-nan -thr 0.9 -ero -bin'),
333333
iterfield=['in_file'],
334334
name='binarize')
335335
pickindex = lambda x, i: x[i]
@@ -723,7 +723,7 @@ def merge_files(in1, in2):
723723
sink_directory=os.getcwd(),
724724
name='resting_' + subj_id)
725725
wf.base_dir = os.getcwd()
726-
wf.run(plugin='MultiProc', plugin_args={'nprocs': 4})
727-
#wf.write_graph(graph2use='colored')
728-
#wf.run()
726+
#wf.run(plugin='MultiProc', plugin_args={'nprocs': 4})
727+
wf.write_graph(graph2use='colored')
728+
wf.run()
729729

0 commit comments

Comments
 (0)