theolepage / pylene-python-bindings

Python bindings for Pylene, a C++ image processing library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python bindings for Pylene

Python bindings for Pylene, a C++ image processing library.

Build

  1. mkdir build && cd build
  2. conan remote add lrde-public https://artifactory.lrde.epita.fr/artifactory/api/conan/lrde-public
  3. conan install .. --build missing -s compiler.cppstd=20
  4. cmake .. && make

Tests

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.

Usage

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))

Authors

  • Aymeric Fages
  • Nicolas Blin
  • Pierrick Made
  • Theo Lepage
  • Youssef Benkirane

About

Python bindings for Pylene, a C++ image processing library.


Languages

Language:C++ 80.3%Language:Python 15.8%Language:CMake 3.9%