Skip to content

alelouis/pyradon

Repository files navigation

pyradon

rustc rustc

Python bindings for Radon transform rust implementation (described here).
Bindings are handled by PyO3.

How to install

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

How to use

Then import the module pyradon and use the transform method from it.

import pyradon
radon_transform = pyradon.transform(...)

Example

The notebook example.ipynb shows an example of the module on a Shepp-Logan phantom.