Modulation-based x-ray phase contrast imaging.
Project description
mbipy
Modulation based x-ray phase contrast imaging.
Installation
Clone the repository and cd to the directory, then:
pip install .
Usage
See the example notebooks.
Algorithms
Normal Integration
Functional Interface
| function | CuPy | JAX | Numba | NumPy | PyTorch |
|---|---|---|---|---|---|
| arnison | ๐ข | ๐ข | ๐ข | ๐ข | ๐ข |
| dct_poisson | ๐ข | ๐ข | ๐ข | ๐ข | ๐ข |
| dst_poisson | ๐ข | ๐ข | ๐ข | ๐ข | ๐ข |
| frankot | ๐ข | ๐ข | ๐ข | ๐ข | ๐ข |
| kottler | ๐ข | ๐ข | ๐ข | ๐ข | ๐ข |
| li | ๐ข | ๐ด | ๐ด | ๐ข | ๐ด |
| southwell | โ | ๐ด | ๐ด | ๐ข | ๐ด |
OOP Interface
| class | CuPy | JAX | Numba | NumPy | PyTorch |
|---|---|---|---|---|---|
| Li | ๐ข | ๐ด | ๐ด | ๐ข | ๐ด |
| Southwell | โ | ๐ด | ๐ด | ๐ข | ๐ด |
Phase Retrieval
Implicit
Functional Interface
| function | CuPy | JAX | Numba | NumPy | PyTorch |
|---|---|---|---|---|---|
| lcs | โ | ๐ข | โ | ๐ข | ๐ข |
| lcs_df | โ | ๐ข | โ | ๐ข | ๐ข |
| lcs_ddf | โ | ๐ข | โ | ๐ข | ๐ข |
OOP Interface
| class | CuPy | JAX | Numba | NumPy | PyTorch |
|---|---|---|---|---|---|
| Lcs | โ | โ | โ | ๐ข | ๐ข |
| LcsDf | โ | โ | โ | ๐ข | ๐ข |
| LcsDDf | โ | โ | โ | ๐ข | ๐ข |
Explicit
Functional Interface
| function | CuPy | JAX | Numba | NumPy | PyTorch |
|---|---|---|---|---|---|
| umpa | โ | โ ยน | โ | ๐ข | โ |
| xst | โ | โ ยน | โ | ๐ข | โ |
| xsvt | โ | โ ยน | โ | ๐ข | โ |
| xst_xsvt | โ | โ ยน | โ | ๐ข | โ |
OOP Interface
| function | CuPy | JAX | Numba | NumPy | PyTorch |
|---|---|---|---|---|---|
| Umpa | โ | โ ยน | โ | ๐ข | โ |
| Xst | โ | โ ยน | โ | ๐ข | โ |
| Xsvt | โ | โ ยน | โ | ๐ข | โ |
| XstXsvt | โ | โ ยน | โ | ๐ข | โ |
ยน Has significant memory usage during compilation due to lack of strides in JAX.
ยฒ No wavelet transform available in numba - contributions welcome!
Data
To download the data for the examples, you need to use git-lfs.
Dependencies
Optional:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mbipy-0.1.0.tar.gz.
File metadata
- Download URL: mbipy-0.1.0.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd4b049ab5b0460e08aff03db4e8d2bdb8837ec88d3e73263618aef04980e093
|
|
| MD5 |
57b88c96af6c744d609836fe0f038a24
|
|
| BLAKE2b-256 |
fc574af116b46e9ed62f5ff102272f8c29f605af95cf025f0c0d2f4b8fdd93cc
|
File details
Details for the file mbipy-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: mbipy-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 55.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f591b40aa18c570502ab3f6393a3dd95f4b3c12aed8e5a89ad659e0a0d12d0e
|
|
| MD5 |
e5cefbbf8a1adbe5aa0a8524ea1ddfbd
|
|
| BLAKE2b-256 |
fabf94f89762107a8c76bce5baabf2212d07e89477713d65b67a74fac77df8f5
|