Skip to content

Toolbox for obtaining PSF models of gamma cameras so they can be used in SPECT reconstruction

License

Notifications You must be signed in to change notification settings

PyTomography/SPECTPSFToolbox

Repository files navigation

SPECT Point Spread Function Toolbox

This toolbox provides functionality for developing and fitting PSF models to SPECT point source data; the developed PSF models can be loaded into PyTomography for general PSF modeling.

Installation

  1. Clone this repository and navigate to the directory you cloned into.
  2. If using anaconda (recommended) then activate the conda environment you want to install the repository in.
  3. Use the command python -m pip install -e . to install the current main branch.

Usage

See the documentation and in particular the associated tutorials for demonstration on how to use the library.

Contributing

If you wish to contribute, please see follow the contributing guidelines file. Contributions might include fixing bugs highlighted in the issues, as well as adding new features, such as new operators that accelerate the computational time of PSF modeling.

License

The package is distributing under the MIT license. More details can be found in the LICENSE.

Testing

There is an automated testing script to test the functionality of the library in the tests folder. It requires the pytest package is ran using pytest test_functionality.py.

Context

Gamma cameras used in SPECT imaging have finite resolution: infinitesmal point sources of radioactivity show up as finite "point spread functions" (PSF) on the camera. Sample PSFs from point sources at various distances from a camera can be seen on the left hand side of the figure below.

The PSF consists of three main components: (i) the geometric component (GC) which depends on the shape and spacing of the collimator bores, (ii) the septal penetration component (SPC) which results from photons that travel through the collimator material without being attenuated, and (iii) the septal scatter component (SSC), which consists of photons that scatter within the collimator material and subsequently get detected in the scintillator. When the thickness of the SPECT collimator is large and the diameter of the collimator bores is small relative to the energy of the detected radiation, the PSF is dominated by the GC and can be reasonably approximated using a distance dependent Gaussian function. When the energy of the photons is large relative to the collimator parameters, the PSF contains significant contributions from SPC and SSC and it can no longer be approximated using simple Gaussian functions. The tails and dim background present in the PSF plots in the figure below correspond to the SPC and SSC. For more information, see chapter 16 of the greatest book of all time

The figure below shows axial slices of reconstructed Monte Carlo Ac225 SPECT data. The images highlighted as "PSF Model" correspond to application of a PSF operator developed in the library on a point source. The images highlighted as "New" are obtainable via reconstruction with PyTomography using the PSF operators obtained in this library; they require comprehensive PSF modeling.

ac225

About

Toolbox for obtaining PSF models of gamma cameras so they can be used in SPECT reconstruction

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published