Display multiple image frames as rectangular montage
montage(
displays all frames of a
multiframe image array I
)I
. By default,
montage
arranges the images so that they roughly form a
square.
montage(
displays a montage of
images specified in the cell array imagelist
)imagelist
. The images can be
of different types and sizes.
montage(___,
treats all
grayscale and binary images (specified using any of the preceding syntaxes) as
indexed images and displays them with the specified color map
map
)map
. If you specify images using file names or an image
datastore, then map
overrides any internal color map present in
the image files. montage
does not modify the color map of RGB
images.
montage(___,
uses
name-value pair arguments to customize the display of the image montage.Name,Value
)
returns a
handle to the single image object that contains all the frames displayed.img
= montage(___)
If you specify an indexed image, then montage
converts it
to RGB using the colormap present in the file.
If there is a data type mismatch between images, then all images are rescaled
to be double
using the im2double
function.
When calculating the number of images to display horizontally and vertically,
montage
considers the aspect ratio of the images, so that
the displayed montage is nearly square.
ImageDatastore
| immovie
| implay
| imshow
| imtile