Pink 0.9

toposhrinkgray.c File Reference

topologically controled grayscale shrinking (one step) More...


Detailed Description

topologically controled grayscale shrinking (one step)

Usage: toposhrinkgray in.pgm connex t+min t+max t--min t--max {0|a|d} [inhibit] out.pgm

Description: Topologically controled grayscale shrinking (one step).

The parameter <0|a|d> indicates the action performed on the selected point p:

The parameter connex indicates the connectivity of the binary object. Possible choices are 4, 8 in 2D and 6, 18, 26 in 3D.

If the parameter inhibit is given and is a binary image name, then the points of this image (set Y) will be left unchanged.

  For all points p, not in Y, and such that 
      t+min <= T+(p) <= t+max and t--min <= T--(p) <= t--max 
    lower p according to the chosen strategy

Types supported: byte 2d, byte 3d

Category: topogray

References:

[BEC97] G. Bertrand, J. C. Everat and M. Couprie: "Image segmentation through operators based upon topology", Journal of Electronic Imaging, Vol. 6, No. 4, pp. 395-405, 1997.

[CBB01] M. Couprie, F.N. Bezerra, Gilles Bertrand: "Topological operators for grayscale image processing", Journal of Electronic Imaging, Vol. 10, No. 4, pp. 1003-1015, 2001.

Author:
Nicolas Combaret 2006