A plugin for optical projection tomography reconstruction with model-based neural networks.
Project description
napari-tomodl
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.
Installation
This package requires torch-radon for optimized GPU tomographic reconstruction:
pip install 'torch-radon @ https://rosh-public.s3-eu-west-1.amazonaws.com/radon-v2/cuda-11.1/torch-1.8/torch_radon-2.0.0-cp38-cp38-linux_x86_64.whl'
and PyTorch == 1.8.0
via wheel, which can be downloaded and installed with:
pip install 'torch @ https://download.pytorch.org/whl/cu111/torch-1.8.0%2Bcu111-cp38-cp38-linux_x86_64.whl'
You can install napari-tomodl
via pip:
pip install napari-tomodl
Contributing
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.
License
Distributed under the terms of the MIT license, "napari-tomodl" is free and open source software
Issues
If you encounter any problems, please [file an issue] along with a detailed description.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file napari_tomodl-0.1.17.tar.gz
.
File metadata
- Download URL: napari_tomodl-0.1.17.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbbd87dbd26008b14ebbe2d76d4e545bafe16b3d53aaaae11b852d0c44b5768e |
|
MD5 | c64ed0c9637a7369d53098351c5283eb |
|
BLAKE2b-256 | f1d451d0ac093b8618adb03f766f14959ca9aece18c8c33b204bf95250acf438 |
File details
Details for the file napari_tomodl-0.1.17-py3-none-any.whl
.
File metadata
- Download URL: napari_tomodl-0.1.17-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a645ea348afe438ea0a17c4f2710dd5e8acd708eb0ad72aabba8b038ceb82a |
|
MD5 | 1d2f4276b2e70d17462f6e0ef0f8cc15 |
|
BLAKE2b-256 | df9f9b59623a617c5e2a2a17a94a3423c9b92ec05c2aa28f2aafac0e36eebc35 |