pytomography.io.dicom#

Note: This module is still being built and is not yet finished.

Module Contents#

Functions#

get_radii_and_angles(ds)

Gets projections with corresponding radii and angles corresponding to projection data from a DICOM dataset.

dicom_projections_to_data(file)

Obtains ObjectMeta, ImageMeta, and projections from a .dcm file.

HU_to_mu(HU)

get_affine_spect(ds)

get_affine_CT(ds, max_z)

dicom_CT_to_data(files_CT[, file_NM])

Attributes#

pytomography.io.dicom.get_radii_and_angles(ds)#

Gets projections with corresponding radii and angles corresponding to projection data from a DICOM dataset.

Parameters:

ds (Dataset) – pydicom dataset object.

Returns:

Required image data for reconstruction.

Return type:

(torch.tensor[1,Ltheta, Lr, Lz], np.array, np.array)

pytomography.io.dicom.dicom_projections_to_data(file)#

Obtains ObjectMeta, ImageMeta, and projections from a .dcm file.

Parameters:

file (str) – Path to the .dcm file

Returns:

Required information for reconstruction in PyTomography.

Return type:

(ObjectMeta, ImageMeta, torch.Tensor[1, Ltheta, Lr, Lz])

pytomography.io.dicom.a1 = 0.00014376#
pytomography.io.dicom.b1 = 0.1352#
pytomography.io.dicom.a2 = 8.787e-05#
pytomography.io.dicom.b2 = 0.1352#
pytomography.io.dicom.HU_to_mu(HU)#
pytomography.io.dicom.get_affine_spect(ds)#
pytomography.io.dicom.get_affine_CT(ds, max_z)#
pytomography.io.dicom.dicom_CT_to_data(files_CT, file_NM=None)#