home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 399b.lha / PGM.LZH / pgm / pgmtopbm.doc < prev    next >
Text File  |  1990-07-21  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. pgmtopbm(1)                 PBM Plus                  pgmtopbm(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      pgmtopbm - convert a portable graymap into a portable bitmap
  10.  
  11. SYNOPSIS
  12.      pgmtopbm [-floyd|-fs | -threshold | -dither8|-d8 |        -
  13.      cluster3|-c3|-cluster4|-c4|-cluster8|-c8] [-value <val>]
  14.      [pgmfile]
  15.  
  16. DESCRIPTION
  17.      Reads a portable graymap as input.  Produces a portable bit-
  18.      map as output.  The default quantization method is boustro-
  19.      phedonic Floyd-Steinberg error diffusion (-floyd).  Also
  20.      available are simple thresholding; Bayer's ordered dither
  21.      (-dither8) with a 16x16 matrix; three different sizes of
  22.      45-degree clustered-dot dither (-cluster3, -cluster4, -clus-
  23.      ter8);
  24.  
  25.      Floyd-Steinberg will almost always give the best looking
  26.      results; however, looking good is not always what you want.
  27.      For instance, thresholding can be used in a pipeline with
  28.      the ppmconvol tool, for tasks like edge and peak detection.
  29.      And clustered-dot dithering gives a newspaper-ish look, a
  30.      useful special effect.
  31.  
  32.      The -value flag alters the thresholding value for Floyd-
  33.      Steinberg and simple threshholding.  It should be a real
  34.      number between 0 and 1.  Above 0.5 means darker images;
  35.      below 0.5 means lighter.
  36.  
  37.      All flags can be abbreviated to their shortest unique pre-
  38.      fix.
  39.  
  40.      Note that there is no pbmtopgm converter, because any pgm
  41.      program can read pbm files automagically.
  42.  
  43. REFERENCES
  44.      The only reference you need for this stuff is "Digital Half-
  45.      toning" by Robert Ulichney, MIT Press, ISBN 0-262-21009-6.
  46.  
  47. SEE ALSO
  48.      pbmreduce(1), pgm(5), pbm(5)
  49.  
  50. AUTHOR
  51.      Copyright (C) 1989 by Jef Poskanzer.
  52.  
  53.      Permission to use, copy, modify, and distribute this
  54.      software and its documentation for any purpose and without
  55.      fee is hereby granted, provided that the above copyright
  56.      notice appear in all copies and that both that copyright
  57.      notice and this permission notice appear in supporting docu-
  58.      mentation.  This software is provided "as is" without
  59.      express or implied warranty.
  60.  
  61.  
  62.  
  63. Printed 5/25/90           26 July 1988                          1
  64.  
  65.  
  66.  
  67.