itk.ImageToVTKImageFilter crashing Python


I am using itk and vtk in Python. Specifically I am trying to convert an ITK image to a VTK image using the function itk.ImageToVTKImageFilter. I am currently trying to replicate the code here. If I even try to access this function (just to read the documentation!) then it causes Python to crash and exit.

Has anyone else tested this function and had problems? Should I file a bug report?

OS: Windows 7
Python 3.6
ITK v5.0.0.post1 from PyPi
VTK v8.1.2 from PyPi


I tracked it down. The team is aware and will be fixed in the next release.

@Michael_Hogg please try itk-vtkglue 0.3.0 and let us know how it goes.

Hi Matt,

Just tried itk-vtkglue 0.3.0 - works as expected. Thanks!


1 Like