How to extract pixel values in 8-bit binary format from an image?
1 回表示 (過去 30 日間)
古いコメントを表示
I want the image with pixel values in 8 bit binary value.
0 件のコメント
回答 (2 件)
Image Analyst
2013 年 3 月 27 日
If you want 8 bit, just cast it to 8 bit:
image8bit = uint8(originalImage);
If you want a string of binary digits, use dec2bin()
binaryString = dec2bin(170)
Result:
binaryString =
10101010
0 件のコメント
Harshit
2013 年 3 月 27 日
Once you extract the pixel from image quantize it to (0,256) fixed point representation. Let the pixel be p(i,j) the output should be [p(i,j)/max_image{p(i,j)*256].
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Import, Export, and Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!