[vtkusers] vtkImageData not aligned on X,Y,Z axes

Glen Lehmann glehmann at imaging.robarts.ca
Fri May 13 09:26:48 EDT 2005


Hi Jean-Michel,

Have a look at vtkTransform for rotation and translation.  The 
transform can be applied using vtkImageReslice.

Optionally, you can just set the directional cosines in vtkImageReslice.

HTH,
Glen

On May 12, 2005, at 7:08 AM, Jean-Michel Rouet wrote:

> Hi all,
>
> I have an image that come from a MRI scanner. In the dicom file, the 
> axis
> orientation with respect to the patient coordinate world are specified.
> When I read this image with vtk (going through a raw data image and a
> vtkImageImport), I'm able to specify the extent and the origin but not 
> the
> orientation.
> Therefore, when I display this image (using vtkImagePlaneWidget) the 
> image
> is not displayed with the correct orientation.
> I tried to find out a way to transform the vtkImagePlaneWidget but to 
> no
> avail.
>
> So is there a way to rotate a vtkImageData somehow ?
> Any other advice is welcome too...
>
> JM
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list