[mmMaxsubimage] [Up] [mmMaxopenrec] Reconstruction and Marker Propagation

mmMaxinfrec
Inf-reconstruction.

Synopsis

Image mmMaxinfrec ( const MaxTree& maxtree , const Image& 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

Image a = mmReadgray("galeao.jpg");
//
Image mk = Image(a.width(), a.height(), 1, "uint16", 0.0);
mk.putpixel(380, 143, 0, a.getpixel(380, 143, 0));
mk.putpixel(183, 310, 0, a.getpixel(183, 310, 0));
mk.putpixel(576, 346, 0, a.getpixel(576, 346, 0));
//
MaxTree mxt = mmMaxtree(a, "8");
Image b = mmMaxinfrec(mxt, mk);
mmShow(b);
        

b

[mmMaxsubimage] [Up] [mmMaxopenrec]