Skip to Main Content Skip to Search
Product Documentation

im2frame - Convert image to movie frame

Syntax

f = im2frame(X,map)
f = im2frame(X)

Description

f = im2frame(X,map) converts the indexed image X and associated colormap map into a movie frame f. If X is a truecolor (m-by-n-by-3) image, then map is optional and has no effect.

Typical usage:

M(1) = im2frame(X1,map);
M(2) = im2frame(X2,map);
	...
M(n) = im2frame(Xn,map);
movie(M)

f = im2frame(X) converts the indexed image X into a movie frame f using the current colormap if X contains an indexed image.

See Also

frame2im | movie

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS