@@ -230,7 +230,7 @@ def build_filter1(motion_params, comp_norm, outliers, detrend_poly=None):
230230 out_params = np .hstack ((out_params , outlier_vector ))
231231 if detrend_poly :
232232 timepoints = out_params .shape [0 ]
233- X = np .ones ((timepoints , 1 ))
233+ X = np .empty ((timepoints , 0 ))
234234 for i in range (detrend_poly ):
235235 X = np .hstack ((X , legendre (
236236 i + 1 )(np .linspace (- 1 , 1 , timepoints ))[:, None ]))
@@ -542,7 +542,7 @@ def create_reg_workflow(name='registration'):
542542
543543 warpmean = Node (ants .ApplyTransforms (), name = 'warpmean' )
544544 warpmean .inputs .input_image_type = 3
545- warpmean .inputs .interpolation = 'BSpline '
545+ warpmean .inputs .interpolation = 'Linear '
546546 warpmean .inputs .invert_transform_flags = [False , False ]
547547 warpmean .inputs .terminal_output = 'file'
548548 warpmean .inputs .args = '--float'
@@ -771,7 +771,7 @@ def merge_files(in1, in2):
771771 warpall = MapNode (ants .ApplyTransforms (), iterfield = ['input_image' ],
772772 name = 'warpall' )
773773 warpall .inputs .input_image_type = 3
774- warpall .inputs .interpolation = 'BSpline '
774+ warpall .inputs .interpolation = 'Linear '
775775 warpall .inputs .invert_transform_flags = [False , False ]
776776 warpall .inputs .terminal_output = 'file'
777777 warpall .inputs .reference_image = target_file
0 commit comments