<div dir="ltr"><div><div>Hi Matt,<br><br></div>i will try to use the Rigid transform. But, i would like to know in that example what are these parameters in 2D (or 3D) ?<br></div><div>are they the rotation angle the offset of the center and the translations parameters as it is described in the ITK software guide ( pdf page 490).<br><br></div><div>regards,<br></div><div>Samah.<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-01 17:19 GMT+01:00 Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Samah,<br>
<br>
By calling SetFixedParameters to specify the center of rotation and<br>
SetMatrix on a class that inherits from Rigid3DTransform [1], rotation<br>
angles can be obtained in the form desired, (Euler angles, versor,<br>
...). But, SetMatrix will fail if the matrix is not orthogonal.<br>
Therefore, if a rigid transformation is desired, then the optimization<br>
should be performed with a VersorRigid3DTransform.<br>
<br>
Hope that helps,<br>
Matt<br>
<br>
<br>
[1] <a href="http://www.itk.org/Doxygen/html/classitk_1_1Rigid3DTransform.html" rel="noreferrer" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1Rigid3DTransform.html</a><br>
<div><div class="h5"><br>
On Mon, Feb 1, 2016 at 8:58 AM, samah bouzidi <<a href="mailto:samah.bouzidi@gmail.com">samah.bouzidi@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am running an Affine transform registration in 3D (using this example<br>
> <a href="http://itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodAffine" rel="noreferrer" target="_blank">http://itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodAffine</a>).<br>
> I obtain 12 final parameters as : [ a b c d e f g h i j k l] assuming that<br>
> j, k,l are the translation parameters where are the rotation parameters and<br>
> how can I obtain the rotation angle ?<br>
> my intial parameters are :<br>
> R= [100<br>
> 010<br>
> 001]<br>
> and<br>
> tx=1<br>
> ty=1<br>
> tz=1<br>
> Thank you so much for your help,<br>
> Samah<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Community mailing list<br>
> <a href="mailto:Community@itk.org">Community@itk.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
><br>
</blockquote></div><br></div>