File Input/Output (IO)¶
ITK IO¶
-
LoadITKFile
(filename, device='cpu', dtype=torch.float32)[source]¶ Load an ITK compatible file using the SimpleITK package into a
StructuredGrid
object.- Parameters
filename (str) – File path
device (str, optional) – Memory location - one of ‘cpu’, ‘cuda’, or ‘cuda:X’ where X specifies the device identifier. Default: ‘cpu’
dtype (str, optional) – Data type, specified from torch memory types. Default: ‘torch.float32’
- Returns
StructuredGrid