How can I simplify into the line?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
HyoJae Lee
am 15 Mär. 2022
Kommentiert: HyoJae Lee
am 15 Mär. 2022
Hello!
First of all, sorry for my bad English.
This is one of my pictures that is converted into black & white image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/927264/image.png)
When I look this image in Matlab by using imread~, it is composed of 0 (black) and 255 (white) value.
When we look into the matrix in the red box, it looks like
0 0 0 0 0 0
0 255 255 0 255 255
255 255 255 255 255
255 255 255 255 255
0 255 255 255 255 0
0 0 0 0 0 0 ...
this.
But, I want to simply into a single line like
0 0 0 0 0 0
0 0 0 0 0 0
255 255 255 255 255 255
0 0 0 0 0 0
0 0 0 0 0 0...
this.
Finally, I want like this image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/927269/image.png)
So, how can I linearize this matrix? or
Is there any recommended way to do this?
Thanks,
HyoJae.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with 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!