Export video signal to MATLAB workspace
Sinks
visionsinks
The Video To Workspace block exports a video signal to the MATLAB® workspace. If the video signal is represented by intensity values, it appears in the workspace as a three-dimensional M-by-N-by-T array, where M and N are the number of rows and columns in a single video frame, and T is the number of frames in the video signal. If it is a color video signal, it appears in the workspace as a four-dimensional M-by-N-by-C-by-T array, where M and N are the number of rows and columns in a single video frame, C is the number of inputs to the block, and T is the number of frames in the video stream. During code generation, Simulink® Coder™ does not generate code for this block.
This block supports intensity and color images on its ports.
Port | Input | Supported Data Types | Complex Values Supported |
---|---|---|---|
Image | M-by-N matrix of intensity values or an M-by-N-by-P color video signal where P is the number of color planes |
| No |
R, G, B | Scalar, vector, or matrix that represents one plane of the RGB video stream. Outputs from the R, G, or B ports have the same dimensions. | Same as I port | No |
Use the Variable name parameter to specify the MATLAB workspace variable to which to write the video signal.
Use the Number of inputs parameter to determine the number of inputs to
the block. If the video signal is represented by intensity values, enter
1
. If it is a color (R, G, B) video signal, enter
3
.
Use the Limit data points to last parameter to determine the number of video frames, T, you want to export to the MATLAB workspace.
If you want to downsample your video signal, use the Decimation parameter to enter your decimation factor.
If your video signal is fixed point and you select the Log fixed-point data as a fi object check box, the block creates a fi object in the MATLAB workspace.
Use the Input port labels parameter to label your input ports. Use the spacer character, |, as the delimiter. This parameter is available if the Number of inputs parameter is greater than 1.
Specify the MATLAB workspace variable to which to write the video signal.
Enter the number of inputs to the block. If the video signal is black and
white, enter 1
. If it is a color (R, G, B) video
signal, enter 3
.
Enter the number of video frames to export to the MATLAB workspace.
Enter your decimation factor.
If your video signal is fixed point and you select this check box, the block creates a fi object in the MATLAB workspace. For more information of fi objects, see the Fixed-Point Designer™ documentation.
Enter the labels for your input ports using the spacer character, |, as the delimiter. This parameter is available if the Number of inputs parameter is greater than 1.
Computer Vision Toolbox™ software | |
Computer Vision Toolbox software | |
Computer Vision Toolbox software |