Computer Vision System Toolbox

Video Processing, Display, and Graphics

Computer Vision System Toolbox provides algorithms and tools for video processing. You can read and write from common video formats, apply common video processing algorithms such as deinterlacing and chroma-resampling, and display results with text and graphics burnt into the video. Video processing in MATLAB uses System objects™, which avoids excessive memory use by streaming data for processing one frame at a time.

Video deinterlacing in MATLAB.
Video deinterlacing in MATLAB.

Video I/O

Computer Vision System Toolbox can read and write multimedia files in a wide range of formats, including AVI, MPEG, and WMV. You can stream video to and from MMS sources over the Internet or a local network. You can acquire video directly from web cameras, frame grabbers, DCAM-compatible cameras, and other imaging devices using Image Acquisition Toolbox™. Simulink users can use the MATLAB workspace as a video source or sink.

Video Display

The system toolbox includes a video viewer that lets you:

  • View video streams in-the-loop as the data is being processed
  • View any video signal within your code or block diagram
  • Use multiple video viewers at the same time
  • Freeze the display and evaluate the current frame
  • Display pixel information for a region in the frame
  • Pan and zoom for closer inspection as the simulation is running
  • Start, stop, pause, and step through Simulink simulations one frame at a time
Model with viewers for four videos.
Model with viewers for four videos: (from left) original, estimated background, foreground pixels, and results of tracking.


Adding graphics to video helps with visualizing extracted information or debugging a system design. You can 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. The system toolbox fuses text and graphics into the image or video itself rather than maintaining a separate layer. You can combine two video sources in a composite that can highlight objects or a key region.

Images with text and graphics inserted.
Images with text and graphics inserted. Adding these elements can help you visualize extracted information and debug your design.
Next: Fixed Point and Code Generation

Try Computer Vision System Toolbox

Get trial software

MATLAB/Simulink를 이용한 자동차 Active Safety System 개발 및 검증

View webinar