12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

im2framePurpose2im2frameConvert indexed image into movie formatSyntaxDescriptionF = im2frame(X,Map)F = im2frame(X,Map) converts the indexed image X and associated colormapMap into a movie frame F. If X is a truecolor (m-by-n-by-3) image, then MAP isoptional and has no affect.F = im2frame(X) converts the indexed image X into a movie frame F using thecurrent colormap.ExampleTo use im2frame to convert a sequence of images into a movie, first pre-allocatematrix using movein.F(1) = im2frame(X1,map);F(2) = im2frame(X2,map);...F(n) = im2frame(Xn,map);movie(F)See Alsogetframe, frame2im, movie2-227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!