20 if len(sys.argv) != 2:
21 print(
'Usage: ' + sys.argv[0] +
' <InputFileName>')
23 imageFileName = sys.argv[1]
27 ImageType =
itk.Image[PixelType, Dimension]
30 reader.SetFileName(imageFileName)
33 itkToVtkFilter.SetInput(reader.GetOutput())
35 itkToVtkFilter.Update()
36 myvtkImageData = itkToVtkFilter.GetOutput()