How can I convert binary frames into movie?

5 ビュー (過去 30 日間)
Ali Noori
Ali Noori 2015 年 5 月 25 日
回答済み: Image Analyst 2015 年 5 月 25 日
How can I convert sequences of binary images into movie.avi?

採用された回答

Walter Roberson
Walter Roberson 2015 年 5 月 25 日
bw = colormap(gray(2));
Then for each frame
frame = im2frame(uint8(YourBinaryImage), bw);
then use VideoWriter to write the frame; see http://www.mathworks.com/help/matlab/ref/videowriter-class.html

その他の回答 (1 件)

Image Analyst
Image Analyst 2015 年 5 月 25 日
I've attached a couple of demos that make movies. Try them out and adapt them to your purposes.

Community Treasure Hunt

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

Start Hunting!

Translated by