Implementation and Complexity of the Watershed‐from‐Markers Algorithm Computed as a Minimal Cost Forest

The watershed algorithm belongs to classical algorithms in mathematical morphology. Lotufo et al.1 published a principle of the watershed computation by means of an iterative forest transform (IFT), which computes a shortest path forest from given markers. The algorithm itself was described for a 2D case (image) without a detailed discussion of its computation and memory demands for real datasets.