@@ -142,44 +142,3 @@ def diffeomorphic_tensor_pipeline(name='DiffeoTen',
142142 wf .connect (reslice_node_moving , 'out_file' , outputnode , 'moving_resliced' )
143143
144144 return wf
145-
146- '''
147- def apply_diffeo(name='ApplyDiffeo', params={'array_size': (128, 128, 64)}):
148-
149- """
150- Workflow that applies a dtitk diffeomorphic registration to a scalar volume
151- by moving the origin and reslicing, then applying the transform.
152-
153- Example
154- -------
155-
156- >>> from nipype.workflows.dmri.dtitk.tensor_registration import apply_diffeo
157- >>> app_diffeo = diffeomorphic_tensor_pipeline()
158- >>> app_diffeo.inputs.inputnode.moving_file = 'im1.nii'
159- >>> app_diffeo.inputs.inputnode.xfm_file = 'im_warp.df.nii'
160- >>> app_diffeo.run() # doctest: +SKIP
161-
162-
163- """
164- inputnode = pe.Node(niu.IdentityInterface(
165- fields=['moving_file', 'xfm_file']),
166- name='inputnode')
167- outputnode = pe.Node(niu.IdentityInterface(
168- fields=['out_file']),
169- name='outputnode')
170- origin_node = pe.Node(dtitk.SVAdjustVoxSp(origin=(0, 0, 0)),
171- name='origin_node')
172- reslice_node_pow2 = pe.Node(dtitk.SVResample(
173- array_size=params['array_size']),
174- name='reslice_node_pow2')
175- apply_xfm_node = pe.Node(dtitk.DiffeoScalarVol(), name='apply_xfm_node')
176-
177- wf = pe.Workflow(name=name)
178-
179- wf.connect(inputnode, 'moving_file', origin_node, 'in_file')
180- wf.connect(origin_node, 'out_file', reslice_node_pow2, 'in_file')
181- wf.connect(reslice_node_pow2, 'out_file', apply_xfm_node, 'in_file')
182- wf.connect(inputnode, 'xfm_file', apply_xfm_node, 'transform')
183- wf.connect(apply_xfm_node, 'out_file', outputnode, 'out_file')
184-
185- return wf'''
0 commit comments