This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

immovie

Make movie from multiframe image

Syntax

mov = immovie(X,cmap)
mov = immovie(RGB)

Description

example

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

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

Color map 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, call implay.

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

Introduced before R2006a