Filter löschen
Filter löschen

I have an .avi file, I want to convert it to matrix format.

12 Ansichten (letzte 30 Tage)
Farid Ullah Khan
Farid Ullah Khan am 6 Apr. 2020
Beantwortet: darova am 6 Apr. 2020
.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

Antworten (1)

darova
darova am 6 Apr. 2020
Use VideoReader
v = VideoReader('xylophone.mp4');
numFrames = v.NumberOfFrames;
for i = 1:numFrames
I = read(v,i);
imshow(I)
pause(0.5)
end

Community Treasure Hunt

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

Start Hunting!

Translated by