How to i get binary number from image ?

how to get binary number from image? what tools or function in matlab? this is example image :

Antworten (1)

Adam
Adam am 16 Feb. 2017

0 Stimmen

If the image is greyscale and only has values of 0 or 'non-zero' then it is just trivially
binaryVals - logical( myImage );
If it is in true RGB and you still just want effectively black and 'non-black' (which in this case looks like it is all just white) then
binaryVals = logical( sum( myImage, 3 ) );
should work.

4 Kommentare

afif fadilah
afif fadilah am 16 Feb. 2017
Bearbeitet: afif fadilah am 16 Feb. 2017
how to get binaryVals sir ? this is binary image. and the meaning of the question is how to convert or how to show from this image :
to be this image :
?
thanks for your answer sir....
Adam
Adam am 16 Feb. 2017
I don't understand what you mean by the 'image' below. You can see the binary values in the variable editor, but you can't plot them in an image as visible 1s and 0s like that. The image on top is a usual representation of a binary image and the code I gave you should give you the values that make up that image.
afif fadilah
afif fadilah am 6 Mär. 2017
thank u for your answer, this image is braille text, i want to translate braille text to alphabet, so i have to get feature extraction for classification.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 16 Feb. 2017

Kommentiert:

am 6 Mär. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by