[ITK] affine transform parameters

Matt McCormick matt.mccormick at kitware.com
Mon Feb 1 11:19:51 EST 2016


Hi Samah,

By calling SetFixedParameters to specify the center of rotation and
SetMatrix on a class that inherits from Rigid3DTransform [1], rotation
angles can be obtained in the form desired, (Euler angles, versor,
...). But, SetMatrix will fail if the matrix is not orthogonal.
Therefore, if a rigid transformation is desired, then the optimization
should be performed with a VersorRigid3DTransform.

Hope that helps,
Matt


[1] http://www.itk.org/Doxygen/html/classitk_1_1Rigid3DTransform.html

On Mon, Feb 1, 2016 at 8:58 AM, samah bouzidi <samah.bouzidi at gmail.com> wrote:
> Hi,
>
> I am running an Affine transform registration in 3D (using this example
> http://itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodAffine).
> I obtain 12 final parameters as : [ a b c d e f g h i j k l] assuming that
> j, k,l are the translation parameters where are the rotation parameters  and
> how can I obtain the rotation angle ?
> my intial parameters are :
> R= [100
>       010
>      001]
> and
> tx=1
> ty=1
> tz=1
> Thank you so much for your help,
> Samah
>
>
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>


More information about the Community mailing list