159 lines
3.3 KiB
HTML
159 lines
3.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of pbmclean</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>pbmclean</H1>
|
|
Section: User Commands (1)<BR>Updated: 18 Oct 2001<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pbmclean - flip isolated pixels in portable bitmap
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>pbmclean </B>
|
|
|
|
[<B>-minneighbors=</B><I>N</I>]
|
|
|
|
[<B>-black</B>|<B>-white</B>]
|
|
|
|
[<I>pbmfile</I>]
|
|
|
|
<P>
|
|
You can use the minimum unique abbreviation of the options. You can use
|
|
two hyphens instead of one. You can separate an option name from its value
|
|
with white space instead of an equals sign.
|
|
<P>
|
|
Before December 2001,
|
|
<B>pbmclean</B>
|
|
|
|
accepted
|
|
<B>-</B><I>N</I>
|
|
|
|
instead of
|
|
<B>-minneighbors</B>.
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>pbmclean</B>
|
|
|
|
cleans up a PBM image of random specs. It reads a PBM image as input
|
|
and outputs a PBM that is the same as the input except with every
|
|
pixel which has less than
|
|
<I>N</I>
|
|
|
|
identical neighbours inverted.
|
|
<P>
|
|
The default for
|
|
<I>N</I>
|
|
|
|
is 1 - only completely isolated pixels are flipped.
|
|
<P>
|
|
(A value of
|
|
<I>N</I>
|
|
|
|
greater than 8 generates a completely inverted image (but use
|
|
<B>pnminvert</B>
|
|
|
|
to do that) -- or a completely white or completely black image with
|
|
the
|
|
<B>-black</B>
|
|
|
|
or
|
|
<B>-white</B>
|
|
|
|
option).
|
|
<P>
|
|
<B>pbmclean</B>
|
|
|
|
considers the area beyond the edges of the image to be white. (This
|
|
matters when you consider pixels right on the edge of the image).
|
|
<P>
|
|
You can use
|
|
<B>pbmclean </B>
|
|
|
|
to clean up "snow" on bitmap images.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-black</B>
|
|
|
|
<DD>
|
|
<DT id="2"><B>-white</B>
|
|
|
|
<DD>
|
|
Flip pixels of the specified color. By default, if you specify neither
|
|
<B>-black</B>
|
|
|
|
nor
|
|
<B>-white</B>,
|
|
|
|
<B>pbmclean</B>
|
|
|
|
flips both black and white pixels which do not have sufficient identical
|
|
neighbors. If you specify
|
|
<B>-black</B>,
|
|
|
|
<B>pbmclean</B>
|
|
|
|
leaves the white pixels alone and just erases isolated black pixels.
|
|
Vice versa for
|
|
<B>-white</B>.
|
|
|
|
You may specify both
|
|
<B>-black</B>
|
|
|
|
and
|
|
<B>-white</B>
|
|
|
|
to get the same as the default behavior.
|
|
<P>
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pbm">pbm</A></B>(5)
|
|
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1990 by Angus Duggan
|
|
Copyright (C) 1989 by Jef Poskanzer.
|
|
Copyright (C) 2001 by Michael Sternberg.
|
|
<P>
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
documentation for any purpose and without fee is hereby granted, provided
|
|
that the above copyright notice appear in all copies and that both that
|
|
copyright notice and this permission notice appear in supporting
|
|
documentation. This software is provided "as is" without express or
|
|
implied warranty.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:21 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|