Simulink Model stuck in running mode indefinitely

3 ビュー (過去 30 日間)
ADITYA NAYAK
ADITYA NAYAK 2020 年 2 月 15 日
コメント済み: stozaki 2020 年 2 月 18 日
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 件のコメント
stozaki
stozaki 2020 年 2 月 15 日
Can you use Computer Vision toolbox?
ADITYA NAYAK
ADITYA NAYAK 2020 年 2 月 16 日
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 日
@ADITYA
You can use color space convesion block.
I attached simple example model.
Regards,
stozaki
  4 件のコメント
ADITYA NAYAK
ADITYA NAYAK 2020 年 2 月 18 日
Hello Stozaki,
Sorry for late reply. Attaching the input file.
stozaki
stozaki 2020 年 2 月 18 日
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

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

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by