# 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 2012 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Simplified BSD License [see external/bsd.txt]