convert image to strings
9 ビュー (過去 30 日間)
古いコメントを表示
how do i convert image to strings(an array of strings)? pls help me. thanks in advance
2 件のコメント
Walter Roberson
2013 年 2 月 20 日
Please expand on what you mean. Are you trying to do Optical Character Recognition?
採用された回答
Azzi Abdelmalek
2013 年 2 月 20 日
編集済み: Azzi Abdelmalek
2013 年 2 月 20 日
im=iread('yourimage')
out=num2str(im)
5 件のコメント
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
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!