Filter löschen
Filter löschen

movie frame

2 Ansichten (letzte 30 Tage)
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

Antworten (1)

Walter Roberson
Walter Roberson am 9 Jun. 2012
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