@@ -75,7 +75,9 @@ def diffeomorphic_tensor_pipeline(name='DiffeoTen',
75
75
fields = ['out_file' , 'out_file_xfm' ,
76
76
'fixed_resliced' , 'moving_resliced' ]),
77
77
name = 'outputnode' )
78
-
78
+ origin_node_fixed = pe .Node (dtitk .TVAdjustVoxSp (origin = (0 , 0 , 0 )),
79
+ name = 'origin_node_fixed' )
80
+ origin_node_moving = origin_node_fixed .clone (name = 'origin_node_moving' )
79
81
reslice_node_pow2 = pe .Node (dtitk .TVResample (
80
82
origin = (0 , 0 , 0 ),
81
83
array_size = params ['array_size' ]),
@@ -96,10 +98,12 @@ def diffeomorphic_tensor_pipeline(name='DiffeoTen',
96
98
wf = pe .Workflow (name = name )
97
99
98
100
# Reslice input images
99
- wf .connect (inputnode , 'fixed_file' , reslice_node_pow2 , 'in_file' )
101
+ wf .connect (inputnode , 'fixed_file' , origin_node_fixed , 'in_file' )
102
+ wf .connect (origin_node_fixed , 'out_file' , reslice_node_pow2 , 'in_file' )
100
103
wf .connect (reslice_node_pow2 , 'out_file' ,
101
104
reslice_node_moving , 'target_file' )
102
- wf .connect (inputnode , 'moving_file' , reslice_node_moving , 'in_file' )
105
+ wf .connect (inputnode , 'moving_file' , origin_node_moving , 'in_file' )
106
+ wf .connect (origin_node_moving , 'out_file' , reslice_node_moving , 'in_file' )
103
107
# Rigid registration
104
108
wf .connect (reslice_node_pow2 , 'out_file' , rigid_node , 'fixed_file' )
105
109
wf .connect (reslice_node_moving , 'out_file' , rigid_node , 'moving_file' )
0 commit comments