이미지 파일 비트 읽기
Mostra commenti meno recenti
이미지파일을 비트단위로 읽고싶습니다. 예를들어 0011010010101...
Risposte (1)
Angelo Yeo
il 26 Lug 2023
Modificato: Angelo Yeo
il 26 Lug 2023
이미지를 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))
Categorie
Scopri di più su Read, Write, and Modify Image in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!