imageinfo
Image Information tool
Syntax
Description
Use the imageinfo
function to create an Image Information
tool. The tool displays information about the basic attributes and metadata of an image.
The information includes the width, height, data type, and image type.
imageinfo
creates an Image Information tool that displays
information about the basic attributes of the image in the current figure.
imageinfo(
creates an Image
Information tool associated with the image in the graphics container
h
)h
.
imageinfo(
creates an Image
Information tool containing image metadata from the graphics file
filename
)filename
. The image does not have to be displayed in a
figure window.
imageinfo(
creates an Image
Information tool containing the image metadata in the structure
info
)info
.
returns the figure hTool
= imageinfo(___)hTool
containing the Image Information
tool.
Examples
Input Arguments
Output Arguments
Tips
The table lists the basic image attribute information included in the Image Information tool display. Note that the tool contains either four or six fields, depending on the type of image.
Attribute Name
Value
Width (columns)
Number of columns in the image
Height (rows)
Number of rows in the image
Class
Data type used by the image, such as
uint8
.Note
For
single
orint16
images,imageinfo
returns aClass
value ofdouble
, because the image object converts theCData
of these images todouble
.Image type
One of the image types identified by the Image Processing Toolbox™ software:
intensity
truecolor
,binary
, orindexed
.Minimum intensity or index
For grayscale images, this value represents the lowest intensity value of any pixel.
For indexed images, this value represents the lowest index value into a colormap.
This field is not included for
binary
ortruecolor
images.Maximum intensity or index
For grayscale images, this value represents the highest intensity value of any pixel.
For indexed images, this value represents the highest index value into a colormap.
This field is not included for
binary
ortruecolor
images.imageinfo
gets information about image attributes by querying the image object'sCData
. The image object converts theCData
forsingle
orint16
images to classdouble
. In these cases,imageinfo
displays aClass
attribute ofdouble
, even though the image is of classsingle
orint16
. For example,h = imshow(ones(10,"int16")); class(get(h,"CData"))
Version History
Introduced before R2006a