フィルターのクリア

How to give frame of video as input argument of a function in matlabfunction block

1 回表示 (過去 30 日間)
Beenish Mazhar
Beenish Mazhar 2012 年 9 月 28 日
Hi everyone! I am using 'from multimedia file' block to read video. The output of this block is a frame which is given to 'matlab function block'.In matlab function block I am giving the name of my function and the input as argument e.g myfunction(w).Now my problem is that I have to give this frame of the video as argument of myfunction().So how should I write this.Please suggest me.
  2 件のコメント
Beenish Mazhar
Beenish Mazhar 2012 年 9 月 28 日
Is there no answer to this question???
Anil Chowdary Tummala
Anil Chowdary Tummala 2021 年 2 月 13 日
I am also having the same problem that I have to give this frame of the video as argument of getmyframe().So how should I do this in simulink. Please suggest me.

サインインしてコメントする。

回答 (1 件)

Sumit Tandon
Sumit Tandon 2012 年 9 月 28 日
If you connect the output of 'From Multimedia File' block to the input of your MYFUNCTION(w) 'MATLAB Function' block, then at every simulation time step, the signal/input W will be a video frame. Do you see anything different? To check, you can turn on Port Dimension and Data Type displays in the Simulink model.
  1 件のコメント
Beenish Mazhar
Beenish Mazhar 2012 年 9 月 29 日
Yes sir you are right ,it gives me a video frame at every simulation time step.But matlab function block needs an argument in file name parameter e.g in case of image I gave it as myfunction('a.jpg').Now I cannot write it as myfunction('video.avi') because it is taking a frame not the whole video at one time instant.How to write this?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by