sentences:  This is a fast and very simple method to implement and understand.It is based on graph traversal methods in graph theory.In short, once the first pixel of a connected component is found, all the connected pixels of that connected component are labelled before going onto the next pixel in the image.