Main Content

To Video Display

Display images or video frames

  • To Video Display block

Libraries:
Computer Vision Toolbox / Sinks

Description

The To Video Display block displays RGB or YCbCr formatted images and video frames. The display created by the block is lightweight and high performance, capable of displaying high definition video at high frame rates.

Examples

Ports

Input

expand all

Input image or video, specified as an M-by-N matrix, M-by-N-by-T array, or M-by-N-by-C-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video. If the input is a 4-D array, the third dimension is the number of color channels, and the fourth dimension is the number of frames in the video.

Dependencies

To enable this port, set the Input Color Format parameter to RGB, and set Image signal to One multidimensional signal.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Red color component of the input image or video, specified as an M-by-N matrix or M-by-N-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video.

Note

Inputs to the R, G, and B ports must have the same dimensions and data type.

Dependencies

To enable this port, set the Input Color Format parameter to RGB, and set Image signal to Separate color signals.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Green color component of the input image or video, specified as an M-by-N matrix or M-by-N-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video.

Note

Inputs to the R, G, and B ports must have the same dimensions and data type.

Dependencies

To enable this port, set the Input Color Format parameter to RGB, and set Image signal to Separate color signals.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Blue color component of the input image or video, specified as an M-by-N matrix or M-by-N-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video.

Note

Inputs to the R, G, and B ports must have the same dimensions and data type.

Dependencies

To enable this port, set the Input Color Format parameter to RGB, and set Image signal to Separate color signals.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Luma component of the input image or video, specified as an M-by-N matrix or M-by-N-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video.

Dependencies

To enable this port, set the Input Color Format parameter to YCbCr 4:2:2.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Blue-difference chroma component of the input image or video, specified as an M-by-N/2 matrix or M-by-N/2-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video.

Dependencies

To enable this port, set the Input Color Format parameter to YCbCr 4:2:2.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Red-difference chroma component of the input image or video, specified as an M-by-N/2 matrix or M-by-N/2-by-T array. If the input is a 3-D array, the third dimension is the number of frames in the video.

Dependencies

To enable this port, set the Input Color Format parameter to YCbCr 4:2:2.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Parameters

expand all

View

Display the video stream in various window sizes:

  • Normal — Modify the display size at the start of the simulation.

  • Full-screen (Esc to exit) — Display the video stream in a full-screen window. To exit the full-screen view, press Esc.

  • True size (1:1) — Display the input image at a one-to-one pixel ratio, at the start of the simulation.

To set the Video Display window to open automatically and display video frames when the simulation begins, select Open at Start of Simulation. If you clear this parameter, the block is not included during runtime, and the simulation runs in Accelerator Mode (Simulink).

Settings

Specify the color format of the input image:

  • RGB — Specify the input colorspace as RGB. You can select whether to input the image as a single signal or as individual color signals using the Image signal parameter.

  • YCbCr 4:2:2— Specify the input colorspace as YCbCr. You must input the image as separate signals to the three input ports, Y, Cb and Cr.

Specify whether the block accepts an RGB color input as a single signal or as separate signals for each color channel..

  • One multidimensional signal — The block accepts RGB input as a single array through one port.

  • Separate color signals — The block accepts RGB input as three separate matrices or arrays, one for each color channel, to the R, G, and B ports.

Dependencies

To enable this parameter, set the Input Color Format parameter to RGB.

Block Characteristics

Data Types

Boolean | double | integer | single

Multidimensional Signals

yes

Variable-Size Signals

yes

Extended Capabilities

Version History

Introduced before R2006a