| [mmMaxgetimage] [Up] [mmMaxgetnodes] | Introspection Functions |
| User Feedback |
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.
Image orig_image = mmReadgray("cameraman.tif");
MaxTree mt = mmMaxtree(orig_image);
Image lev = mmMaxgetimage(mt);
Image ind = mmMaxgetindex(mt);
int i = (int)lev.getpixel(89, 14, 0);
int j = (int)ind.getpixel(89, 14, 0);
Image node_image = mmMaxsubimage(mt, i, j);
mmShow(orig_image);
mmShow(node_image);
![]() |
![]() |
|
| orig_image | node_image |
| [mmMaxgetimage] [Up] [mmMaxgetnodes] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |