tomograph - paramterized computer tomography simulator
tomograph is a parametrized computer tomography simulator, which can be run as
a standalone script or included as a module in your Python programs. It
implements both Radon and reverse Radon transforms. It currently models two
types of beam projections: cone and parallel.
Dependencies
Currently tomograph requires:
- Click (
click) - tqdm (
tqdm) - NumPy (
numpy) - Image Processing SciKit (
scikit-image)
Their respective required versions can be seen in requirements.txt file.
Installation
Simply run:
pip install tomograph
Tomograph supports Python 3.5, Python 3.6 and Python 3.7.
Usage
tomograph can be used directly through command-line interface or as a Python
module:
Commandline
Using command-line interface:
tomograph --model cone --detectors 256 --angle 150 --rotations 512 image.jpg
All command-line arguments can be seen by running:
tomograph --help
Module
Example script that does Radon transform using cone beam model:
from skimage.io import imsave
from tomograph.model import ConeTomograph
# variables
path = 'image.jpg'
detectors = 256
angle = 180
rotations = 512
# one scan per rotation
step = 360 / rotations
# perform Radon transform
tomograph = ConeTomograph(path, detectors, angle)
sinogram = []
for i in range(rotations):
tomograph.rotate(step) # rotate tomograph
scan = tomograph.scan() # do the scan
sinogram.append(scan)
imsave('radon.bmp', np.array(sinogram).T)
Live demonstration
| Beam lines | Radon transform | reverse Radon transform |
|---|---|---|
Metadata
Release files for tomograph 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tomograph-0.1.tar.gz | 4.7 kB | Without provenance | Details for tomograph-0.1.tar.gz |
Release files / tomograph-0.1.tar.gz
| Download URL | tomograph-0.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d808058a4da236488a398d7a6fc36b34e5cfe54e7960057cb9a9c66bccd09393
|
|
BLAKE2b-256 checksum How to use checksums |
6289f2ffb04a53905af2da2d9dd198d225f32f4f9fdf6f5b5a66329d1073ef2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for tomograph 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.