Main Content

immovie

Make movie from multiframe image

Description

mov = immovie(X,cmap) returns the movie structure array mov from the images in the multiframe indexed image X with colormap cmap.

example

mov = immovie(RGB) returns the movie structure array mov from the images in the multiframe truecolor image RGB.

Examples

collapse all

load mri
mov = immovie(D,map);
implay(mov)

Input Arguments

collapse all

Multiframe indexed image, specified as an m-by-n-by-1-by-k numeric array, where k is the number of frames. Each frame uses the same colormap, cmap.

Data Types: single | double | uint8 | uint16 | logical

Colormap associated with multiframe indexed image X, specified as a c-by-3 numeric matrix containing the RGB values of c colors.

Multiframe truecolor image, specified as an m-by-n-by-3-by-k numeric array, where k is the number of frames.

Data Types: single | double | uint8 | uint16

Output Arguments

collapse all

Movie, returned as an k-by-1 array of movie frame structures. For details about the movie frame structure, see getframe.

Tips

  • To play the movie, use the Video Viewer app.

  • To create a movie that can be played outside the MATLAB® environment, use a VideoWriter object.

Version History

Introduced before R2006a