Input, Output, and Graphics

Deinterlacing, chroma-resampling, and color space formatting and conversions.

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.


expand all

Write Binary FileWrite binary video data to files
Image From FileImport image from image file
Image From WorkspaceImport image from MATLAB workspace
Video ViewerDisplay binary, intensity, or RGB images or video streams
From Multimedia FileRead video frames and audio samples from compressed multimedia file
To Multimedia FileWrite video frames and audio samples to multimedia file
To Video DisplayDisplay video data
Frame Rate DisplayCalculate average update rate of input signal
Video To WorkspaceExport video signal to MATLAB workspace
Video From WorkspaceImport video signal from MATLAB workspace
Read Binary FileRead binary video data from files
CompositingCombine pixel values of two images, overlay one image over another, or highlight selected pixels
Draw MarkersDraw markers by embedding predefined shapes on output image
Draw ShapesDraw rectangles, lines, polygons, or circles on images
Image PadPad signal along its rows, columns, or both
Insert TextDraw text on image or video stream.


Import from Video Files

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.

Export to Video Files

The Computer Vision Toolbox™ blocks enable you to export video data from your Simulink model.