movie frame

2 次查看(过去 30 天)
Sivakumaran Chandrasekaran
Its a live video program . and i am converting the video into frames using the code given below.
F = getframe(gcf);
image(F.cdata)
colormap(F.colormap)
vi = getsnapshot(vid);
i am capturing my video for 10 seconds. using the above code, a single frame is generated. My question is whether the frame is generated at the 10th second or the first second or in the middle

回答(1 个)

Walter Roberson
Walter Roberson 2012-6-9
It depends on what is going on with your system. All of the operating systems that MATLAB runs on are general purpose multi-tasking systems in which there could be any number of other things happening on the system, and MATLAB could get interrupted for arbitrarily long periods. The code might happen to run before the video starts, or soon after the video starts, but it could also end up running years after the video starts.

Community Treasure Hunt

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

Start Hunting!

Translated by