[Insight-users] CenteredAffineTransform

yaolu at engineering.uiowa.edu yaolu at engineering.uiowa.edu
Sun Oct 23 17:43:44 EDT 2005


Hello,
I have a volume of Images with rotation of an angle. I want to display the
volume without the rotation, so I used CenteredAffineTransform(inverse matrix)to
rotated back :
typedef itk::CenteredAffineTransform< double,3 >  TransformType;

                TransformType::Pointer transform = TransformType::New();
                transform->SetMatrix(RotationMatrix);

                TransformType::Pointer invtransform = TransformType::New();
                TransformType::InputPointType RotationCenter;
                RotationCenter[0] = 0;
                RotationCenter[1] = 0;
                RotationCenter[2] = 0;

                invtransform->SetCenter(RotationCenter);
                transform->GetInverse(invtransform);

                resamplefilter->SetTransform( invtransform );

But why the result is still rotated with an angle? Could you please give me some
hint? Thank you for your reply.

Jenny



More information about the Insight-users mailing list