이미지 파일 비트 읽기
显示 更早的评论
回答(1 个)
이미지를 uint8로 읽어들인 다음 이진수로 변경할 수 있습니다.
I = imread('bag.png');
% Let's take only a part of the image
I = I(1:3, 1:3)
bitImage = reshape(string(dec2bin(I)), size(I))
类别
在 帮助中心 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!