The Computer Vision System Toolbox™ blocks enable you to export video data from your Simulink® model. In this example, you use the To Multimedia File block to export a multimedia file from your model. This example also uses Gain blocks from the Math Operations Simulink library.
You can open the example model by typing
at the MATLAB® command line.
Run your model.
You can view your video in the To Video Display window.
By increasing the red, green, and blue color values, you increase the contrast of the video. The To Multimedia File block exports the video data from the Simulink model to a multimedia file that it creates in your current folder.
This example manipulated the video stream and exported it from a Simulink model to a multimedia file. For more information, see the To Multimedia File block reference page.
The block parameters in this example were modified from default values as follows:
|To Multimedia File|