Borrar filtros
Borrar filtros

How to i get binary number from image ?

1 visualización (últimos 30 días)
afif fadilah
afif fadilah el 16 de Feb. de 2017
Comentada: Walter Roberson el 6 de Mzo. de 2017
how to get binary number from image? what tools or function in matlab? this is example image :

Respuestas (1)

Adam
Adam el 16 de Feb. de 2017
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 comentarios
afif fadilah
afif fadilah el 6 de Mzo. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by