Making videos from static images

So, now that we know how to import and play back videos in MATLAB, it is time to discuss how to make our own videos, by stitching together continuous still images. We have already mentioned that videos are essentially a sequence of static images called frames, which, when displayed in the proper frame rate portray the sense of motion to the viewer. Therefore, it is feasible to use sequentially taken photographs to construct a video, provided that their resolutions and bit-depth are the same. When we have gathered all our photographs in one place, we can import them in MATLAB using imread, construct a VideoWriter object with the function of the same name and then use the function writeVideo to add frames to our video. Let's see all these with an example.

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

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