How to play movine backward in matlab?

2 visualizaciones (últimos 30 días)
Algorithms Analyst
Algorithms Analyst el 15 de Oct. de 2013
Comentada: Walter Roberson el 30 de Sept. de 2016
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

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Oct. de 2013
for f=frame:-1:1
  4 comentarios
Gohan
Gohan el 30 de Sept. de 2016
Sir I want video frames should play in reverse ..plz help me
Walter Roberson
Walter Roberson el 30 de Sept. de 2016
for f=frame:-1:1
thisframe=read(vidobj,f);
figure(1);imshow(thisframe);
end

Iniciar sesión para comentar.

Categorías

Más información sobre Specialized Power Systems en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by