[Insight-users] How to use itkVersorRigid3DTransform?

Karthik Krishnan Karthik.Krishnan at kitware.com
Thu Sep 15 11:51:26 EDT 2005


Grace Chen wrote:

>Hi all,  Good day!
>
>Can anyone tell me how to convert the transform we get from
>itkVersorRigid3DTransform and itkVersorRigid3DTransformOptimizer into matrix
>(into the corresponding affine transformation)?  Can I use the matrix type
>and the offset type provided by itkVersorRigid3DTransform like this:
>
>itkVersorRigid3DTransform::MatrixType matrix =
>transform->GetRotationMatrix( );
>itkVersorRigid3DTransform::OffsetType offset = transform->GetOffset( );
>
>and the transformation in matrix form is:
>
>[    matrix[0][0]  matrix[0][1]  matrix[0][2]  offset[0]
>     matrix[1][0]  matrix[1][1]  matrix[1][2]  offset[1]
>     matrix[2][0]  matrix[2][1]  matrix[2][2]  offset[2]
>     0                  0                   0
>      1            ]
>
>  
>
Yes.. That is the matrix ( if you are premultiplying p' = M p )

>Please help!  Thanx!!
>
>Grace
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>  
>


More information about the Insight-users mailing list