Skip to main content

Radon Transformation for PyTorch 2

Project description

Open In Colab

📦 QBI_radon

QBI_radon is a Python library that provides an efficient, GPU-accelerated, and differentiable implementation of the Radon transform using PyTorch ≥ 2.0.

QBI_radon provides GPU-accelerated forward and backward projection operations for tomography, making it ideal for computed tomography (CT) research and development.

The Radon transform maps an image to its Radon space representation — a key operation in solving CT reconstruction problems. This GPU-accelerated library is designed to help researchers and developers obtain fast and accurate tomographic reconstructions, and seamlessly combine deep learning and model-based approaches in a unified PyTorch framework.


🚀 Key Features

  • Differentiable Forward & Back Projections
    All transformations are fully compatible with PyTorch’s autograd system, allowing gradient computation via .backward().

  • Batch Processing & GPU Acceleration
    Designed for speed — supports batched operations and runs efficiently on GPUs. Faster than skimage's Radon transform.

  • 🔁 Transparent PyTorch API
    Seamless integration with PyTorch pipelines. Compatible with Nvidia AMP for mixed-precision training and inference.

  • 🧩 Cross-Platform Support
    Built entirely on PyTorch ≥ 2.0, ensuring compatibility across major operating systems — Windows, Ubuntu, macOS, and more.


🧠 Applications

  • Deep learning for CT image reconstruction
  • Model-based & hybrid inverse problems
  • Differentiable physics-based layers in neural networks
  • GPU-accelerated Filtered Backprojection

🔧 Implemented Operations

  • Parallel Beam Projections

Additional projection geometries and advanced features are under development. Stay tuned!


📦 Installation

pip install QBI-radon

📊 Benchmarking

We benchmarked QBI_radon against the widely used skimage implementation of the Radon transform on a NVIDIA GeForce RTX 4070 SUPER with the following settings:

Benchmarking Results

👉 QBI_radon is > 25× faster than the CPU-based skimage implementation in both forward and backward projections.

🚀 Google Colab

You can try the library from your browser using Google Colab, you can find an example notebook here.

📚 Citation

If you are using QBI_radon in your research, please cite the following:

DOI

@software{Trinh_QBioImaging_QBI_radon_2025,
author = {Trinh, Minh-Nhat and Teresa, M Correia},
doi = {https://doi.org/10.5281/zenodo.16416059},
month = jul,
title = {{QBioImaging/QBI\_radon}},
url = {https://github.com/QBioImaging/QBI_radon},
version = {v1.7},
year = {2025}
}

📝 Acknowledgements

This study received Portuguese national funds from FCT—Foundation for Science and Technology through projects UIDB/04326/2020 (DOI:https://doi.org/10.54499/UIDB/04326/2020), UIDP/04326/2020 (DOI:https://doi.org/10.54499/UIDP/04326/2020) and LA/P/0101/2020 (DOI:https://doi.org/10.54499/LA/P/0101/2020). This Project received funding from ‘la Caixa’ Foundation and FCT, I P under the Project code LCF/PR/HR22/00533, European Union’s Horizon 2020 research and innovation program under the Marie Skłodowska-Curie OPTIMAR grant with agreement no 867450 (DOI:https://doi.org/10.3030/867450), European Union’s Horizon Europe Programme IMAGINE under grant agreement no. 101094250 (DOI:https://doi.org/10.3030/101094250), and NVIDIA GPU hardware grant.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbi_radon-1.8.4.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qbi_radon-1.8.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file qbi_radon-1.8.4.tar.gz.

File metadata

  • Download URL: qbi_radon-1.8.4.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for qbi_radon-1.8.4.tar.gz
Algorithm Hash digest
SHA256 98fdf8cd2f0c49141f8b81d6bde50414e63ac8bfa2f3dc08aeb676b7ceab6f17
MD5 5f1844096330361b5b82e3ccaa6a3b1d
BLAKE2b-256 4d35f2f5fc840d50eaf015803f00f201eb97f14bcb2a3cb8c70a7fd2869a6c62

See more details on using hashes here.

File details

Details for the file qbi_radon-1.8.4-py3-none-any.whl.

File metadata

  • Download URL: qbi_radon-1.8.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for qbi_radon-1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2d2beb4d39556f45fa9cb7761d6b2867885e087aad439e065d04d5a7dc1d8b7
MD5 4738e99eec505464750eae9ba01d7a49
BLAKE2b-256 a80d63a60b9c02d7a7080cb3019b399ad3e556e90eae022e78afe654d0f8fe26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page