use subplot play video

5 ビュー (過去 30 日間)
Pan
Pan 2012 年 2 月 19 日
編集済み: dpb 2013 年 10 月 16 日
Hi,I need to help.
This code could show image in same figure, but I want to play video not image,I don't know how to do.
subplot(1,2,1), imshow('autumn.tif');
subplot(1,2,2), imshow('glass.png');

採用された回答

Chandra Kurniawan
Chandra Kurniawan 2012 年 2 月 19 日
Hi, maybe
obj = mmreader('xylophone.mpg');
vid = read(obj);
for frame = 1 : size(vid,4)
bw = im2bw(vid(:,:,:,frame));
subplot(2,1,1); imshow(vid(:,:,:,frame));
subplot(2,1,2); imshow(bw);
drawnow;
end
  2 件のコメント
Pan
Pan 2012 年 2 月 19 日
Hi, may I ask you the quwstion.
I want to play the video, for example "can.avi" and "watch.avi" and "book.avi" and " phone.avi". I try it but the code doesn't play.
Chandra Kurniawan
Chandra Kurniawan 2012 年 2 月 20 日
This code is used for 1 video only..
Please try implay for several videos.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by