How to Generate Scope Values From Vectors In Simulink?

조회 수: 2 (최근 30일)
Ahmet Talha Köten
Ahmet Talha Köten 2022년 6월 2일
답변: Dhanush Yeddula 2022년 6월 8일
I have this Simulink System that needs to create a matrix from image source, turn it to vector, then display it in scope. I tried many things, using for block just created 1's and not 0's so I give up on that. I tried repeating sequence block too but it's not practical. How can I solve it? Thanks in advance. (code in MATLAB FUNC)

답변 (1개)

Dhanush Yeddula
Dhanush Yeddula 2022년 6월 8일
The computer vision toolbox provides various blocks for format conversion of images. If the image has multiple colour channels (ex: RGB image), then you can convert them to 2D image using rgb2gray command or filter out single channel using MATLAB commands.
Using scope to display a m x n image matrix would result in m x n plots which would be too many to graphs to plot.
Computer vision toolbox provides various display/viewer blocks to render images. For interpretation of image data, “image to workspace” block can be used.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by