[Insight-users] How to use itkVersorRigid3DTransform?

Grace Chen Grace.Chen at swri.ca
Thu Sep 15 11:26:39 EDT 2005


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            ]

Please help!  Thanx!!

Grace



More information about the Insight-users mailing list