1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20""" An example script that read an image and call's SimpleITK's Show method to display it. """
21import os
22import sys
23
24import SimpleITK as sitk
25
26if len(sys.argv) != 2:
27 print(f"Usage: {sys.argv[0]} inputImage")
28 sys.exit(1)
29
31
32if "SITK_NOSHOW" not in os.environ:
SITKIO_EXPORT Image ReadImage(const PathType &filename, PixelIDValueEnum outputPixelType=sitkUnknown, const std::string &imageIO="")
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...
void SITKIO_EXPORT Show(const Image &image, const std::string &title="", const bool debugOn=ProcessObject::GetGlobalDefaultDebug())