[ITK] [ITK-users] Calculate transformation matrix for two vectors

Dženan Zukić dzenanz at gmail.com
Thu Sep 14 09:21:57 EDT 2017


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.)

On Thu, Sep 14, 2017 at 6:41 AM, Swetha Sharma <swetha.bsharma at gmail.com>
wrote:

> 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
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170914/deb4c431/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list