In the previous chapter, we were mainly concerned with ways to acquire videos and process them on the fly, using MATLAB. Furthermore, we have already discussed the basic tools and functions for loading existing videos into the MATLAB Workspace window in Chapter 7, Adding Motion – From Static Images to Digital Videos.
Now it is time to revisit the issue of processing existing video files and using MATLAB as a powerful video processing suite. We will start with basic manipulations, such as importing a video to alter its dimensions or crop it, and save it in a new file.
A very common task handled efficiently by all video processing suites, is cropping and resizing of our video. Usually, the user has to define the area of the video frame that should be cropped and/or the resizing factor. The video processing software then applies the cropping and/or resizing and saves the new video file. This is a fairly simple process, which consists...