how to do binary conversion of an image?
1 次查看(过去 30 天)
显示 更早的评论
how to do binary conversion of an image?
4 个评论
Walter Roberson
2016-1-8
hemalatha, that is not quite correct. You need
binaryvalues = reshape( (dec2bin(a, 8)-'0').', [], 1);
to get the binary values in a single column (presuming that the image was uint8 data type.)
回答(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!