Skip to content

Commit

Permalink
FIX: Reverse transform
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Aug 10, 2023
1 parent 1f762ed commit b32b7ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nibabies/workflows/anatomical/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ def init_coregister_derivatives_wf(
if t2w_aseg:
# fmt:off
t2waseg2t1w = pe.Node(ApplyTransforms(interpolation="MultiLabel"), name='t2waseg2t1w')
t2waseg2t1w.inputs.invert_transform_flags = [True, False]
workflow.connect([
(inputnode, t2waseg2t1w, [
('t2w_aseg', 'input_image'),
('t1w2t2w_xfm', 'reverse_transforms'),
('t1w2t2w_xfm', 'transforms'),
('t1w_ref', 'reference_image')]),
(t2waseg2t1w, outputnode, [('output_image', 't1w_aseg')])
])
Expand Down

0 comments on commit b32b7ab

Please sign in to comment.