SNIC超像素算法
pysnic的Python项目详细描述
SNIC超像素算法(https://www.epfl.ch/labs/ivrl/research/snic-superpixels/)的纯Python实现。在
典型用法示例:
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)
此项目维护在:https://github.com/MoritzWillig/pysnic
- 项目
标签: