The Ordered Queue and the Optimality of the Watershed Approaches

This work reviews the watershed in the graph framework of a shortest-path forest problem using a lexicographic path cost formulation. This formulation reflects the behavior of the ordered queue-based watershed algorithm. This algorithm is compared with our proposed shortest-path forest (IFT-Image Foresting Transform), concluding that the watershed is a special case of that. Recently many different watershed approaches are being used. We point out that in some cases the watershed algorithm does not keep the optimality of the shortest-path forest solution unless the IFT algorithm is used. The main difference between the algorithms is related to permanently labeling a pixel when inserting or removing it from the queue. The watershed based on the pixel dissimilarity using IFT can segment one-pixel width regions while keeping the optimality of the shortest-path forest solution.