Re: Repairing wrapped lines (was: Re: Nokia 8210)
From Markus Gebhard <ukg...@rz.uni-karlsruhe.de>
· alt.ascii-art
· 4 Oct 2001 20:25 · View full thread
· report
Ilmari Karonen wrote: [...] > It occurs to me that this step might not be too hard -- we can simply do > it the way a human would detect linewrapping. > > * A wrapped image will look "interlaced" -- line N will resemble N+2 > (or N+3, etc.) more than it resembles line N+1. > > * An image that has been needlessly unwrapped will contain two (or > more) similar pictures side by side -- some of these may be distorted > because of loss of spaces, but that shouldn't matter too much. Sounds interesting. > So a basic approach might be to compute some sort of histogram checksum > for each line -- the goal is to derive a number which will change more > or less continuously in an unwrapped image, but will jump sharply in a > wrapped image. Then try to unwrap lines until the jumps are minimized. I have thought about how to get the histogram values for rating the difference between two subsequent lines. As I already said I have a table of greyscale values for each character in Ascii, but I also have a table with 4 values for each character: +-----+ +--+--+ | X| | | X| | X| | | X| | XXXX| +-XXXX+ 1 grayscale |X X| 4 grayscale |X X| value/char: | XXXX| values/char: | XXXX| < line n +-----+ +--+--+ |XXXX | |XXXX | < line n+1 |X X| |X | X| |XXXX | +XXXX-+ |X | |X | | |X | |X | | +-----+ +--+--+ This could make a better result if the image is 'antialiased': ,8P d8' dP ,8P d8' > I guess I should try coding a prototype to test... Great idea. If you want me to, I can provide the code for rating the difference between two lines. Markus
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,b639181160774d8d X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2001-10-04 13:25:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.nacamar.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail From: Markus Gebhard <ukg...@rz.uni-karlsruhe.de> Newsgroups: alt.ascii-art Subject: Re: Repairing wrapped lines (was: Re: Nokia 8210) Date: Thu, 04 Oct 2001 22:25:17 +0200 Organization: University of Karlsruhe, Germany Lines: 50 Message-ID: <3BB...@rz.uni-karlsruhe.de> References: <2GNs7.25353$Lc6...@news1.cableinet.net> <9pamf7$h3u3l$4...@ID-39741.news.dfncis.de> <3BB...@rz.uni-karlsruhe.de> <9pg27j$i9jph$2...@ID-39741.news.dfncis.de> <3BB...@rz.uni-karlsruhe.de> <100...@itz.pp.sci.fi> NNTP-Posting-Host: wn4-jarjar.wn4.uni-karlsruhe.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.rz.uni-karlsruhe.de 1002227113 15207 172.20.12.141 X-Complaints-To: use...@rz.uni-karlsruhe.de X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en Xref: archiver1.google.com alt.ascii-art:8340
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2001 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.