4.5

4.5 | 4 ratings Rate this file 149 downloads (last 30 days) File Size: 963.58 KB File ID: #7952

TEXT2IMAGE : Convert an ASCII text file to image

by Divakar Roy

 

30 Jun 2005 (Updated 10 Aug 2009)

Code covered by BSD License  

Text to image conversion.

Download Now | Watch this File

File Information
Description

This code converts any ASCII text file (notepad, MATLAB-m files, etc) into images.

Screen shot is the image being converted from a notepad file that had the story - Christmas Carol.
The story is taken from http://www.planetpdf.com/.
Maybe it's the largest photo :)

MATLAB release MATLAB 7.8 (R2009a)
Zip File Content  
Other Files char_array_all.mat,
christmas_carol.bmp,
christmas_carol.txt,
data_all.mat,
index_array_all.mat,
license.txt,
text2image.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
04 Jul 2005 Fahad Al Mahmood

Try replacing lines (52) and (53) with the following:
PathName=[pwd '\all letters\capital\'];
PathName=[pwd '\all letters\small\'];

14 Mar 2008 manish sardiwal  
14 Mar 2008 manish sardiwal

good software

22 Jun 2008 Arun Powar

very nice coding..

22 Aug 2008 ghini0n ghinion  
Please login to add a comment or rating.
Updates
06 Jul 2005

more realistic,new screenshot,bugs fixed

11 Jul 2005

all improved

01 Aug 2005

slight improvement

19 Sep 2005

converted to function format

29 Sep 2005

help is corrected

03 Jan 2006

Improved usability

11 Jan 2006

new screenshot

10 Aug 2009

90 % speed-up as a result of using mat files and removing loops.

Tag Activity for this File
Tag Applied By Date/Time
fun Divakar Roy 22 Oct 2008 07:51:58
ascii Divakar Roy 22 Oct 2008 07:51:58
text Divakar Roy 22 Oct 2008 07:51:58
image Divakar Roy 22 Oct 2008 07:51:58
convert Divakar Roy 22 Oct 2008 07:51:58
show Divakar Roy 22 Oct 2008 07:51:58
ascii Hyunjoo ΓΌ 18 Mar 2009 20:55:42
ascii lev kadyshevitch 18 May 2009 17:23:43
bmp Divakar Roy 11 Aug 2009 10:49:06
jpg Divakar Roy 11 Aug 2009 10:49:07
largest Divakar Roy 11 Aug 2009 10:49:07
photo Divakar Roy 11 Aug 2009 10:49:07
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com