Display a matrix as an image with boundaries(borders) between different components
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a matrix like the first image that changes with each step.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640700/image.png)
To display this matrix as an image, the imagesc or other commands only displays as a color image, but I want the boundaries(borders) to be displayed automatically as well, because this matrix changes at every step, and if the borders are not detected automatically, it will be useless.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640705/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640710/image.png)
1- Please help me how I can display this matrix with its boundaaries (borders) automatically like the following images with and without color ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640715/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/640720/image.png)
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!