how to convert a binary code to image
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hadiid Anugrah
am 16 Jun. 2015
Kommentiert: Walter Roberson
am 18 Jun. 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 16 Jun. 2015
Bearbeitet: Walter Roberson
am 16 Jun. 2015
b = [0 1 1 0 1 0 1 0 1 1];
image(logical(b));
colormap(gray(2))
2 Kommentare
Walter Roberson
am 18 Jun. 2015
Yes.
TheImage = imread('TheFileName.bmp');
ImgBin = im2bw(TheImage, 0.5);
b = ImgBin(1,:);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!