[mmmaxgetimage] [Up] [mmmaxgetnodes] Introspection Functions

mmmaxgetindex
Returns the node index array.

Synopsis

function y = mmmaxgetindex ( maxtree )

Input

maxtree MaxTree

Output

y Image

Description

The index array and the level array (the image, see mmmaxgetimage ) jointly maps image pixels to MaxTree nodes. The index array is an Int32 array and has the same dimension as the image.

Examples

orig_image = mmreadgray('cameraman.tif');
mt = mmmaxtree(orig_image);
lev = mmmaxgetimage(mt);
ind = mmmaxgetindex(mt);
i = lev(15,90);
j = ind(15,90);
node_image = mmmaxsubimage(mt, i, j);
mmshow(orig_image);
mmshow(node_image);
orig_image node_image

[mmmaxgetimage] [Up] [mmmaxgetnodes]