Image Processing Toolbox User's Guide Previous page   Next Page

Converting a Multiframe Image to a Movie

To create a MATLAB movie from a multiframe image array, use the immovie function. This example creates a movie from a multiframe indexed image.

In the example, X is a four-dimensional array of images that you want to use for the movie.

You can play the movie in MATLAB using the movie function.

This example loads the multiframe image mri.tif and makes a movie out of it. It won't do any good to show the results here, so try it out; it's fun to watch.

Note that immovie displays the movie as it is being created, so you actually see the movie twice. The movie runs much faster the second time (using movie).


Previous page  Displaying All Frames of a Multiframe Image at Once Texture Mapping Next page

© 1994-2005 The MathWorks, Inc.