pytomography.io.CT.dicom#

This module contains functionality for opening CT images.

Module Contents#

Functions#

open_CT_file(files_CT)

Given a list of seperate DICOM files, opens them up and stacks them together into a single CT image.

compute_max_slice_loc_CT(files_CT)

Obtains the maximum z-location from a list of CT DICOM files

pytomography.io.CT.dicom.open_CT_file(files_CT)[source]#

Given a list of seperate DICOM files, opens them up and stacks them together into a single CT image.

Parameters:

files_CT (Sequence[str]) – List of CT DICOM filepaths corresponding to different z slices of the same scan.

Returns:

CT scan in units of Hounsfield Units at the effective CT energy.

Return type:

np.array

pytomography.io.CT.dicom.compute_max_slice_loc_CT(files_CT)[source]#

Obtains the maximum z-location from a list of CT DICOM files

Parameters:

files_CT (Sequence[str]) – List of CT DICOM filepaths corresponding to different z slices of the same scan.

Returns:

Maximum z location

Return type:

float