This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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.

Blocks

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.

Topics

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 System Toolbox™ blocks enable you to export video data from your Simulink model.