how to convert a binary code to image
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hadiid Anugrah
le 16 Juin 2015
Commenté : Walter Roberson
le 18 Juin 2015
I want to convert binary code like 0 1 1 0 1 0 1 0 1 1
to a binary image. Can it be done? please help?
0 commentaires
Réponse acceptée
Walter Roberson
le 16 Juin 2015
Modifié(e) : Walter Roberson
le 16 Juin 2015
b = [0 1 1 0 1 0 1 0 1 1];
image(logical(b));
colormap(gray(2))
2 commentaires
Walter Roberson
le 18 Juin 2015
Yes.
TheImage = imread('TheFileName.bmp');
ImgBin = im2bw(TheImage, 0.5);
b = ImgBin(1,:);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!