<br>Hi Thuan,<br><br>One potential way to do this <br>is to instantiate a:<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html">http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html</a><br>
<br>Then Set the Matrix to it with the SetMatrix() method of its base class:<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1MatrixOffsetTransformBase.html#aa0adea27a287803d6d724fc379e106cc">http://www.itk.org/Doxygen/html/classitk_1_1MatrixOffsetTransformBase.html#aa0adea27a287803d6d724fc379e106cc</a><br>
<br>Then call the methods:<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html#abae9d5b4646a5ae6b0aadb184b44d471">http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html#abae9d5b4646a5ae6b0aadb184b44d471</a><br>
<br>GetAngleX()<br>GetAngleY()<br>GetAngleZ()<br><br><br>Please note however that the Euler angles representation<br>is inferior to the Quaternion one, and that the values of the<br>angles presume a certain order in which they are applied.<br>
<br>See the SetComputeXYZ() method:<br><a href="http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html#ae80abd5c341200778677af74bff4d00e">http://www.itk.org/Doxygen/html/classitk_1_1Euler3DTransform.html#ae80abd5c341200778677af74bff4d00e</a><br>
<br><br> Luis<br><br><br>--------------------------------------------------------<br><div class="gmail_quote">On Wed, May 23, 2012 at 11:40 PM, Vu Hong Thuan <span dir="ltr"><<a href="mailto:thuanvh@gmail.com" target="_blank">thuanvh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<div>I want to get three rotation angles from a rotation matrix. How to do that? Any suggestion?</div><div>Thanks,</div>
<div>Thuan</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>