use subplot play video
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pan
am 19 Feb. 2012
Bearbeitet: dpb
am 16 Okt. 2013
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');
0 Kommentare
Akzeptierte Antwort
Chandra Kurniawan
am 19 Feb. 2012
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 Kommentare
Chandra Kurniawan
am 20 Feb. 2012
This code is used for 1 video only..
Please try implay for several videos.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!