how to convert a binary code to image
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2015 年 6 月 16 日
編集済み: Walter Roberson
2015 年 6 月 16 日
b = [0 1 1 0 1 0 1 0 1 1];
image(logical(b));
colormap(gray(2))
2 件のコメント
Walter Roberson
2015 年 6 月 18 日
Yes.
TheImage = imread('TheFileName.bmp');
ImgBin = im2bw(TheImage, 0.5);
b = ImgBin(1,:);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!