Read, write, and view multimedia files in a range of formats, including AVI and MPEG. Adding graphics to video can help you visualize extracted information or debug a system design. You can also insert text to display the number of objects or to keep track of other key information. You can insert graphics, such as markers, lines, and polygons, to mark found features, delineate objects, or highlight other key features.
|Write Binary File||Write binary video data to files|
|Image From File||Import image from image file|
|Image From Workspace||Import image from MATLAB workspace|
|Video Viewer||Display binary, intensity, or RGB images or video streams|
|From Multimedia File||Read video frames and audio samples from compressed multimedia file|
|To Multimedia File||Write video frames and audio samples to multimedia file|
|To Video Display||Display video data|
|Frame Rate Display||Calculate average update rate of input signal|
|Video To Workspace||Export video signal to MATLAB workspace|
|Video From Workspace||Import video signal from MATLAB workspace|
|Read Binary File||Read binary video data from files|
|Compositing||Combine pixel values of two images, overlay one image over another, or highlight selected pixels|
|Draw Markers||Draw markers by embedding predefined shapes on output image|
|Draw Shapes||Draw rectangles, lines, polygons, or circles on images|
|Image Pad||Pad signal along its rows, columns, or both|
|Insert Text||Draw text on image or video stream.|
In this example, you use the From Multimedia File source block to import a video stream into a Simulink® model and the To Video Display sink block to view it.
The Computer Vision System Toolbox™ blocks enable you to export video data from your Simulink model.