The algorithm works on a gray scale image. During the successive flooding of the grey value relief, watersheds with adjacent catchment basins are constructed. ... A set of markers, pixels where the flooding shall start, are chosen. Each is given a different label.