Image Processing Toolbox | ![]() ![]() |
Make a movie of a multiframe indexed image
Syntax
Description
mov = immovie(X,map)
returns the movie structure array, mov
, from the images in the multiframe indexed image X
with the colormap map
. As it creates the movie array, it displays the movie frames on the screen. You can play the movie using the MATLAB movie
function. For details about the movie structure array, see the reference page for getframe
.
X
comprises multiple indexed images, all having the same size and all using the colormap map
. X
is an m
-by-n
-by-1-by-k
array, where k
is the number of images.
mov = immovie(RGB)
returns the movie structure array mov
from the images in the multiframe, truecolor image RGB
.
RGB
comprises multiple truecolor images, all having the same size. RGB
is an m
-by-n
-by-3-by-k
array, where k
is the number of images.
Remarks
You can also use the MATLAB function avifile
to make movies from images. The avifile
function creates AVI files. In addition, you can convert an existing MATLAB movie into an AVI file by using the movie2avi
function.
Class Support
An indexed image can be uint8
, uint16
, double
, or logical
. A truecolor image can be uint8
, uint16
, or double
. mov
is a MATLAB movie structure.
Example
See Also
avifile
, getframe
, montage
, movie
, movie2avi
![]() | imlincomb | immultiply | ![]() |