You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I would really appreciate it if you could help.
I have 2 images and I'm trying to fine the correct transformation values. I'm having lateral shift and scaling issues so I've used affine transform. While it was working, I can't separate the rotation, scaling and translation values.
In the documentation there is a transformation called AffineDTITransform. Unfortunately, I cand find the correct way to use it in python.
Can you please help how to use the above in python? Or if there is a way to separate the transformation values of the rotation scaling and translation while using affin transform?
I have used the below script:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I would really appreciate it if you could help.
I have 2 images and I'm trying to fine the correct transformation values. I'm having lateral shift and scaling issues so I've used affine transform. While it was working, I can't separate the rotation, scaling and translation values.
In the documentation there is a transformation called AffineDTITransform. Unfortunately, I cand find the correct way to use it in python.
Can you please help how to use the above in python? Or if there is a way to separate the transformation values of the rotation scaling and translation while using affin transform?
I have used the below script:
parameter_object = itk.ParameterObject.New()
default_affine_parameter_map = parameter_object.GetDefaultParameterMap('affine',4)
default_affine_parameter_map['FinalBSplineInterpolationOrder'] = ['0']
default_affine_parameter_map['HowToCombineTransforms'] = ['add']
default_affine_parameter_map['NumberOfParameters'] = ['4']
%Disable specific transformations
default_affine_parameter_map['UseRotation'] = ['false']
default_affine_parameter_map['UseShearing'] = ['false']
parameter_object.AddParameterMap(default_affine_parameter_map)
Appreciate your inputs,
Li
Beta Was this translation helpful? Give feedback.
All reactions