Borrar filtros
Borrar filtros

How to get the pixel values of an image in binary form?

2 visualizaciones (últimos 30 días)
Bala
Bala el 27 de Mzo. de 2013
for example, if an image is
3 7
2 5
then i want like this
00000011 00000111
00000010 00000101
then i want like this
0000001100000111
0000001000000101
then i want to do process on this matrix, i may get like this,
0000100000000100
0000001000000001
from this i want to split like ths,
00001000 00000100
00000010 00000001
then i want to get like this,
8 4
2 1

Respuestas (1)

Doug Hull
Doug Hull el 27 de Mzo. de 2013
This will give you the binary as strings that can easily be concatenated.
  2 comentarios
Bala
Bala el 27 de Mzo. de 2013
Thank u sir,i have already tried like this but in the reverse process I'm facing problem.
Image Analyst
Image Analyst el 27 de Mzo. de 2013
reversedString = originalString(end:-1:1)

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