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

Display multiple images in the single figure

Syntax

Description

You can use subimage in conjunction with subplot to create figures with multiple images, even if the images have different colormaps. subimage works by converting images to true color for display purposes, thus avoiding colormap conflicts.

subimage(X,map) displays the indexed image X with colormap map in the current axes.

subimage(I) displays the intensity image I in the current axes.

subimage(BW) displays the binary image BW in the current axes.

subimage(RGB) displays the truecolor image RGB in the current axes.

subimage(x,y...) displays an image using a nondefault spatial coordinate system.

h = subimage(...) returns a handle to an image object.

Class Support

The input image can be of class logical, uint8, uint16, or double.

Example

See Also

imshow

subplot in the MATLAB Function Reference


Previous page  stretchlim tformarray Next page

© 1994-2005 The MathWorks, Inc.