29 print(
'Usage: ' + sys.argv[0] +
' inputFile.dcm outputFile.png')
36 InputImageType = itk.Image.SS2
37 OutputImageType = itk.Image.UC2
43 filter.SetOutputMinimum( 0 )
44 filter.SetOutputMaximum(255)
46 filter.SetInput( reader.GetOutput() )
47 writer.SetInput( filter.GetOutput() )
49 reader.SetFileName( sys.argv[1] )
50 writer.SetFileName( sys.argv[2] )