<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:medium;"><div>Hello to everyone,</div><div><br></div><div>I have a 4x4 transformation matrix which I am using for Image Reslice and it works fine. Now I want to know how to rotate this matrix 90 degrees around an arbitrary axis so that I can reslice image in the new direction?<br></div><div><br></div><div>When I use vtkTransform as:</div><div><br></div><div>vtkSmartPointer<vtkTransform> 
<!--StartFragment-->Transform<!--EndFragment-->

= vtkSmartPointer<vtkTransform>::New();</div><div>    Transform->SetMatrix(OriginalMatrix);<br>    Transform->RotateWXYZ(90, ArbitraryAxis);</div><div>    Transform<!--EndFragment-->

->Inverse();<br>    <!--StartFragment-->Transform<!--EndFragment-->

->Update();<br><div>    Transform

->GetInverse(NewMatrix);</div><div><br></div><div>It does not give me the right matrix.<br></div><div><br></div><!--StartFragment--><!--EndFragment--></div><div>Can anybody give me a hint on where to start?</div><div><br></div><div>Thanks.<br></div><div><br></div></div></body></html>