Skip to content

Commit 2ef543b

Browse files
committed
fix: registration parameters
1 parent d9e6496 commit 2ef543b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mindboggle/mindboggle123

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ else:
365365
reg.inputs.dimension = 3
366366
reg.inputs.convergence_threshold = [1e-06, 1e-06, 1e-06]
367367
reg.inputs.convergence_window_size = [20, 20, 10]
368-
reg.inputs.metric = ["Matties", "Mattes", "CC"]
368+
reg.inputs.metric = ["Mattes", "Mattes", "CC"]
369369
reg.inputs.metric_weight = [1, 1, 1]
370370
reg.inputs.radius_or_number_of_bins = [56, 56, 4]
371371
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)]
373373
reg.inputs.number_of_iterations = [[100, 100], [100, 100], [100, 70, 50, 20]]
374374
reg.inputs.sampling_strategy = ["Regular", "Regular", "None"]
375375
reg.inputs.sampling_percentage = [0.25, 0.25, 1]
@@ -381,12 +381,13 @@ else:
381381
reg.inputs.use_estimate_learning_rate_once = [True, True, True]
382382
reg.inputs.use_histogram_matching = [True, True, True]
383383
reg.inputs.collapse_output_transforms = True
384-
reg.inputs.write_composite_transform = False
384+
reg.inputs.write_composite_transform = True
385385
reg.inputs.output_transform_prefix = "output_"
386386
reg.inputs.output_warped_image = True
387387
reg.inputs.output_warped_image = "output_warped_image.nii.gz"
388388
reg.inputs.interpolation = "LanczosWindowedSinc"
389389
reg.inputs.float = True
390+
reg.inputs.initial_moving_transform_com = 0
390391

391392
if args.num_threads and args.num_threads > 1:
392393
reg.inputs.num_threads = args.num_threads

0 commit comments

Comments
 (0)