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