himage = imhandles(h) takes a graphics handle h as an input and returns all of the image handles whose ancestor is h. h can be an array of valid figure, axes, image, or uipanel handles.himage is an array of image handles.imhandles ignores colorbars in h and does not include its handle in himage.
himage = imhandles(h)
figure, imshow('moon.tif'); himage = imhandles(gca)