Get information about image attributes.
Return attributes for the image in the current figure or in the image handle himage. Returns a struct with the fields:
"Width"
Number of columns.
"Height"
Number of rows.
"Class"
Note that some classes are converted to double for display.
"Image type"
One of "binary"
, "truecolor"
, "intensity"
, or
"indexed"
.
"Minimum intensity"
"Maximum intensity"
These values are not returned for images of type "truecolor"
and "binary"
.
For indexed images, the returned values are the lowest and highest index for the colormap, not the used index for the lowest or highest intensity or their values. This weird behaviour is kept for Matlab compatibility.
This function is meant to be used in an interactive session, and not programatically. The properties of an image should be measured from the image variable itself not from the figure object. In addition this function is purposely Matlab incompatible on their return value which returns a cell array of strings which is only useful for display.
Package: image