Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Get Image Information in Image Viewer App

To get information about the image displayed in the Image Viewer, use the Image Information tool. The Image Information tool can provide two types of information about an image:

  • Basic information — Includes width, height, class, and image type. For grayscale and indexed images, this information also includes the minimum and maximum intensity values.

  • Image metadata — Displays all the metadata from the graphics file that contains the image. This is the same information returned by the imfinfo function or the dicominfo function.

    Note   The Image Information tool can display image metadata only when you specify the filename containing the image to Image Viewer, e.g., imtool('moon.tif').

For example, view an image in the Image Viewer.

imtool('moon.tif')

Start the Image Information tool by clicking the Image Information button in the Image Viewer toolbar or selecting the Image Information option from the Tools menu in the Image Viewer. (Another option is to open a figure window using imshow and then call imageinfo from the command line.)

The following figure shows the Image Viewer with the Image Information tool. In the figure, the Image Information tool displays both basic image information and image metadata because a file name was specified with imtool.

Image Viewer App with Image Information Tool

Was this topic helpful?