home *** CD-ROM | disk | FTP | other *** search
- From: ma_jns@ux63.bath.ac.uk (Spackman)
- Newsgroups: comp.graphics
- Subject: Re: Floyd-Steinberg Errors: What do I do with them?
- Date: 19 Jul 88 09:51:59 GMT
- Organization: University of Bath, England
-
-
- The following shell archive contains various C code for
- mappings between Cartesian and Peano co-ordinates. The
- Peano co-ordinate of a point in a 2^n side square is the
- position along the connected, filling Peano curve (Hilbert
- here). The mappings are achieved with simple bit shifts
- for speed, iterating 'n' times for a '2^n' side square.
-
- I have used this curve to order error propagation (c.g.
- Floyd Steinberg), passing the whole error incurred by quan-
- tisation at one pixel to the Peano-next pixel. Other graph-
- ical applications include run-length images ALONG THE CURVE,
- which is comparable to quad encoding.
-
- The code may be adapted to generate curves in n-space,
- e.g. 3-space for look up table algorithms.
-
- John Spackman, Maths Sciences
- University of Bath, Claverton Down, Bath, Avon, BA2 7AY, England.
-