[maxgetimage] [Up] [maxgetnodes] Introspection Functions

maxgetindex
Returns the node index array.

Synopsis

y = maxgetindex ( maxtree )

Input

maxtree MaxTree

Output

y Image

Description

The index array and the level array (the image, see maxgetimage ) 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 = maxtree(orig_image)
lev = maxgetimage(mt)
ind = maxgetindex(mt)
i = lev[14,89]
j = ind[14,89]
node_image = maxsubimage(mt, i, j);
mmshow(orig_image);
mmshow(node_image);
        
orig_image node_image

[maxgetimage] [Up] [maxgetnodes]