Main Content

Video Viewer

Display binary, intensity, or RGB images or video streams




  • Video Viewer block


The Video Viewer block enables you to view a binary, intensity, or RGB image or a video stream. The block provides simulation controls for play, pause, and step while running the model. The block also provides pixel region analysis tools. During code generation, Simulink® Coder™ software does not generate code for this block.


The To Video Display block supports code generation.

See the following table for descriptions of both input types.

ImageM-by-N matrix of intensity values or an M-by-N-by-P color video signal where P is the number of color planes.
R/G/BScalar, vector, or matrix that represents one plane of the RGB video stream. Inputs to the R, G, or B ports must have the same dimensions and data type.

Select File > Separate Color Signalsto set the input to either Image or RGB.



 Playback Toolbar

 Setting Viewer Configuration

 Core Pane

 Tools Pane

 Video Information

 Colormap for Intensity Video

 Status Bar

Message Log

The Message Log dialog provides a system level record of configurations and extensions used. You can filter what messages to display by Type and Category, view the records, and display record details.

The Type parameter allows you to select either All, Info, Warn, or Fail message logs. The Category parameter allows you to select either Configuration or Extension message summaries. The Configuration messages indicate when a new configuration file is loaded. The Extension messages indicate a component is registered. For example, you might see a Simulink message, which indicates the component is registered and available for configuration.

Supported Data Types

PortSupported Data Types
  • Double-precision floating point

  • Single-precision floating point

  • Boolean

  • 8-, 16-, and 32-bit signed integer

  • 8-, 16-, and 32-bit unsigned integer


Same as Image port

See Also

From Multimedia File

Computer Vision Toolbox™ software

To Multimedia File

Computer Vision Toolbox software

To Video Display

Computer Vision Toolbox software

Video To Workspace

Computer Vision Toolbox software


Image Processing Toolbox

Introduced before R2006a