Image Processing Toolbox User's Guide Previous page   Next Page
imgca

Get handle to most recent current axis containing an image

Syntax

Description

hax = imgca returns the handle of the of the most recent current axis that contains an image. The current axis may be in a regular figure window or in an Image Tool window.

If no figure contains an axis that contains an image, imgca creates a new axis.

hax = imgca(hfig) returns the handle to the current axis that contains an image in the specified figure (it need not be the current figure).

Note

imgca can be useful in getting the handle to the Image Tool axis. Because the Image Tool turns graphics object handle visibility off, you cannot retrieve a handle to the tool figure using gca.

Example

Label the coins in the image, compute their centroids, and superimpose the centroid locations on the image. View the results using imtool and imgca.

Display original image I and superimpose centroids.

See also

gca, gcf, imgcf


Previous page  imfinfo imgcf Next page

© 1994-2005 The MathWorks, Inc.