Simulink Model stuck in running mode indefinitely

I have a requirement for converting a RGB image to Grayscale image. For this I have implemented a model comprising of 2 for iterator blocks (across rows and then columns). It compiles successfully, but on running it hangs indefinitely.
I tried to debug it by reducing the model into just 1 for iterator block. But still it shows same behavior as above.
Request to please suggest if there is any other way to find out what is the exact issue.
Attaching the model here.

댓글 수: 2

Can you use Computer Vision toolbox?
Thank you very much for the answer Stozaki.
I wanted to do this manually using computation on each RGB values to genearte the Grayscale value of each pixel by traversing rows and columns. In this way though it would take some time, but I could understand the nitty gritty of the implementation of Simulink implementation. Is it possible to debug the above attached model.

댓글을 달려면 로그인하십시오.

답변 (1개)

stozaki
stozaki 2020년 2월 16일

0 개 추천

@ADITYA
You can use color space convesion block.
I attached simple example model.
Regards,
stozaki

댓글 수: 4

Dear Stozaki,
I really appreciate, sharing the sample RGB to YCbCr conversion example. I can use this same.
However, essentialy i would like to understand why the simulink model with the for iterator is getting hanged on execution.
Could you please help me on debugging the model that I have shared.
Sorry for bothering you, but would be very thankful if you are able to resolve the hanging issue, This would be very helpful in understanding the simulink better.
please attache your ena_color.bin.
I do not have ena_color.bin, so I can not simulate your model.
Hello Stozaki,
Sorry for late reply. Attaching the input file.
Hello ADITYA,
Thank you for data.
I reproduced hung on. Please contact MathWorks support request.
If the tool hangs, further analysis is difficult for us.
Regards,
stozaki

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

질문:

2020년 2월 15일

댓글:

2020년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by