I have an .avi file, I want to convert it to matrix format.
조회 수: 15 (최근 30일)
이전 댓글 표시
.Avi is in struct format, I want to convert it to matrix format so that I use those matrix data in my other code for processing. Help please!
Thanks
댓글 수: 0
답변 (1개)
darova
2020년 4월 6일
Use VideoReader
v = VideoReader('xylophone.mp4');
numFrames = v.NumberOfFrames;
for i = 1:numFrames
I = read(v,i);
imshow(I)
pause(0.5)
end
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!