필터 지우기
필터 지우기

How do I choose 256 or 0 values from my image?

조회 수: 1 (최근 30일)
Ahmet Talha Köten
Ahmet Talha Köten 2022년 5월 11일
답변: Walter Roberson 2022년 5월 11일
I = imread('sos.png');
BW = imbinarize(I);
figure
imshowpair(I,BW,'montage')
I have this code so far, my mission is to get values of sos.png so I can change them to signals. I need to know how to select them.
  댓글 수: 1
DGM
DGM 2022년 5월 11일
편집: DGM 2022년 5월 11일
You already have the values of the image. They already are signals. They already are in the range of [0 255]. You never said what you want to "select" or what "select' exactly means. Depending on what "select" means, it may be a 50% possibility that you already have that already as well.

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

채택된 답변

Walter Roberson
Walter Roberson 2022년 5월 11일
[row, column] = find(BW);
See also regionprops() such as PixelIDList

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by