# Computation of the Rotation Transform between two positions

**URL:** https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996
**Category:** Support
**Created:** [October 27, 2021, 8:53pm UTC](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996 "2021-10-27T20:53:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [October 27, 2021, 8:53pm UTC](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996/1 "2021-10-27T20:53:02Z")

</div>

Dear All,

When I display a MHD (3D Skull) file with VTK it appears in one rotation/angle(s) position. But I want that initially it will in another angle(s) position. How can I position in another angle(s) and record the transform from the initial position? And determine the RotateX, RotateY and RotateZ.  
Or any another way …

Thanks,

Luís Gonçalves

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [October 29, 2021, 5:07pm UTC](https://discourse.vtk.org/t/computation-of-the-rotation-transform-between-two-positions/6996/2 "2021-10-29T17:07:29Z")

</div>

Hello,

I think what you want (get the linear transform given a starting and and an ending image) can be obtained with image registration: [Find Image Rotation and Scale Using Automated Feature Matching - MATLAB & Simulink - MathWorks 中国](https://ww2.mathworks.cn/help/vision/ug/find-image-rotation-and-scale-using-automated-feature-matching.html) . If so, I think you may need VTK’s sister library: ITK ([https://itk.org/](https://itk.org/)).

cheers,

Paulo
