i have an array of <65536*8 int8> (all are binary numbers). i want to make the corresponding grayimage having size if 256* 256. how can i do it.
1 回表示 (過去 30 日間)
古いコメントを表示
aditya kumar sahu
2016 年 11 月 27 日
コメント済み: Walter Roberson
2016 年 11 月 30 日
i have an array of <65536*8 int8> (all are binary numbers) . i want to make the corresponding grayimage having size if 256* 256. how can i do it. kindly suggest me.
0 件のコメント
採用された回答
Walter Roberson
2016 年 11 月 27 日
as_numeric = bin2dec(char(YourArray + '0'));
YourImage = reshape(as_numeric, 256, []);
9 件のコメント
Walter Roberson
2016 年 11 月 30 日
Yes, writing to JPEG loses information unless you tell imwrite() to use lossless compression. png and bmp do not lose information.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!