Display images on video viewer in simulink in for loop

1 次查看(过去 30 天)
I have a test simulink model which creates radon transform of phantom and then in a for loop circularly shifts the columns in sinogram (radon transform) one by one everytime reconstructing the image using iradon. I expect to visualise CT image (phantom) turning by 1 degree everytime in an animated way.
My Problem: I am not able to visualise the image getting reconstrcted one by one as they get built in the for loop on my video viewer screen. Instead i see a black image while simulation runs and only see the last image.
I am new to simulink and do not know much about the sampling time or frame rate settings that i think is causing this issue. It may be something equivalen to 'drawnow' that is used in matlab code that is missing somewher in the model. My ultimate objective is to be able to have FPGA implementation wherein CT data acquired at high frame rate from a hardware is fed as input and reconstrcted images are available at the output for real time visualisation. (Electrical CT- electrical impedance tomography)

采纳的回答

Bharath Venkataraman
It would help to have a sample model (a simple one showing the problem will suffice).
If you wish to view the intermediate results, you will likely need to send out all the intermediate results or unroll the for-loop in Simulink.
Here are two examples that use the Video Viewer - as you can see, every frame needs to be passed in to the Video Viewer to be able to be seen.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by