@@ -365,11 +365,11 @@ else:
365
365
reg .inputs .dimension = 3
366
366
reg .inputs .convergence_threshold = [1e-06 , 1e-06 , 1e-06 ]
367
367
reg .inputs .convergence_window_size = [20 , 20 , 10 ]
368
- reg .inputs .metric = ["Matties " , "Mattes" , "CC" ]
368
+ reg .inputs .metric = ["Mattes " , "Mattes" , "CC" ]
369
369
reg .inputs .metric_weight = [1 , 1 , 1 ]
370
370
reg .inputs .radius_or_number_of_bins = [56 , 56 , 4 ]
371
371
reg .inputs .transforms = ["Rigid" , "Affine" , "SyN" ]
372
- reg .inputs .transformation_parameters = [[ 0.05 ], [ 0.08 ], [ 0.1 , 3.0 , 0.0 ] ]
372
+ reg .inputs .transform_parameters = [( 0.05 ,), ( 0.08 ,), ( 0.1 , 3.0 , 0.0 ) ]
373
373
reg .inputs .number_of_iterations = [[100 , 100 ], [100 , 100 ], [100 , 70 , 50 , 20 ]]
374
374
reg .inputs .sampling_strategy = ["Regular" , "Regular" , "None" ]
375
375
reg .inputs .sampling_percentage = [0.25 , 0.25 , 1 ]
@@ -381,12 +381,13 @@ else:
381
381
reg .inputs .use_estimate_learning_rate_once = [True , True , True ]
382
382
reg .inputs .use_histogram_matching = [True , True , True ]
383
383
reg .inputs .collapse_output_transforms = True
384
- reg .inputs .write_composite_transform = False
384
+ reg .inputs .write_composite_transform = True
385
385
reg .inputs .output_transform_prefix = "output_"
386
386
reg .inputs .output_warped_image = True
387
387
reg .inputs .output_warped_image = "output_warped_image.nii.gz"
388
388
reg .inputs .interpolation = "LanczosWindowedSinc"
389
389
reg .inputs .float = True
390
+ reg .inputs .initial_moving_transform_com = 0
390
391
391
392
if args .num_threads and args .num_threads > 1 :
392
393
reg .inputs .num_threads = args .num_threads
0 commit comments