movie frame
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Walter Roberson
on 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.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!