convert image to strings

조회 수: 9 (최근 30일)
devaki anjan
devaki anjan 2013년 2월 20일
편집: Walter Roberson 2015년 5월 16일
how do i convert image to strings(an array of strings)? pls help me. thanks in advance
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 2월 20일
Please expand on what you mean. Are you trying to do Optical Character Recognition?
devaki anjan
devaki anjan 2013년 2월 20일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 20일
편집: Azzi Abdelmalek 2013년 2월 20일
im=iread('yourimage')
out=num2str(im)
  댓글 수: 5
Eman Gomaa
Eman Gomaa 2015년 5월 16일
can i use it in huffman coding and decoding
Walter Roberson
Walter Roberson 2015년 5월 16일
편집: Walter Roberson 2015년 5월 16일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 2월 20일
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.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by