25 if len(sys.argv) != 2:
26 print(
'Usage: ' + sys.argv[0] +
' <InputFileName>')
28 imageFileName = sys.argv[1]
32 ImageType =
itk.Image[PixelType, Dimension]
35 reader.SetFileName(imageFileName)
38 itkToVtkFilter.SetInput(reader.GetOutput())
40 itkToVtkFilter.Update()
41 myvtkImageData = itkToVtkFilter.GetOutput()