Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

imhandles

Get all image objects

Syntax

imageobj = imhandles(parentobj)

Description

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.

Note

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

Examples

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?