[Insight-users] Get rotation angles from rotation matrix

Luis Ibanez luis.ibanez at kitware.com
Mon May 28 17:03:42 EDT 2012


Hi Thuan,

One potential way to do this
is to instantiate a:

http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html

Then Set the Matrix to it with the SetMatrix() method of its base class:

http://www.itk.org/Doxygen/html/classitk_1_1MatrixOffsetTransformBase.html#aa0adea27a287803d6d724fc379e106cc

Then call the methods:

http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html#abae9d5b4646a5ae6b0aadb184b44d471

GetAngleX()
GetAngleY()
GetAngleZ()


Please note however that the Euler angles representation
is inferior to the Quaternion one, and that the values of the
angles presume a certain order in which they are applied.

See the SetComputeXYZ() method:
http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html#ae80abd5c341200778677af74bff4d00e


   Luis


--------------------------------------------------------
On Wed, May 23, 2012 at 11:40 PM, Vu Hong Thuan <thuanvh at gmail.com> wrote:

> Hi all,
> I want to get three rotation angles from a rotation matrix. How to do
> that? Any suggestion?
> Thanks,
> Thuan
>
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120528/7636136b/attachment.htm>


More information about the Insight-users mailing list