Read Video Stored as Binary Data
This example shows how to read a video data stored in binary format by using the
Open the Simulink model.
modelname = 'ex_blkreadbinaryfile.slx'; open_system(modelname);
The model reads the binary file specified as
'vipmen.bin' in the
name parameter of the
File block. The file is played until the end of the simulation because the
file parameter of the
File block is set to
Simulate and Display Results
Run the simulation.
The model outputs the luminance, blue difference, and red difference components of the input video stored as binary data. The
File block exports the binary data to the MATLAB workspace as video data with a frame size of 120-by-160 pixels. The
Viewer blocks display the components of the binary data.