Skip to content

Commit 82fdf76

Browse files
authored
Merge pull request #712 from mgxd/fix/bold-brain-extraction-wf
FIX: Improve reliability of BOLD masking workflow
2 parents 95d62c9 + 97e7280 commit 82fdf76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

niworkflows/func/util.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,7 @@ def init_enhance_and_skullstrip_bold_wf(
482482
norm.inputs.fixed_image = str(bold_template)
483483
map_brainmask = pe.Node(
484484
ApplyTransforms(
485-
interpolation="BSpline",
486-
float=True,
485+
interpolation="Linear",
487486
# Use the higher resolution and probseg for numerical stability in rounding
488487
input_image=str(
489488
get_template(
@@ -523,7 +522,7 @@ def init_enhance_and_skullstrip_bold_wf(
523522
workflow.connect([
524523
(inputnode, check_hdr, [("in_file", "reference")]),
525524
(pre_dilate, check_hdr, [("out_file", "in_file")]),
526-
(check_hdr, n4_correct, [("out_file", "mask_image")]),
525+
(check_hdr, n4_correct, [("out_file", "weight_image")]),
527526
(inputnode, n4_correct, [("in_file", "input_image")]),
528527
(inputnode, fixhdr_unifize, [("in_file", "hdr_file")]),
529528
(inputnode, fixhdr_skullstrip2, [("in_file", "hdr_file")]),

0 commit comments

Comments
 (0)