Skip to content
/ mbipy Public

Modulation based x-ray phase contrast imaging.

License

Notifications You must be signed in to change notification settings

Nin17/mbipy

Repository files navigation

mbipy

Ruff

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:

About

Modulation based x-ray phase contrast imaging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages