sentences:  This algorithm is part of Vincent and Soille's watershed segmentation algorithm, other implementations also exist.In order to do that a linked list is formed that will keep the indexes of the pixels that are connected to each other, steps (2) and (3) below.The method of defining the linked list specifies the use of a depth or a breadth first search.