data

Load DICOM datasets as numpy arrays with voxel dimensions

source

load_example_ct

 load_example_ct (labels=None, orientation='AP',
                  bone_attenuation_multiplier=1.0)

Load an example chest CT for demonstration purposes.


source

read

 read (filename:str|pathlib.Path, labelmap:str|pathlib.Path=None,
       labels:int|list=None, orientation:str='AP',
       bone_attenuation_multiplier:float=1.0, **kwargs)

Read an image volume from a variety of formats, and optionally, any given labelmap for the volume. Converts volume to a RAS+ coordinate system and moves the volume isocenter to the world origin.

Type Default Details
filename str | Path Path to CT volume
labelmap str | Path None Path to a labelmap for the CT volume
labels int | list None Labels from the mask of structures to render
orientation str AP Frame-of-reference change
bone_attenuation_multiplier float 1.0 Scalar multiplier on density of high attenuation voxels
kwargs
Returns Subject Any additional information to be stored in the torchio.Subject