how to convert a binary code to image
10 views (last 30 days)
Show older comments
Hadiid Anugrah
on 16 Jun 2015
Commented: Walter Roberson
on 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 Comments
Accepted Answer
Walter Roberson
on 16 Jun 2015
Edited: Walter Roberson
on 16 Jun 2015
b = [0 1 1 0 1 0 1 0 1 1];
image(logical(b));
colormap(gray(2))
2 Comments
Walter Roberson
on 18 Jun 2015
Yes.
TheImage = imread('TheFileName.bmp');
ImgBin = im2bw(TheImage, 0.5);
b = ImgBin(1,:);
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!