[maxgetxml] [Up] [maxinfrec] Introspection Functions

maxsubimage
Returns the image corresponding to the subtree rooted at the given node.

Synopsis

y = maxsubimage ( maxtree , level , index )

Input

maxtree MaxTree

The MaxTree.

level Double

Level of the node.

index Double

Index of the node.

Output

y Image

Node image

Description

Returns the image corresponding to the subtree rooted at the given node. Make sure the node exists before calling this function.

Examples

img = mmreadgray('cameraman.tif')
mxt = maxtree(img)
sub = maxsubimage(mxt, 146, 0)
mmshow(img)
mmshow(sub)
        
img sub

[maxgetxml] [Up] [maxinfrec]