how to convert a binary code to image
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hadiid Anugrah
el 16 de Jun. de 2015
Comentada: Walter Roberson
el 18 de Jun. de 2015
I want to convert binary code like 0 1 1 0 1 0 1 0 1 1
to a binary image. Can it be done? please help?
0 comentarios
Respuesta aceptada
Walter Roberson
el 16 de Jun. de 2015
Editada: Walter Roberson
el 16 de Jun. de 2015
b = [0 1 1 0 1 0 1 0 1 1];
image(logical(b));
colormap(gray(2))
2 comentarios
Walter Roberson
el 18 de Jun. de 2015
Yes.
TheImage = imread('TheFileName.bmp');
ImgBin = im2bw(TheImage, 0.5);
b = ImgBin(1,:);
Más respuestas (0)
Ver también
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!