SNIC superpixels algorithm
Project description
Python-only implementation of the SNIC superpixels algorithm (https://www.epfl.ch/labs/ivrl/research/snic-superpixels/).
Typical usage example:
from pysnic.algorithms.snic import snic from pysnic.algorithms.polygonize import polygonize from pysnic.algorithms.ramerDouglasPeucker import RamerDouglasPeucker segmentation, distance_map, number_of_segments = snic( lab_image, 500, 0.01, update_func=lambda num_pixels: print("processed %05.2f%%" % (num_pixels * 100 / number_of_pixels))) rdp = RamerDouglasPeucker(10) graphs = polygonize(segmentation, seeds, rdp)
This project is maintained under: https://github.com/MoritzWillig/pysnic
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysnic-1.0.2.tar.gz
(13.1 kB
view hashes)
Built Distribution
pysnic-1.0.2-py3-none-any.whl
(17.1 kB
view hashes)