25 from distutils.version
import StrictVersion
as VS
27 print(
"ITK 4.10.0 is required.")
30 if len(sys.argv) != 2:
31 print(
'Usage: ' + sys.argv[0] +
' <InputFileName>')
33 imageFileName = sys.argv[1]
36 PixelComponentType = itk.UC
38 ImageType =
itk.Image[PixelType, Dimension]
41 reader.SetFileName(imageFileName)
44 itkToVtkFilter.SetInput(reader.GetOutput())
46 itkToVtkFilter.Update()
47 myvtkImageData = itkToVtkFilter.GetOutput()