:py:mod:`pytomography.io.dicom`
===============================

.. py:module:: pytomography.io.dicom

.. autoapi-nested-parse::

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



Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

   pytomography.io.dicom.get_radii_and_angles
   pytomography.io.dicom.dicom_projections_to_data
   pytomography.io.dicom.dicom_MEW_to_data
   pytomography.io.dicom.get_HU2mu_coefficients
   pytomography.io.dicom.HU_to_mu
   pytomography.io.dicom.get_affine_spect
   pytomography.io.dicom.get_affine_CT
   pytomography.io.dicom.dicom_CT_to_data
   pytomography.io.dicom.get_SPECT_recon_algorithm_dicom



.. py:function:: get_radii_and_angles(ds)

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

   :param ds: pydicom dataset object.
   :type ds: Dataset

   :returns: Required image data for reconstruction.
   :rtype: (torch.tensor[1,Ltheta, Lr, Lz], np.array, np.array)


.. py:function:: dicom_projections_to_data(file)

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

   :param file: Path to the .dcm file
   :type file: str

   :returns: Required information for reconstruction in PyTomography.
   :rtype: (ObjectMeta, ImageMeta, torch.Tensor[1, Ltheta, Lr, Lz])


.. py:function:: dicom_MEW_to_data(file, type='DEW')


.. py:function:: get_HU2mu_coefficients(ds)


.. py:function:: HU_to_mu(HU, a1, b1, a2, b2)


.. py:function:: get_affine_spect(ds)


.. py:function:: get_affine_CT(ds, max_z)


.. py:function:: dicom_CT_to_data(files_CT, file_NM=None)


.. py:function:: get_SPECT_recon_algorithm_dicom(projections_file, atteunation_files = None, use_psf = False, scatter_type = None, prior = None, recon_algorithm_class = OSEMOSL, object_initial = None)


