How to play movine backward in matlab?

조회 수: 1 (최근 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