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
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