Export image or video to MATLAB workspace
Computer Vision Toolbox / Sinks
The Video To Workspace block exports an image or video to the MATLAB^{®} workspace. It accepts images or videos as a matrix, 3D array, 4D array and converts them to a 3D or 4D array. The input size determines the output size.
MbyN, the block exports it as an MbyNby2 array. M and N are the number of rows and columns, respectively, in an image frame and 2 is the number of frames in the image.
MbyNby3, the block exports it as a MbyNby3by2 array. M and N are the number of rows and columns in a image or video frame, 3 is the number of color channels, and 2 is the number of frames in the video.
MbyNby3byT, the block exports it as a MbyNby3byT array. M and N are the number of rows and columns in a video frame, 3 represents the number of color channels, and T is the number of frames in the video.
Note
Simulink^{®} Coder™ does not generate code for this block.
The block supports grayscale and color images, which are exported to the MATLAB workspace with an extra dimension that represents the number of frames. An image is always exported with a frame value of 2.
Data Types 

Multidimensional Signals 

VariableSize Signals 
