How do I choose 256 or 0 values from my image?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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
2022년 5월 11일
[row, column] = find(BW);
See also regionprops() such as PixelIDList
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!