Hello All,<br><br><div id="result_box" dir="ltr">I have the need to rotate the image, but the image is only in accordance with the rotational axis Z. <br><br>Code ok with Z axis:<br><br>bounds = self.image.GetOutput().GetBounds()<br>
center = -1.0*bounds[0], -1.0*bounds[1], -1.0*bounds[2]<br><br>reslice = vtkImageReslice()<br>transform = vtkTransform()<br>transform.RotateZ(90) <br># exemple: transform.RotateY(90) Not working<br>reslice.SetInput(self.img_ant)<br>
reslice.SetResliceTransform(transform)<br>transform.Translate(center)<br><br><br> When rotate in the X or Y axis, the image is empty.<br> <br>Someone has already gone through this??<br><br><br>Regards,<br>Paulo Henrique J. Amorim<br>
</div><br>