Products & Services Solutions Academia Support User Community Company

Learn more about Video and Image Processing Blockset   

To Video Display - Send video data to display devices

Library

Sinks

Description

The To Video Display block sends video data to your computer screen.

InputDescription

Image

M-by-N matrix of intensity values or an M-by-N-by-3 color video signal

R, G, B

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.

For the block to display video data properly, double- and single-precision floating-point pixel values must be from 0 to 1. For any other data type, the pixel values must be between the minimum and maximum values supported by their data type.

Select Full-screen to display your video stream in a full-screen window. Use the Esc key to exit or to return to other applications, hold down the Alt key and press the Tab key. The display window will revert to previous size if other blocks open additional display windows.

Window size and position
Size and position of the display window is saved when the model is saved. Any changes while working with the model should be saved again in order that these preferences are maintained when the model runs.

Host or external monitor visibility

When running a model that contains a To Video Display block, the output of the block might be visible on the host monitor but not the external monitor or vice versa. There are two ways to work around this problem:

  1. Replace the To Video Display block with a Video Viewer block.
    or

  2. Disable the DirectDraw Acceleration, Direct3D Acceleration, and AGP Texture Acceleration on your system.

    1. Start > Run.

    2. For the Open parameter, type dxdiag. Click OK. The DirectX Diagnostic Tool opens.

    3. On the Display tab, click the Disable buttons that are next to DirectDraw Acceleration, Direct3D Acceleration, and AGP Texture Acceleration.

    4. Click Exit.

Menu Options

The To Video Display appears as shown in the following figure.

Rapid Accelerator mode

If your model is set to run in Rapid Accelerator mode, the menu options will not be available. In particular, if Open at Start of Simulation is unchecked, the block will not be included during the run, and therefore the video display will not be visible. For Rapid Accelerator mode, menu preferences are saved only when the model is compiled. To change any of the menu options, change the model to run in Normal mode, and re-save it. You can then run in Rapid Accelerator mode with the new preferences.

Full-screen

Select Full-screen mode to display your video stream in a full screen window.

Open at Start of Simulation

Select Open at Start of Simulation from the View menu for the display window to appear while running the model. If this is not selected, double click the block to display the window.

Image signal

Select the Image signal from the Settings menu to specify how the block accepts a color video signal. If you select One multidimensional signal, the block accepts an M-by-N-by-3 color video signal at one port. If you select Separate color signals, additional ports appear on the block. Each port accepts one M-by-N plane of an RGB video stream.

Preferences

Select Preferences from the Settings menu to view or modify Video and Image Processing Blockset Preferences

Help

The Help menu provides direct links to the To Video Display reference help, Video and Image Processing Blockset reference help, and version information.

Supported Data Types

PortSupported Data Types

Image

  • Double-precision floating point

  • Single-precision floating point

  • Boolean

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

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

R, G, B

Same as Image port

See Also

Frame Rate Display

Video and Image Processing Blockset software

From Multimedia File

Video and Image Processing Blockset software

To Multimedia File

Signal Processing Blockset software

Video To Workspace

Video and Image Processing Blockset software

Video Viewer

Video and Image Processing Blockset software

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS