how to convert grayscale image to binary matrix?

Respuestas (1)

Star Strider
Star Strider el 23 de Mzo. de 2018

0 votos

See the documentation on the im2bw (link) and imbinarize (link) functions.

6 comentarios

SHIREESHA THADKAPALLY
SHIREESHA THADKAPALLY el 23 de Mzo. de 2018
Editada: Image Analyst el 23 de Mzo. de 2018
I need grayscale image to be an 8 by 8 binary matrix.
Star Strider
Star Strider el 23 de Mzo. de 2018
See the documentation on Matrix Indexing (link).
After thresholding with the functions, or yourself like this:
binaryImage = grayImage > someThreshold;
call imresize() to make the image 8 by 8
binaryImage = imresize(binaryImage, [8,8], 'nearest');
i didn't get your ans..please give some examples or write complete code for this
Star Strider
Star Strider el 24 de Mzo. de 2018
Editada: Star Strider el 24 de Mzo. de 2018
Search the File Exchange (link) for Image Analyst’s demonstrations.
Experiment with your image to get the result you want. See the documentation for the functions we referenced.
SHIREESHA THADKAPALLY,did you find the answer?

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Mzo. de 2018

Comentada:

el 23 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by