[Paraview] how to use VTK filter on simple.ImageReader OR how to show VTK filter output in paraview

Martin Luessi m-luessi at northwestern.edu
Fri Nov 27 11:33:40 EST 2009


Hi,

I'm working on a python script to open MRI volumes in NIFTI format in
paraview. In the NIFTI file, there is a 4x4 transform matrix to
transform voxel coordinates to normalized coordinates in mm. I would
like to use the mm coordinates in paraview. I can think of 2 methods
to accomplish this:

1: Use "simple.ImageReader" and "vtkImageReslice" with a
"vtkMatrix4x4" transform matrix.

In tried this method, but I can't figure out how to apply the
"vtkImageReslice" filter to the "simple.ImageReader" object.

2: Use "vtkImageReader" and "vtkImageReslice" with a "vtkMatrix4x4"
transform matrix.

In this case I don't know how to add the output of "vtkImageReslice"
to paraview (simple.Show() doesn't work).

Thanks,

Martin


More information about the ParaView mailing list