X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,db78abe5177a5c67 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2001-04-20 01:12:54 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!not-for-mail From: Ilmari Karonen Newsgroups: alt.ascii-art Subject: Re: Gwyneth Paltrow - Jave image->ascii conversion .. and discussion of algorithms Date: 20 Apr 2001 08:12:37 GMT Organization: (dis)Order of the Holy Spoon (or whatever) Lines: 27 Message-ID: <987593119.12602@itz.pp.sci.fi> References: <9bi18c$s21$1@news.inet.tele.dk> <3ADCB3E4.3404E133@rz.uni-karlsruhe.de> Reply-To: Ilmari Karonen NNTP-Posting-Host: simpukka.saunalahti.fi X-Trace: tron.sci.fi 987754357 20649 195.74.0.20 (20 Apr 2001 08:12:37 GMT) X-Complaints-To: newsmaster@saunalahti.fi NNTP-Posting-Date: 20 Apr 2001 08:12:37 GMT User-Agent: postit.pl 0.05 Xref: supernews.google.com alt.ascii-art:5416 In article <3ADCB3E4.3404E133@rz.uni-karlsruhe.de>, Markus Gebhard wrote: > >Now if you go further and divide characters into more than 4 regions >(e.g.3x2) it all becomes even worse and the results when I tried to do >that were not worth considering. Just as a data point, Rob Harley's classic bitmap-to-ascii algorithm uses a 3x2 grid. The details can be found near the end of Jorn Barger's technical ascii art FAQ, archived for example at http://www.sci.fi/~iltzu/ascii/ada/aaatechnical.txt FWIW, I did once write an algorithm that used a 5x5 (IIRC) grid of grayscale values, doing least-square-sum analysis to pick the best match. It worked, in the sense that the output was recognizable, but it was awfully slow and didn't look very good at all. The major challenge in the field is IMHO developing a good non-local asciification algorithm. The problem, which also comes up in a way in in ascflip, is that any algorithm that handles each character separately is bound to yield suboptimal results in some cases due to aliasing. -- . _, .. j u s t. h o w l.i n g i n .t h e n.i g h t .. ._, . , )'' . /\_ . ' ,/\ . , ``( , _\__/ |__.'\._______,--;_'_`-.___,.______,/_,_`.__,-.__'__,/`-._,_| \____ ,_f_)\. Ilmari Karonen iltzu@sci.fi http://www.sci.fi/~iltzu/ /(_|_,.