Pink 0.9

lvkern.c File Reference

grayscale ultimate leveling thinning More...


Detailed Description

grayscale ultimate leveling thinning

Usage: lvkern in.pgm {imcond.pgm|null} connex out.pgm

Description: Grayscale ultimate leveling thinning (refs. [BEC97, CBB01]). The parameter connex gives the connectivity used for the minima; possible choices are 4, 8 in 2D and 6, 26 in 3D. Let F be the function corresponding to the input image in.pgm. Let G be the function corresponding to the input image imcond.pgm, or the null function if the keyword null is used. The algorithm is the following:

Repeat until stability:
    select p such that T--(p,F) = 1 and such that F(p) is minimal
    F(p) = max{ delta-(p,F), G(p) }    
Result: F

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.

Types supported: byte 2D, byte 3D.

Category: topogray

Author:
Michel Couprie

Example:

lvkern ur1 null 4 ur1_lvkern minima ur1_lvkern 4 ur1_lvkern_m

ur1.gif
ur1_lvkern.gif
ur1_lvkern_m.gif
ur1 ur1_lvkern ur1_lvkern_m