Discussion:
[ITK-users] Calculate transformation matrix for two vectors
Swetha Sharma
2017-09-14 10:41:24 UTC
Permalink
Dear All,


I would like to calculate a transformation matrix between two vectors
using Itk. Right now I am manually calculating the translation parameter
between the vector and the angle between the two vectors. Is there any
other easy way to find the transformation matrix given the vectors? If not,
Is there a function to calculate the rotation matrix given the angle and
the axis of rotation is arbitary axis.

-swetha
Dženan Zukić
2017-09-14 13:21:57 UTC
Permalink
Hi Swetha,

how are your vectors represented? 3 numbers or a pair of points?

There is an angle-axis rotation function, Rotate3D
<https://itk.org/Doxygen/html/classitk_1_1AffineTransform.html#a7b2c85cdc28135827da937db01d87dd9>
.

Regards,
DÅŸenan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)
Post by Swetha Sharma
Dear All,
I would like to calculate a transformation matrix between two vectors
using Itk. Right now I am manually calculating the translation parameter
between the vector and the angle between the two vectors. Is there any
other easy way to find the transformation matrix given the vectors? If not,
Is there a function to calculate the rotation matrix given the angle and
the axis of rotation is arbitary axis.
-swetha
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...