COMPONENTS LABELING
In this process elements that belongs to different connected component are given different labels
CONNECTIVITY AND CONNECTED COMPONENTS
given a connectivity neighborhood defined as follows
A path from pixel to pixel is a sequence of pixels such that and are neighbors according to the chosen connectivity.
A set of pixel is a connected region if all pixels are connected
A connected region is a connected (foreground/background) region if all pixels in the region are (foreground/background)
A connected component of a binary image is a maximal connected foreground region
LABELING BY FLOOD-FILL
A new label is propagated throughout a connected component starting from a “seed” pixel. Propagation is typically carried out by a iterative procedure which requires scanning the image multiple times.this solution is not efficient