| MATLAB Function Reference | Search  Help Desk |
| im2frame | Examples See Also |
Convert indexed image into movie format
Syntax
F = im2frame(X,Map)
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 affect.
F = im2frame(X)
converts the indexed image X into a movie frame F using the current colormap.
Example
To useim2frame to convert a sequence of images into a movie, first pre-allocate matrix using movein.
F(1) = im2frame(X1,map); F(2) = im2frame(X2,map); ... F(n) = im2frame(Xn,map); movie(F)
See Also
getframe, frame2im, movie