use subplot play video
조회 수: 6 (최근 30일)
이전 댓글 표시
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
채택된 답변
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
Chandra Kurniawan
2012년 2월 20일
This code is used for 1 video only..
Please try implay for several videos.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!