divide the multiple frames
Afficher commentaires plus anciens
sir,
In the movie file consists the 498 frames i process the all frames for my project gone for out of memory so that i would like to process only the 7multiples of frames. my doubt is regards how to taken the all multiples of 7 frames in the loop format
i did
readerobj = mmreader('dec.wmv');
frame = read(readerobj,inf);
y=readerobj.NumberOfFrames;
for loop=1:y
loop=loop+7;
Image = read( readerobj,loop);
but its not taken the 7 multiples of frame how to resolve it
Réponses (1)
Walter Roberson
le 21 Jan 2013
Modifié(e) : Walter Roberson
le 21 Jan 2013
for loop=1:7:y
Images = read( readerobj,[loop loop+6]);
5 commentaires
ajith
le 21 Jan 2013
Walter Roberson
le 21 Jan 2013
Is your dec.wmv file a Variable Frame Rate? Are you getting warnings about it being variable frame rate, or is readerobj.NumberOfFrames returning reasonable values?
ajith
le 28 Jan 2013
Walter Roberson
le 28 Jan 2013
Try
for loop = 480:498
fprintf('about to try frame %d\n', loop);
try
Images = read(readerobj, loop);
fprintf('got frame %d\n', loop);
catch ME
fprintf('problem on frame %d\n, loop);
end
end
and see how far it gets.
ajith
le 29 Jan 2013
Catégories
En savoir plus sur Automated Driving Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!