# Transforming Points by using ScaleSkewVersor3DTransform

**URL:** <https://discourse.itk.org/t/transforming-points-by-using-scaleskewversor3dtransform/5845>\
**Category:** Beginner Questions\
**Tags:** simpleitk\
**Created:** [April 2, 2023, 8:13pm UTC](https://discourse.itk.org/t/transforming-points-by-using-scaleskewversor3dtransform/5845 "2023-04-02T20:13:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miaomiaomiao](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@miaomiaomiao](https://discourse.itk.org/u/miaomiaomiao)\
**Post date:** [April 2, 2023, 8:13pm UTC](https://discourse.itk.org/t/transforming-points-by-using-scaleskewversor3dtransform/5845/1 "2023-04-02T20:13:04Z")

</div>

Hello dear community,  
I register MRI images (moving) with different spacings and shapes to a template MRI (fixed) with spacing [1.0; 1.0; 1.0] and Shape[193, 229, 193]. I also have points for each moving MRI that represent an annotation for the respective image.  
I followed the notebooks provided and registering works without any problems. As transformation type I use ScaleSkewVersor3DTransform.

I’m having trouble transferring the points to the template MRT with main\_transform.TransformPoint. The points don’t seem to be in the desired position after the transformation.

```auto
fixed_image = sitk.ReadImage('../data/masks/mni_icbm152_nlin_sym_09/mni_icbm152_t1_tal_nlin_sym_09c.nii', sitk.sitkFloat32)
main_transform = sitk_registration(fixed_image, moving_image, mode='versor')
moving_sitk = sitk.Resample(moving_image, fixed_image, main_transform, sitk.sitkLinear, 0.0, moving_image.GetPixelID())
moving_sitk.CopyInformation(fixed_image)
# Point (_anno_dict['anchor3DX'], _anno_dict['anchor3DY'], _anno_dict['anchor3DZ']) in physical coordinates of the source image
x, y, z = main_final_transform.TransformPoint((_anno_dict['anchor3DX'], _anno_dict['anchor3DY'], _anno_dict['anchor3DZ']))

```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![miaomiaomiao](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@miaomiaomiao](https://discourse.itk.org/u/miaomiaomiao)\
**Post date:** [April 2, 2023, 9:51pm UTC](https://discourse.itk.org/t/transforming-points-by-using-scaleskewversor3dtransform/5845/2 "2023-04-02T21:51:23Z")

</div>

Just spotted the answer from [dzenanz](https://discourse.itk.org/t/transform-of-points-using-euler3dtransform/5830/2). Thanks that cleared my question.
