Usage: watershed in.pgm mark.pgm connex [i] out.pgm
Description: Topological watershed as defined in [CB97,CNB05].
The parameter connex indicates the connectivity of the minima. Possible choices are 4, 8 in 2d and 6, 26 in 3d.
A marker image is supplied in mark.pgm, see [CNB05a] for the role of this marker..
The result is a binary image, which is the complementary of the set of regional minima of the grayscale topological watershed.
If the parameter i is given, then the dual operator is applied.
References:
[CB97] M. Couprie and G. Bertrand: ``Topological Grayscale Watershed Transformation'', SPIE Vision Geometry V Proceedings, 3168 (136--146), 1997.
[CNB05] M. Couprie and L. Najman and G. Bertrand: "Quasi-linear algorithms for the topological watershed", Journal of Mathematical Imaging and Vision, Vol. 22, No. 2-3, pp. 231-249, 2005.
[CNB05a] M. Couprie and L. Najman and G. Bertrand: "Algorithms for the topological watershed", Discrete geometry for computer imagery, Springer, Vol. 3429, pp. 172-182, 2005.
Types supported: byte 2d, byte 3d
Category: connect