As mentioned in the previous section, time-lapse videos are very advantageous for real-time processing, because of their low frame rates. When we have to perform processing on regular videos however, things start to become much more difficult. Normally, real-time processing of 25 fps or 30 fps videos is not feasible in MATLAB, except if the processing tasks are very basic and they are performed by fast hardware.
Evaluating real-time capabilities with a simple example
In the next example, we will demonstrate a basic video processing code for adjusting the contrast of the frames after they are acquired and we will time the process so that we assess the real-time capabilities of MATLAB.