how to imshow(image,[]) in simulink
Show older comments
good afternoon everyone, please help me to solve this. i have a matlab code that run well and display matrix with imshow(image,[]) but it only shows black and white image in matrix viewer/ video viewer when i tried to transform it to matlab block in simulink. is there a way to display the image in simulink like using imshow(image,[]) in matlab. all images in attachtments. thanks for visiting this post.
5 Comments
Do you use the 'Computer Vision Toolbox' ?
If you use the Computer Vision Toolbox, any sink block support image output and display on the Simulink canvas. Can you attach the image file you are importing to the figure?
I attached example model , but I don't know your input raw data.

Walter Roberson
on 28 Jan 2020
Try using imagesc() and colormap(gray(256)) instead of imshow()
Mark
on 12 Jul 2022
Is there a way to use imshow() without computer vision toolbox?
Walter Roberson
on 12 Jul 2022
Mark:
imshow is from Image Processing, not Computer Vision
Accepted Answer
More Answers (1)
Selva Karna
on 28 Jan 2020
1 vote
check image processing & computer vision toolbox ,
Categories
Find more on Computer Vision Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!