This chapter gave an introduction to videos and basic video processing tools contained in MATLAB. A brief explanation of the various properties of the videos that affect their quality has been provided in the first half of the chapter, followed by a presentation of the basic functions used to load videos in MATLAB. Then, ways to playback videos and video sequences using the command line were demonstrated and the process of video creation from static images was explained. In the rest of the chapter, two useful tools for inspecting and playing back videos were discussed and then the creation of time-lapse videos in both .avi
and .gif
formats was shown in detail. More specifically, this chapter covered:
An introduction to digital video basics
A presentation of interlaced and progressive videos
A discussion on frame rates and their importance
Some thoughts and examples on choosing a frame rate
Loading videos in MATLAB using
aviread
Loading videos in MATLAB using
mmreader
Loading videos in MATLAB...