1Pbmtopgm User Manual(0)                                Pbmtopgm User Manual(0)
2
3
4

NAME

6       pbmtopgm - convert PBM image to PGM by averaging areas
7
8

SYNOPSIS

10       pbmtopgm width height [pbmfile]
11
12

DESCRIPTION

14       This program is part of Netpbm(1).
15
16       pbmtopgm  reads  a PBM image as input.  It outputs a PGM image in which
17       each pixel's gray level is the average of  the  surrounding  black  and
18       white  input  pixels.   The surrounding area is a rectangle of width by
19       height pixels.
20
21       In other words, this is a convolution.  pbmtopgm is similar to  a  spe‐
22       cial case of pnmconvol.
23
24       You may need a pnmsmooth step after pbmtopgm.
25
26       pbmtopgm has the effect of anti-aliasing bitmaps which contain distinct
27       line features.
28
29       pbmtopgm works best with odd sample width and heights.
30
31       You don't need pbmtopgm just to use a PGM program on a PBM image.   Any
32       PGM  program  (assuming  it  uses  the Netpbm libraries to read the PGM
33       input) takes PBM input as if it were PGM, with  only  the  minimum  and
34       maximum  gray  levels.   So unless your convolution rectangle is bigger
35       than one pixel, you're not gaining anything with a pbmtopgm step.
36
37       The opposite transformation (which would turn a  PGM  into  a  PBM)  is
38       dithering.  See pamditherbw.
39
40

SEE ALSO

42       pamditherbw(1), pnmconvol(1), pbm(1), pgm(1)
43
44

AUTHOR

46       Copyright (C) 1990 by Angus Duggan.
47
48       Copyright (C) 1989 by Jef Poskanzer.
49
50       Permission  to  use, copy, modify, and distribute this software and its
51       documentation for any purpose and without fee is hereby  granted,  pro‐
52       vided  that  the  above  copyright notice appear in all copies and that
53       both that copyright notice and this permission notice  appear  in  sup‐
54       porting  documentation.   This  software  is  provided  "as is" without
55       express or implied warranty.
56

DOCUMENT SOURCE

58       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
59       source.  The master documentation is at
60
61              http://netpbm.sourceforge.net/doc/pbmtopgm.html
62
63netpbm documentation              05 Feb 2003          Pbmtopgm User Manual(0)
Impressum