[vtkusers] vtkImageReslace + vtkTransform - Rotate Image
Paulo Henrique Junqueira Amorim
paulojamorim at gmail.com
Wed Mar 5 15:03:42 EST 2008
Hello All,
I have the need to rotate the image, but the image is only in accordance
with the rotational axis Z.
Code ok with Z axis:
bounds = self.image.GetOutput().GetBounds()
center = -1.0*bounds[0], -1.0*bounds[1], -1.0*bounds[2]
reslice = vtkImageReslice()
transform = vtkTransform()
transform.RotateZ(90)
# exemple: transform.RotateY(90) Not working
reslice.SetInput(self.img_ant)
reslice.SetResliceTransform(transform)
transform.Translate(center)
When rotate in the X or Y axis, the image is empty.
Someone has already gone through this??
Regards,
Paulo Henrique J. Amorim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080305/4545ea23/attachment.htm>
More information about the vtkusers
mailing list