Skip to main content

PyCorrectedEmissionCT (corrct)

Python package GitHub tag (latest by date) License DOI

Physically corrected projectors for X-ray induced emission CT. PyCorrectedEmissionCT is usually abbreviated to its python module name: corrct (either pronounced "corr-C-T" or "correct").

This package provides the following functionality:

  • Support for attenuation correction of the forward-projection and back-projection.
  • Various solvers (reconstruction algorithms):
    • Simultaneous Iterative Reconstruction Technique (SIRT).
    • Maximum Likelihood Estimation Maximisation (MLEM).
    • Simultaneous Algebraic Reconstruction Technique (SART).
    • Primal-dual optimization from Chambolle-Pock (Primal-Dual Hybrid Gradient - PDHG), with:
      • Various data fitting terms, including Gaussian and Poisson noise modelling.
      • Various optional regularization terms, including: TV-min, l1-min, laplacian, and wavelet l1-min.
      • Multi-channel (collaborative) regularization terms, like: TNV (Total Nuclear Variation).
    • Fast Iterative Shrinkage-Thresholding Algorithm (FISTA).
    • Filtered Back-Projection (FBP), and its data-dependent filter learning variant (PyMR-FBP).
  • Two projector backends, based on: astra-toolbox and scikit-image.
  • Guided regularization parameter selection, through cross-validation and elbow method.
  • Projection alignment routines.

It contains the code used for the following paper, which also provides a mathematical description of the attenuation correction concepts and algorithms used here:

  • N. Viganò and V. A. Solé, "Physically corrected forward operators for induced emission tomography: a simulation study," Meas. Sci. Technol., no. Advanced X-Ray Tomography, pp. 1–26, Nov. 2017.
    https://doi.org/10.1088/1361-6501/aa9d54

Other useful information:

Getting Started

It takes a few steps to setup PyCorrectedEmissionCT on your machine. We recommend installing Anaconda package manager for Python 3.

Installing with conda

Simply install with:

conda install -c n-vigano corrct

If you want fast tomographic projectors using the astra-toolbox:

conda install -c astra-toolbox astra-toolbox

Installing from PyPI

Simply install with:

pip install corrct

If you are on jupyter, and don't have the rights to install packages system-wide (e.g. on jupyter-slurm at ESRF), then you can install with:

! pip install --user corrct

Installing from source

To install PyCorrectedEmissionCT, simply clone this GitHub project. Go to the cloned directory and run PIP installer:

git clone https://github.com/cicwi/PyCorrectedEmissionCT.git corrct
cd corrct
pip install -e .

Running the examples

To learn more about the functionality of the package check out our examples folder.

Authors and contributors

  • Nicola VIGANÒ - Main developer
  • Jerome LESAINT - Contributor
  • Patrick HARRISON - Contributor

See also the list of contributors who participated in this project.

How to contribute

Contributions are always welcome. Please submit pull requests against the main branch.

If you have any issues, questions, or remarks, then please open an issue on GitHub.

License

This project is licensed under the BSD license - see the LICENSE.md file for details.

Metadata

Release files for corrct 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for corrct 3.0.0
File Size Uploaded
corrct-3.0.0.tar.gz 141.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for corrct 3.0.0
File Interpreter ABI Platform
corrct-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 284.0 kB

Release files / corrct-3.0.0.tar.gz

Download URL corrct-3.0.0.tar.gz
Size 141.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5c76d58e3708ff176ed5a5c979a78e80ce017178e162bae318fee623950a164c
BLAKE2b-256 checksum
How to use checksums
30557e952da9974fd491bd4a0156a99f10647c9af53e77d5a389c75d37e2192c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / corrct-3.0.0-py3-none-any.whl

Download URL corrct-3.0.0-py3-none-any.whl
Size 142.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e89d92b6072ce5ee658b710c78abda6d183359d0afeaff0cb358b59db2b5faf5
BLAKE2b-256 checksum
How to use checksums
59502b7fe6308fcb090598568de1185bfd5ac60ff55f36f74b48202cbb497826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page