CT data pre- and post-processing tools, simulation of spectral data, and batch-processing of large number of datasets
Project description
flexCALC
This project is a part of the larger X-ray tomographic reconstruction toolbox comprised of flexDATA, flexTOMO and flexCALC. flexCALC contains various routines useful with tomographic reconstructions but not directly reconstruction algorithms. These routines include data pre- and post-processing tools, simulation of spectral data, and batch-processing of large number of datasets.
Getting Started
We recommend that the user installs conda package manager for Python 3.
Installing with conda
conda install flexcalc -c cicwi -c astra-toolbox -c nvidia
Installing with pip
pip install flexcalc
Installing from source
git clone https://github.com/cicwi/flexcalc.git
cd flexcalc
pip install -e .
Running the examples
To learn about the functionality of the package check out our examples/
folder. Examples are separated into blocks that are best to run in VS Code / Spyder environment step-by-step.
Modules
flexCALC is comprised of several modules:
flexcalc.process
: Pre- and post-processing routines. For instance: volume registration, rings removal etc.flexcalc.analyze
: Utilities for data analysis.flexcalc.batch
: Define a batch processing pipeline and push multiple datasets through it.
Typical usage:
# Import:
from flextomo import project
from flexcalc import process
# Read data and apply beam-hardening:
proj, geom = process.process_flex(path)
proj = process.equivalent_density(proj, geom, energy, spec, compound = 'Al', density = 2.7)
# Align the rotation centre:
process.optimize_rotation_center(proj, geom, subscale = 2)
# Reconstruct:
vol = project.init_volume(proj)
project.FDK(proj, vol, meta['geometry'])
Authors and contributors
- Alexander Kostenko - Initial work
- Willem Jan Palenstijn - Packaging, installation and maintenance
- Alexander Skorikov - Packaging, installation and maintenance
How to contribute
Contributions are always welcome. If you have any issues, questions, or remarks, then please open an issue on GitHub.
License
This project is licensed under the GNU GENERAL PUBLIC License - see the LICENSE.md file for details
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 Distributions
Built Distribution
File details
Details for the file flexcalc-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: flexcalc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698b7ddb4ae5d91221dcaf3e693612b9743e88121b66938a03f338ce436c7264 |
|
MD5 | 4a70186f906cf7f09bf94cbb01a0f007 |
|
BLAKE2b-256 | 838a7922712ac15684fcd17d0a16e4cf326a85ba263cc2ae543b0e9cd1727140 |