PyTomography#

PyTomography is a python library for medical image reconstruction. It uses the functionality of PyTorch to (i) enable fast GPU-accelerated reconstruction and (ii) permit easy integration of deep-learning models in traditional reconstruction algorithms

Supported Modalities#

  • Single Photon Computed Emission Tomography (SPECT)

    • System matrix modeling includes attenuation correction, PSF modeling, scatter correction

  • 2D Positron Emission Tomography (PET)

    • System matrix modeling includes attenuation correction and radially dependent PSF modeling.

Reconstruction Algorithms#

  • Maximum Liklihood Expectation Maxmimum (MLEM) and Ordered Subset Expectation Maximum (OSEM)

    • One-Step-Late and Block-Sequential-Regularization techniques to encorporate Bayesian priors

    • Option to include anatomical information (such as MRI/CT) in Bayesian priors

Supported Datatypes#

  • DICOM

    • Ability to open and align SPECT/CT data and create attenuation maps

    • Repository of collimator parameters for different scanners for obtaining PSF information

  • SIMIND output files (interfile)

    • Functionality to combine multiple sets of projections (representing different organs/regions) into a single set of projection data

Installation#

This library requires a local installation of PyTorch. As such, it is recommended to first create a virtual environment using anaconda:

conda create --name pytomography

and then install the version of PyTorch you need inside that environment here. Finally, install pytomography using the following command:

pip install pytomography