[Up] [mmMaxsubtree] MaxTree Constructor

mmMaxtree
Build a MaxTree

Synopsis

MaxTree mmMaxtree ( const Image& image , const String& neigh = "4" );

Input

image Image [ Gray-scale (uint8 or uint16) image ]

Input image.

neigh String

Connectivity: "4" or "8".

Default: "4"

Output

y MaxTree

Opaque object representing the MaxTree.

Description

This function creates a MaxTree using the ideas and the algoritm proposed in [SOG98]. The MaxTree is returned as an opaque object. This object is passed to the filtering functions, implemented through the pruning of the tree.

Examples

Image a = mmReadgray("cameraman.tif");
MaxTree mt = mmMaxtree(a);
Image aa = mmMaxgetimage(mt);
Image bb = mmMaxaopen(mt, "area", 200);
mmShow(aa);
mmShow(bb);
        

aa bb

[Up] [mmMaxsubtree]