This operation assigns to each pixel the minimum of the maxima of all paths from it to the outside, as if the input image represents a height map, and the operation floods it with water.