I have an .avi file, I want to convert it to matrix format.
12 ビュー (過去 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!