Module imageproc::regionlabelling [] [src]

Functions for finding and labelling connected components of an image.

Enums

Connectivity

Whether we consider the NW, NE, SW, and SE neighbors of a pixel to be connected to it, or just its N, S, E, and W neighbors.

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.