[mmMaxgetxml] [Up] [mmMaxinfrec] Introspection Functions

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

Synopsis

Image mmMaxsubimage ( const MaxTree& maxtree , const Double& level , const Double& 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

Image orig_image = mmReadgray("cameraman.tif");
MaxTree mt = mmMaxtree(orig_image);
Image node_image = mmMaxsubimage(mt, 146, 0);
mmShow(orig_image);
mmShow(node_image);
        

orig_image node_image

[mmMaxgetxml] [Up] [mmMaxinfrec]