capturing the same frame
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Osita Onyejekwe
2017년 4월 7일
0 개 추천
댓글 수: 4
Osita Onyejekwe
2017년 4월 7일
Image Analyst
2017년 4월 7일
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
2017년 4월 10일
Osita Onyejekwe
2017년 4월 10일
카테고리
도움말 센터 및 File Exchange에서 Simulated Annealing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
