Module region_labelling

Source
Expand description

Functions for finding and labelling connected components of an image.

Enums§

Connectivity
Determines which neighbors of a pixel we consider to be connected to it.

Functions§

connected_components
Returns an image of the same size as the input, where each pixel is labelled by the connected foreground component it belongs to, or 0 if it’s in the background. Input pixels are treated as belonging to the background if and only if they are equal to the provided background pixel.