How to give frame of video as input argument of a function in matlabfunction block
Mostrar comentarios más antiguos
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 comentarios
Beenish Mazhar
el 28 de Sept. de 2012
Anil Chowdary Tummala
el 13 de Feb. de 2021
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.
Respuestas (1)
Sumit Tandon
el 28 de Sept. de 2012
0 votos
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 comentario
Beenish Mazhar
el 29 de Sept. de 2012
Categorías
Más información sobre Video Formats and Interfaces en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!