pnmalias
Updated: 15 March 2004
Table Of Contents
NAME
pnmalias - antialias a PNM image
SYNOPSIS
pnmalias [-bgcolor color] [-fgcolor color] [-bonly] [-fonly]
[-balias]
[-falias] [-weight w] [pnmfile]
DESCRIPTION
This program is part of Netpbm.
pnmalias reads a PNM image as input, and applies anti-aliasing
to background
and foreground pixels. If the input file is a PBM, pnmalias
promots the
output anti-aliased image to a PGM, and prints a message in-
forming the user
of the change in format.
OPTIONS
-bgcolor colorb sets the background color the colorb.
-fgcolor colorf sets the foreground color to colorf.
Pixels with these values will be anti-aliased. By default, pn-
malias takes
the background color to be black, and foreground color to be
white.
Specify the color (color) as described for the argu-
ment of the
ppm_parsecolor() library routine.
Note that even when dealing with PGMs, background and fore-
ground colors need
to be specified in the fashion described above. In this case,
pnmalias takes
the background and foreground pixel values to be the value of
the red
component for the specified color.
-bonly says to apply anti-aliasing only to the background pix-
els.
-fonly says to apply anti-aliasing only to the foreground pix-
els.
-balias says to apply anti-aliasing to all pixels surrounding
background
pixels.
-falias says to apply anti-aliasing to all pixels surrounding
foreground
pixels.
If you specify neither -balias nor -falias, pnmalias applies
anti-aliasing
only among neighboring background and foreground pixels.
-weight w says to use w as the central weight for the aliasing
filter. w
must be a real number in the range 0 < w < 1. The lower the
value of w is,
the "blurrier" the output image is. The default is w = 1/3.
SEE ALSO
pbmtext, pnmsmooth, pnm
AUTHOR
Copyright (C) 1992 by Alberto Accomazzi, Smithsonian As-
trophysical
Observatory.
_________________________________________________________________
Table Of Contents
* NAME
* SYNOPSIS
* DESCRIPTION
* OPTIONS
* SEE ALSO
* AUTHOR
UNIX/Linux commands referenced on this page:
- as
- file
- pbmtext
- pnmsmooth