21 parser = argparse.ArgumentParser(description=
"Get Image Size.")
22 parser.add_argument(
"input_image")
23 args = parser.parse_args()
25 image = itk.imread(args.input_image, itk.UC)
27 region = image.GetLargestPossibleRegion()
28 size = region.GetSize()
33 size = itk.size(image)
38 print(np.asarray(image).shape)
50 print(region.IsInside(indexInside))
56 print(region.IsInside(indexOutside))