Usage: wshedtopo in.pgm connex [i] out.pgm
Description: Topological grayscale 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.
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.
Types supported: byte 2d, byte 3d
Category: connect