[Up] [maxsubtree] MaxTree Constructor

maxtree
Build a MaxTree

Synopsis

y = maxtree ( image , neigh = "4" )

Input

image Image Gray-scale (uint8 or uint16) image

Input image.

neigh String

Connectivity: "4" or "8".

Default: "4" ('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

a = mmreadgray("cameraman.tif")
mt = maxtree(a)
aa = maxgetimage(mt)
bb = maxaopen(mt, 'area', 200)
mmshow(aa)
mmshow(bb)
        
aa bb

[Up] [maxsubtree]