Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

immovie

Make movie from multiframe image

Note

immovie(D,size) is an obsolete syntax and is no longer supported. Use immovie(X,map) instead.

Syntax

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

Description

mov = immovie(X,map) returns the movie structure array mov from the images in the multiframe indexed image X with the colormap map. For details about the movie structure array, see the reference page for getframe. To play the movie, call implay.

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.

Class Support

An indexed image can be uint8, uint16, single, double, or logical. A truecolor image can be uint8, uint16, single, or double. mov is a MATLAB® movie structure.

Examples

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

Tips

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

Introduced before R2006a

Was this topic helpful?