home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Assembler / dse-src3.dms / in.adf / Source / Vectors / Dithering / DitherText.lha / Dither.txt < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.5 KB

  1. To: albanycs:beowulf!rsbx
  2. Path: leah!uwmcsd1!ig!jade!ucbcad!ames!hc!hi!cyrus
  3. From: cyrus@hi.UUCP (Tait Cyrus)
  4. Subject: dithers
  5. Message-ID: <20906@hi.UUCP>
  6. Date: 29 Nov 87 17:39:53 GMT
  7. Organization: U. of New Mexico, Albuquerque
  8.  
  9. Currently I have at my disposal the following 8 bit deep b/w dither routines:
  10.  
  11.     1) Perform dithering using ordered (matrix) technique,
  12.        optimized for 45 degree main axis. Output is an
  13.        X bitmap.
  14.        The matrix used is:
  15.  
  16. unsigned char  t[8][8] = { 52,  44,  36, 124, 132, 140, 148, 156,
  17.                            60,   4,  28, 116, 220, 228, 236, 164,
  18.                            68,  12,  20, 108, 212, 252, 244, 172,
  19.                            76,  84,  92, 100, 204, 196, 188, 180,
  20.                           132, 140, 148, 156,  52,  44,  36, 124,
  21.                           200, 228, 236, 164,  60,   4,  28, 116,
  22.                           212, 252, 244, 172,  68,  12,  20, 108,
  23.                           204, 196, 188, 180,  76,  84,  92, 100 };
  24.  
  25.     2) Perform dithering using ordered (matrix) technique.
  26.            Ref. Bayer. Output is in the form of an X bitmap.
  27.        The matrix used is:
  28.  
  29. /*  Dither matrix, four-point star type  */
  30. unsigned char t1[5][5] = {  40,  80, 140, 120,  20,
  31.                             60, 170, 210, 190, 100,
  32.                            150, 240, 250, 230, 160,
  33.                             90, 200, 220, 180,  50,
  34.                             10, 110, 130,  70,  30 };
  35.  
  36. /*  Dither matrix, box type */
  37. unsigned char t2[5][5] = { 138, 230,   5, 219, 107,
  38.                             87,  46, 179,  67, 148,
  39.                            189,  26, 250,  15, 199,
  40.                            158,  77, 168,  56,  97,
  41.                            128, 209,  36, 240, 117 };
  42.  
  43.     3) Dithering by error diffusion.  Error is diffused modulo 256
  44.        to the pixel to the right and to the three pixels below.
  45.  
  46. My question is: "Does anyone have anyother dithering algorithims,
  47. other than the ones mentioned above, that they use and are in the
  48. public domain?"
  49.  
  50. I have seen some SUN background that use some 'rather interesting'
  51. dithers.  For example "yosemite", "shakespeare", "porsche" plus
  52. many others.
  53.  
  54. I would very much like to get ahold of some dithers.
  55.  
  56. Thanks in advance
  57.  
  58. -- 
  59.     @__________@    W. Tait Cyrus   (505) 277-0806
  60.    /|         /|    University of New Mexico
  61.   / |        / |    Dept of EECE - Hypercube Project
  62.  @__|_______@  |    Albuquerque, New Mexico 87131
  63.  |  |       |  |
  64.  |  |  hc   |  |    e-mail:
  65.  |  @.......|..@       cyrus@hc.dspo.gov or
  66.  | /        | /        seismo!unmvax!hi!cyrus
  67.  @/_________@/
  68.