pytomography.io.CT.dicom
#
This module contains functionality for opening CT images.
Module Contents#
Functions#
|
Given a list of seperate DICOM files, opens them up and stacks them together into a single CT image. |
|
Obtains the maximum z-location from a list of CT DICOM files |
|
Compute the slice thickness for files that make up a CT scan. Though this information is often contained in the DICOM file, it is sometimes inconsistent with the ImagePositionPatient attribute, which gives the true location of the slices. |
- 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
- pytomography.io.CT.dicom.compute_slice_thickness_CT(files_CT)[source]#
Compute the slice thickness for files that make up a CT scan. Though this information is often contained in the DICOM file, it is sometimes inconsistent with the ImagePositionPatient attribute, which gives the true location of the slices.
- Parameters:
files_CT (Sequence[str]) – List of CT DICOM filepaths corresponding to different z slices of the same scan.
- Returns:
Slice thickness of CT scan
- Return type:
float