How to play movine backward in matlab?

4 ビュー (過去 30 日間)
Algorithms Analyst
Algorithms Analyst 2013 年 10 月 15 日
コメント済み: Walter Roberson 2016 年 9 月 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

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 10 月 15 日
for f=frame:-1:1
  4 件のコメント
Gohan
Gohan 2016 年 9 月 30 日
Sir I want video frames should play in reverse ..plz help me
Walter Roberson
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!

Translated by