|
54 | 54 | """
|
55 | 55 |
|
56 | 56 | reg = Registration()
|
57 |
| -reg.inputs.fixed_image = [input_images[0], input_images[0] ] |
58 |
| -reg.inputs.moving_image = [input_images[1], input_images[1] ] |
59 |
| -reg.inputs.transforms = ['Affine', 'SyN'] |
60 |
| -reg.inputs.transform_parameters = [(2.0,), (0.25, 3.0, 0.0)] |
61 |
| -reg.inputs.number_of_iterations = [[1500, 200], [100, 50, 30]] |
62 |
| -reg.inputs.dimension = 3 |
63 |
| -reg.inputs.write_composite_transform = True |
64 |
| -reg.inputs.metric = ['Mattes']*2 |
65 |
| -reg.inputs.metric_weight = [1]*2 # Default (value ignored currently by ANTs) |
66 |
| -reg.inputs.radius_or_number_of_bins = [32]*2 |
67 |
| -reg.inputs.sampling_strategy = ['Random', None] |
68 |
| -reg.inputs.sampling_percentage = [0.05, None] |
69 |
| -reg.inputs.convergence_threshold = [1.e-8, 1.e-9] |
70 |
| -reg.inputs.convergence_window_size = [20]*2 |
71 |
| -reg.inputs.smoothing_sigmas = [[1,0], [2,1,0]] |
72 |
| -reg.inputs.shrink_factors = [[2,1], [3,2,1]] |
73 |
| -reg.inputs.use_estimate_learning_rate_once = [True, True] |
74 |
| -reg.inputs.use_histogram_matching = [True, True] # This is the default |
| 57 | +reg.inputs.fixed_image = input_images[0] |
| 58 | +reg.inputs.moving_image = input_images[1] |
75 | 59 | reg.inputs.output_transform_prefix = 'thisTransform'
|
76 | 60 | reg.inputs.output_warped_image = 'INTERNAL_WARPED.nii.gz'
|
| 61 | + |
| 62 | +reg.inputs.transforms = ['Translation', 'Rigid', 'Affine', 'SyN'] |
| 63 | +reg.inputs.transform_parameters = [(0.1,), (0.1,), (0.1,), (0.3, 3.0, 0.0)] |
| 64 | +reg.inputs.number_of_iterations = [[10000, 0, 0], [10000, 0, 0], [10000, 0, 0], [10, 0, 0]] |
| 65 | +reg.inputs.dimension = 3 |
| 66 | +reg.inputs.write_composite_transform = True |
| 67 | +reg.inputs.collapse_output_transforms = True |
| 68 | +reg.inputs.metric = ['Mattes']*4 |
| 69 | +reg.inputs.metric_weight = [1]*4 # Default (value ignored currently by ANTs) |
| 70 | +reg.inputs.radius_or_number_of_bins = [32]*4 |
| 71 | +reg.inputs.sampling_strategy = ['Regular']*3 + [None] |
| 72 | +reg.inputs.sampling_percentage = [0.1]*3 + [None] |
| 73 | +reg.inputs.convergence_threshold = [1.e-8]*4 |
| 74 | +reg.inputs.convergence_window_size = [20]*4 |
| 75 | +reg.inputs.smoothing_sigmas = [[4,2,1]]*3 + [[2,1,0]] |
| 76 | +reg.inputs.sigma_units = ['vox']*4 |
| 77 | +reg.inputs.shrink_factors = [[6,4,2]]*3 + [[4,2,1]] |
| 78 | +reg.inputs.use_estimate_learning_rate_once = [True, True, True, True] |
| 79 | +reg.inputs.use_histogram_matching = [False]*3 + [True] # This is the default |
| 80 | +reg.inputs.initial_moving_transform_com = True |
| 81 | +reg.inputs.output_warped_image = True |
77 | 82 | reg.cmdline
|
78 | 83 |
|
79 | 84 |
|
|
0 commit comments