Python bindings for Pylene, a C++ image processing library.
mkdir build && cd build
conan remote add lrde-public https://artifactory.lrde.epita.fr/artifactory/api/conan/lrde-public
conan install .. --build missing -s compiler.cppstd=20
cmake .. && make
In order to run our test suite you have to type make test
.
Make sure to install beforehand the python dependencies with pip3 install -r tests/requirements.txt
.
Note: setting ALWAYS_SHOW_IMAGES = True
in tests/test_example.py
will show a comparison between output and expected images for each test.
Start a Python 3 interpreter in the folder of the generated pylene.*.so
.
from skimage import data
import pylene as pln
input1 = data.camera() # grayscale 8-bit image
input2 = data.retina() # rgb-8 image
out1 = pln.morpho.dilation(input1, pln.se.disc(4))
out2 = pln.morpho.dilation(input2, pln.se.rectangle(width=11, height=5))
- Aymeric Fages
- Nicolas Blin
- Pierrick Made
- Theo Lepage
- Youssef Benkirane