| [maxgetimage] [Up] [maxgetnodes] | Introspection Functions |
| User Feedback |
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.
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] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |