how to convert frames into avi video? give me code

how to convert frames into avi video?

1 件のコメント

David Sanchez
David Sanchez 2013 年 12 月 19 日
Are you asking or demanding?

サインインしてコメントする。

回答 (2 件)

David Sanchez
David Sanchez 2013 年 12 月 19 日

0 投票

From Matlab 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.
Walter Roberson
Walter Roberson 2013 年 12 月 19 日

0 投票

Look at the VideoWriter documentation page and go down to the example near the bottom of the page, click on "AVI File from animation".
See also writevideo with the "frames" syntax

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2013 年 12 月 19 日

回答済み:

2013 年 12 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by