Summary

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 using VideoReader
  • Selecting the best function for reading a video
  • Playing back videos in MATLAB using movie
  • Making videos from static images
  • Inspecting a video using montage
  • Using implay to playback videos, or image sequences
  • Creating time-lapse videos from regular ones
  • Saving your videos in gif format

In the following chapter, we will extensively cover ways in which MATLAB can be used for the acquisition phase of videos or image sequences. We will present imaqtool in detail and use it to create beautiful time-lapse videos. We will also discuss issues related to disk space preservation in video processing tasks. Finally, we will show how to process video frames in small chunks, aiming at producing a new video with enhanced colors and intensity.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset