Can the From Multimedia File block output the current frame number and/or the dimensions of the video in the Video and Image Processing Blockset?

조회 수: 4 (최근 30일)
The From Multimedia File block does not output the current frame number and/or the dimensions of the video.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
The ability for the From Multimedia File block to output the frame number and dimensions of a video stored in an AVI file is not available in the Video and Image Processing Blockset.
To work around this issue, you can do the following:
1. If the frame rate of the input AVI file is known a priori, you can use a Counter Limited block in the Simulink Sources library to simulate the frame number. You must set the sample time of the Counter Limited block to match the frame rate of the AVI file.
2. To obtain the dimensions of the input AVI file, you can use the Probe block to output the signal dimensions of the output from the From Multimedia File block.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by