This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Get all image objects


imageobj = imhandles(parentobj)


imageobj = imhandles(parentobj) returns all of the image objects whose ancestor is parentobj. parentobj can be an array of valid figures, axes, images, or uipanel objects.

imhandles ignores colorbars.


imhandles returns an error if the image objects do not have the same figure as their parent.


Return the image object in the current axes.

figure, imshow('moon.tif');
imageobj = imhandles(gca)

Display two images in a figure and use imhandles to get both of the image objects in the figure.

subplot(1,2,1), imshow('autumn.tif');
subplot(1,2,2), imshow('glass.png');
imageobjs = imhandles(gcf)

See Also


Introduced before R2006a

Was this topic helpful?