[mmmaxgetxml] [Up] [mmmaxinfrec] Introspection Functions

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

Synopsis

function y = mmmaxsubimage ( 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 = mmmaxtree(img);
sub = mmmaxsubimage(mxt, 146, 0);
mmshow(img);
mmshow(sub);
img sub

[mmmaxgetxml] [Up] [mmmaxinfrec]