convert image to strings

9 visualizaciones (últimos 30 días)
devaki anjan
devaki anjan el 20 de Feb. de 2013
Editada: Walter Roberson el 16 de Mayo de 2015
how do i convert image to strings(an array of strings)? pls help me. thanks in advance
  2 comentarios
Walter Roberson
Walter Roberson el 20 de Feb. de 2013
Please expand on what you mean. Are you trying to do Optical Character Recognition?
devaki anjan
devaki anjan el 20 de Feb. de 2013
i am trying to convert an image to a text file or an array of strings and it has to be reversible too. This is just a part of my project.

Iniciar sesión para comentar.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Feb. de 2013
Editada: Azzi Abdelmalek el 20 de Feb. de 2013
im=iread('yourimage')
out=num2str(im)
  5 comentarios
Eman Gomaa
Eman Gomaa el 16 de Mayo de 2015
can i use it in huffman coding and decoding
Walter Roberson
Walter Roberson el 16 de Mayo de 2015
Editada: Walter Roberson el 16 de Mayo de 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.

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 20 de Feb. de 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.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by