[ITK] affine transform parameters
Dženan Zukić
dzenanz at gmail.com
Tue Feb 2 07:44:45 EST 2016
Hi Samah,
if this is unclear to you, take a look at transform matrices
<https://en.wikipedia.org/wiki/Transformation_matrix>.
Regards,
Dženan
On Tue, Feb 2, 2016 at 3:54 AM, samah bouzidi <samah.bouzidi at gmail.com>
wrote:
> Hi Matt,
>
> My question is what are that first parameters " the first (NDimension x
> NDimension) parameters defines the matrix in row-major order (where
> the column index varies the fastest)" what they define here ?
>
> Regards
> Samah.
>
>
>
> 2016-02-01 22:44 GMT+01:00 Matt McCormick <matt.mccormick at kitware.com>:
>
>> Hi Samah,
>>
>> As described in the class documentation [1], "the first (NDimension x
>> NDimension) parameters defines the matrix in row-major order (where
>> the column index varies the fastest). The last NDimension parameters
>> defines the translation in each dimensions."
>>
>> HTH,
>> Matt
>>
>> [1] http://www.itk.org/Doxygen/html/classitk_1_1AffineTransform.html
>>
>> On Mon, Feb 1, 2016 at 3:57 PM, samah bouzidi <samah.bouzidi at gmail.com>
>> wrote:
>> > Hi Matt,
>> >
>> > 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) ?
>> > 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).
>> >
>> > regards,
>> > Samah.
>> >
>> >
>> >
>> > 2016-02-01 17:19 GMT+01:00 Matt McCormick <matt.mccormick at kitware.com>:
>> >>
>> >> 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
>> >> >
>> >
>> >
>>
>
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160202/2b410fae/attachment.html>
More information about the Community
mailing list