[maxsubimage] [Up] [maxopenrec] Reconstruction and Marker Propagation

maxinfrec
Inf-reconstruction.

Synopsis

y = maxinfrec ( maxtree , marker )

Input

maxtree MaxTree

The MaxTree.

marker Image Gray-scale uint8 image

Marker image.

Output

y Image

Resulting image.

Description

Creates the image y by iterating until stability the dilation of f by bc conditioned to g. We say the y is the inf-reconstruction of g from the marker f.

Examples

a = mmreadgray("galeao.jpg")
#
mk = uint16(zeros(a.shape))
mk[143,380] = a[143,380]
mk[310,183] = a[310,183]
mk[346,576] = a[346,576]
#
mxt = maxtree(a, '8')
b = maxinfrec(mxt, mk)
Warning: downcasting image from uint16 to uint8 (may lose precision)
mmshow(b)
        
b

[maxsubimage] [Up] [maxopenrec]