This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Video Viewer

Display binary, intensity, or RGB images or video streams





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.

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 > Image Signal to 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.

Saving the Settings of Multiple Video Viewer GUIs

The Video Viewer GUI enables you to save and load the settings of multiple GUI instances. Thus, you only need to configure the Video Viewer GUIs that are associated with your model once. To save the GUI settings, select File > Instrumentation Sets > Save Set. To open the preconfigured GUIs, select File > Instrumentation Sets > Load Set.

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 System Toolbox™ software

To Multimedia File

Computer Vision System Toolbox software

To Video Display

Computer Vision System Toolbox software

Video To Workspace

Computer Vision System Toolbox software


Image Processing Toolbox

Introduced before R2006a

Was this topic helpful?