How to play movine backward in matlab?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2013-10-15
for f=frame:-1:1
4 个评论
Walter Roberson
2016-9-30
for f=frame:-1:1
thisframe=read(vidobj,f);
figure(1);imshow(thisframe);
end
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!