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

1 Ansicht (letzte 30 Tage)
Ahmet Talha Köten
Ahmet Talha Köten am 11 Mai 2022
Beantwortet: Walter Roberson am 11 Mai 2022
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 Kommentar
DGM
DGM am 11 Mai 2022
Bearbeitet: DGM am 11 Mai 2022
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Mai 2022
[row, column] = find(BW);
See also regionprops() such as PixelIDList

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by