Python bindings for Radon transform rust implementation (described here).
Bindings are handled by PyO3.
Clone the repository and create a Python virtual environment with maturin
dependency.
gh clone alelouis/pyradon
conda create -n env_name python=3.9
pip install maturin
Then build the library and generate the wheel using maturin
.
maturin build --release
Finally, install the built wheel in target/wheels
. For example on arm64 macosx:
pip install target/wheels/pyradon-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Then import the module pyradon
and use the transform
method from it.
import pyradon
radon_transform = pyradon.transform(...)
The notebook example.ipynb
shows an example of the module on a Shepp-Logan phantom.