Hi,<br><br>This is kinda bizarre. I verified that the zooming (scaling in the transform) happens around the center but the rotation does not...the rotation happens as if the vtkImageChangeInformation filter has not been applied at all...
<br><br>Did anyone else notice this ?? is there something special I have to do for rotations???<br><br>Cheers,<br>Anja<br><br><div><span class="gmail_quote">On 18/09/06, <b class="gmail_sendername">Anja Ende</b> &lt;<a href="mailto:anja.ende@googlemail.com">
anja.ende@googlemail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi everyone,<br><br>I am unsable to have the rotations at the center of the image.
<br><br>So, I have a 3D volume and I pass it through the vtkImageChangeInformation filter. The CenterImageOn() function si called.<br><br>The output of this filter is passed to a vtkImageReslice which has a transformation object that does the scaling and rotation. The scaling works fine but when I rotate the image I can see the center being shifyted. I thought that the vtkTransform should do these operations around the image center. 
<br><br>I printed the vtkImageReslice index matrix and the original matrix is:<br><br>Elements:<br>&nbsp;1 0 0 0<br>&nbsp;0 1 0 0<br>&nbsp;0 0 1 62<br>&nbsp;0 0 0 1<br><br>And after a rotation of one degree:<br><br>0.999848&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -0.0174524

 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0776696<br>0.0174524&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.999848 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -4.44969<br>&nbsp; 0 0 1 62<br>&nbsp; 0 0 0 1<br><br>I was hoping that the center would remain stationary....<br><br>If anyone can cast some light on how I can manage this, I would be really grateful.
<br><br>Thanks,<br></div><div><span class="sg">Anja<br><br>

</span></div></blockquote></div><br>