capturing the same frame
Afficher commentaires plus anciens
My frame is capturing the same beginning video frame in multiple figures. I want the multiple figure to be images of the video as it progrosses, not the same figure for multiple figures. Here is my code. Please fix it
obj = VideoReader('Climate.mp4');
for k = 1 : 5 %fill in the appropriate number
this_frame = read(obj, k);
thisfig = figure();
%thisfig = gcf;
thisax = axes('Parent', thisfig);
image(this_frame, 'Parent', thisax);
title(thisax, sprintf('Frame #%d', k));
end
Réponse acceptée
Plus de réponses (1)
Osita Onyejekwe
le 7 Avr 2017
0 votes
4 commentaires
Osita Onyejekwe
le 7 Avr 2017
Image Analyst
le 7 Avr 2017
This is NOT an answer to your original question. It should have been appended as a comment to your and my prior comments above.
I gave you code that works here: https://www.mathworks.com/matlabcentral/answers/334239-capturing-the-same-frame#comment_444016
Osita Onyejekwe
le 10 Avr 2017
Osita Onyejekwe
le 10 Avr 2017
Catégories
En savoir plus sur Simulated Annealing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
