FUNCTION REFERENCE

imshow

Display an image (Image Processing Toolbox style).

Display an image (Image Processing Toolbox style).

Syntax

imshow(I)

Syntax

imshow(I, [low high])

Syntax

imshow(I, [])

Syntax

imshow(RGB)

Syntax

imshow(X, map)

Syntax

imshow(filename)

A grayscale image shows in gray over the range of its class (0 to 1 for double, 0 to 255 for uint8). [low high] sets that range; [] uses the image's own minimum and maximum. An m-by-n-by-3 array is truecolor; imshow(X, map) shows an indexed image with its colormap; imshow(filename) reads the file with imread. imshow keeps pixels square and hides the axes (axis image, axis off).

Example

imshow(rand(64))

Example

I = uint8(reshape(0:255, 16, 16)); h = imshow(I, []); h.CDataMapping   % 'scaled'

Differences from MATLAB: InitialMagnification and Border are accepted and ignored; the figure is not resized to the image.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.