# movieToImages

## PURPOSE

Creates a stack of images from a matlab movie M.

## SYNOPSIS

function I = movieToImages( M )

## DESCRIPTION

     Creates a stack of images from a matlab movie M.

     Repeatedly calls frame2im. Useful for playback with playMovie.

     USAGE
      I = movieToImages( M )

     INPUTS
      M   - a matlab movie

     OUTPUTS
      I   - MxNxT array (of images)

     EXAMPLE
      load( 'images.mat' );  [X,map]=gray2ind(video(:,:,1));
      M = fevalArrays( video, @(x) im2frame(gray2ind(x),map) );
      I = movieToImages(M); playMovie(I);

     See also PLAYMOVIE

     Piotr's Image&Video Toolbox      Version 2.0
     Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- fevalArrays Used to apply the same operation to a stack of array elements.

This function is called by: