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 Computer Vision Matlab Toolbox      Version 2.0
 Copyright 2014 Piotr Dollar.  [pdollar-at-gmail.com]
 Licensed under the Simplified BSD License [see external/bsd.txt]

Generated by m2html © 2003