home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / PBMPLUS.ZIP / PBMREDUC.MAN < prev    next >
Text File  |  1991-08-11  |  2KB  |  67 lines

  1.  
  2.  
  3. pbmreduce(1)               Unix Programmer's Manual               pbmreduce(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      pbmreduce - read a portable bitmap and reduce it N times
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      pppbbbmmmrrreeeddduuuccceee [-fffllloooyyyddd|-fffsss|-ttthhhrrreeessshhhooolllddd] [-vvvaaallluuueee _v_a_l] _N [_p_b_m_f_i_l_e]
  11.  
  12. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  13.      Reads a portable bitmap as input.  Reduces it  by  a  factor  of  _N,  and
  14.      produces a portable bitmap as output.
  15.  
  16.      _p_b_m_r_e_d_u_c_e duplicates a lot of the functionality of _p_g_m_t_o_p_b_m; you could do
  17.      something like pppnnnmmmssscccaaallleee ||| pppgggmmmtttooopppbbbmmm,,, but _p_b_m_r_e_d_u_c_e is a lot faster.
  18.  
  19.      _p_b_m_r_e_d_u_c_e can be used to "re-halftone" an image.  Let's say  you  have  a
  20.      scanner  that  only  produces  black&white,  not grayscale, and it does a
  21.      terrible job of halftoning (most b&w scanners fit this description).  One
  22.      way  to fix the halftoning is to scan at the highest possible resolution,
  23.      say 300 dpi, and then reduce by a factor of three or so using  _p_b_m_r_e_d_u_c_e.
  24.      You  can  even  correct  the  brightness of an image, by using the ---vvvaaallluuueee
  25.      flag.
  26.  
  27. OOOPPPTTTIIIOOONNNSSS
  28.  
  29.      By  default,  the  halftoning   after   the   reduction   is   done   via
  30.      boustrophedonic  Floyd-Steinberg error diffusion; however, the ---ttthhhrrreeessshhhooolllddd
  31.      flag can be used to  specify  simple  thresholding.   This  gives  better
  32.      results when reducing line drawings.
  33.  
  34.      The ---vvvaaallluuueee flag alters the thresholding value for all quantizations.   It
  35.      should  be a real number between 0 and 1.  Above 0.5 means darker images;
  36.      below 0.5 means lighter.
  37.  
  38.      All flags can be abbreviated to their shortest unique prefix.
  39.  
  40. SSSEEEEEE AAALLLSSSOOO
  41.      pnmenlarge(1), pnmscale(1), pgmtopbm(1), pbm(5)
  42.  
  43. AAAUUUTTTHHHOOORRR
  44.      Copyright (C) 1988 by Jef Poskanzer.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                02 August 1989                                1
  65.  
  66.  
  67.