Closed AmericaBG closed 4 years ago
You are 90% of the way there. It looks like you directly place the parameter map into the elastix image filter, maybe a more explicit approach would help here:
# initialize parameter maps based on defaults
translation_params = sitk.GetDefaultParameterMap('translation')
affine_params = sitk.GetDefaultParameterMap('affine')
bspline_params = sitk.GetDefaultParameterMap('bspline')
# set iterations for translation component
translation_params['MaximumNumberOfIterations']=['600']
elastixImageFilter.SetParameterMap(translation_params)
elastixImageFilter.AddParameterMap(affine_params)
elastixImageFilter.AddParameterMap(bspline_params)
# run registration here
Thank you very much! Now I understand how It works!
You're very kind :)
Hi! I'm designing a parameterMap (translation -> affine -> b-spline) and I want to change the number of iterations too.
My code:
The error:
Could you say me how should I do that?
Thank you very much in advance!