Skip to content

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

Notifications You must be signed in to change notification settings

theolepage/pylene-python-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published