26 raise Exception(f
"Usage: {sys.argv[0]} inputFile outputFile")
28 image = itk.imread(sys.argv[1], itk.UC)
30 image_dimension = image.GetImageDimension()
33 scale=[1.5] * image_dimension, center=[x / 2
for x
in itk.size(image)]
36 scaled_image = itk.resample_image_filter(
37 image, transform=transform, size=itk.size(image)
40 itk.imwrite(scaled_image, sys.argv[2])