This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this 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