dhlrd / ccl

Connected Component Labelling tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connected Component Labelling

A Connected Component Labelling algorithm implemented in Python.

How it works.

Usage:

Python:
	>>> image = Image.open("./binary_image.png")
	>>> bool_image = image_to_2d_bool_array(image)
	>>> result = connected_component_labelling(bool_image, 4)

Terminal (second parameter is connectivity type):
	$  python ccl.py path/to/image.png 4

About

Connected Component Labelling tutorial


Languages

Language:HTML 37.1%Language:Python 34.0%Language:CSS 29.0%