Hello!
First of all, sorry for my bad English.
This is one of my pictures that is converted into black & white image.
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.
So, how can I linearize this matrix? or
Is there any recommended way to do this?
Thanks,
HyoJae.

 채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 15일

1 개 추천

bwmorph('skel')

댓글 수: 1

HyoJae Lee
HyoJae Lee 2022년 3월 15일
Thanks for your fast reply!
This helps me a lot.
Appreciated,
HyoJae.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 3월 15일

댓글:

2022년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by