i have an array of <65536*8 int8> (all are binary numbers). i want to make the corresponding grayimage having size if 256* 256. how can i do it.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
aditya kumar sahu
le 27 Nov 2016
Commenté : Walter Roberson
le 30 Nov 2016
i have an array of <65536*8 int8> (all are binary numbers) . i want to make the corresponding grayimage having size if 256* 256. how can i do it. kindly suggest me.
0 commentaires
Réponse acceptée
Walter Roberson
le 27 Nov 2016
as_numeric = bin2dec(char(YourArray + '0'));
YourImage = reshape(as_numeric, 256, []);
9 commentaires
Walter Roberson
le 30 Nov 2016
Yes, writing to JPEG loses information unless you tell imwrite() to use lossless compression. png and bmp do not lose information.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur National Instruments Frame Grabbers 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!