How to play movine backward in matlab?
1 view (last 30 days)
Show older comments
Hi all
I want to play video frames backwardly in matlab can any one help in this regards
My code is
source='LID.AVI';
vidobj=VideoReader(source);
frames=vidobj.NumberofFrames
for f=1:frames
thisframe=read(vidobj,f);
figure(1);imshow(thisframe);
end
This plays the video normally but when I want to change the loop
for f=frame:1
thisframe=read(vidobj,f);
figure(1);imshow(thisframe);
end
it does not work.any help is appreciated
0 Comments
Answers (1)
Walter Roberson
on 15 Oct 2013
for f=frame:-1:1
4 Comments
Walter Roberson
on 30 Sep 2016
for f=frame:-1:1
thisframe=read(vidobj,f);
figure(1);imshow(thisframe);
end
See Also
Categories
Find more on Specialized Power Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!