Re: [ITK-users] Calculate transformation matrix for two vectors
Dženan Zukić <[email protected]> Thu, 14 Sep 2017 09:21:57 -0400
| Newsgroups | gmane.comp.lib.itk.user |
|---|---|
| Message-ID | <CAPf2UMQ4G88B=gQhezyzp4sBeiyrsCGkoB1_ug=-LsLAdphUuQ@mail.gmail.com> |
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 <[email protected]> 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 > > _____________________________________ 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