[vtkusers] about vtkImageResliceMapper

David Gobbi david.gobbi at gmail.com
Fri Apr 13 16:13:55 EDT 2012


On Fri, Apr 13, 2012 at 2:01 PM, zhixiu li <zhixiuli at gmail.com> wrote:
> Hi,
> When I run the example
> Examples_ImageProcessing_Python_ImageInteractorReslice.py
> The program always says that "
> Reslice.py", line 30, in <module>
>     im = vtk.vtkImageResliceMapper()
> AttributeError: 'module' object has no attribute 'vtkImageResliceMapper"
>
> I install the vtk 5.8 in my laptop and 5.10 in my pc. This python script
> doesn't work on both of them. Anyone has any idea about that? Thank you!

You might not be running the version of VTK that you think you are,
especially if you previously had an older version of VTK installed on
your system.  It never hurts to check:

import vtk
vtk.VTK_VERSION
'5.10.0'

The vtkImageResliceMapper class does not exist in VTK 5.8.

 - David



More information about the vtkusers mailing list