[Up] [mmmaxsubtree] MaxTree Constructor

mmmaxtree
Build a MaxTree

Synopsis

function y = mmmaxtree ( image , neigh )

Input

image Image Gray-scale (uint8 or uint16) image Input image.
neigh String

Default: '4'

Connectivity: "4" or "8".

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

a = mmreadgray('cameraman.tif');
mt = mmmaxtree(a);
aa = mmmaxgetimage(mt);
bb = mmmaxaopen(mt, 'area', 200);
mmshow(aa);
mmshow(bb);
aa bb

[Up] [mmmaxsubtree]