convert image to strings
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
devaki anjan
le 20 Fév 2013
Modifié(e) : Walter Roberson
le 16 Mai 2015
how do i convert image to strings(an array of strings)? pls help me. thanks in advance
2 commentaires
Walter Roberson
le 20 Fév 2013
Please expand on what you mean. Are you trying to do Optical Character Recognition?
Réponse acceptée
Azzi Abdelmalek
le 20 Fév 2013
Modifié(e) : Azzi Abdelmalek
le 20 Fév 2013
im=iread('yourimage')
out=num2str(im)
5 commentaires
Walter Roberson
le 16 Mai 2015
Modifié(e) : Walter Roberson
le 16 Mai 2015
Yes. But you will get better compression if you do Huffman coding on the binary values than on the text representation of the binary values.
Plus de réponses (1)
Image Analyst
le 20 Fév 2013
An alternative is im2html, which gives a nice visual display: http://www.mathworks.com/matlabcentral/fileexchange/32273-im2html-m
Another alternative is to use sprintf() or fprintf(). It really depends on how you want to use the string.
0 commentaires
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!