ToMoDL Reconstruction


A plugin for optical projection tomography reconstruction with model-based neural networks.

License MIT PyPI Python Version tests codecov napari hub

A plugin for optical projection tomography reconstruction with model-based neural networks.

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Introduction and usage

ToMoDL allows users to reconstruct tomography images from its raw projections juts from uploading them as an ordered stack of files into the napari viewer.

1 - Load ordered stack: Click File -> Open Files as Stack... and load the angular projections for parallel beam optical tomography reconstruction.


2 - Select the current volume in the dropdown menu with the button 'Select image layer'. Notice that the projections should be in grayscale and more than one slide in the stack.


3 - If the axis is not correctly aligned in acquisition time, we provide an algorithm to do so by clicking on 'Align axis'. This will align the sinogram respect to the center of the detector in order to maximise the variance of the reconstructions. See Walls et al.

4 - Reshape the reconstructed volume to a desired size. This can be useful to prevent exhausting your computing capabilities.

5 - Clip to circle should be False by default.

6 - Choose if filtering should be used. By the moment we only allow using ramp filtering for FBP only (both CPU and GPU).

7 - Choose the correct order of the axis of the projections (T -> Theta axis, Q -> Detector axis)

8 - Reconstruct! A new Layer should be created on top of the projections stack containing the reconstructed volume.



This package requires torch-radon for optimized GPU tomographic reconstruction:

pip install 'torch-radon @'

and PyTorch == 1.8.0 via wheel, which can be downloaded and installed with:

pip install 'torch @'

You can install napari-tomodl via pip:

pip install napari-tomodl


Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.


Distributed under the terms of the MIT license, "napari-tomodl" is free and open source software


If you encounter any problems, please [file an issue] along with a detailed description.


  • 0.1.17

Last updated:

  • 20 May 2024

First released:

  • 15 March 2023


Supported data:

  • Information not submitted

Plugin type:

GitHub activity:

  • Stars: 0
  • Forks: 0
  • Issues + PRs: 0

Python versions supported:

Operating system:


  • magicgui
  • qtpy
  • napari[all]
  • pyqt5
  • phantominator
  • opencv-python
  • scikit-image