


FBCLEAN(1)               USER COMMANDS                 FBCLEAN(1)



NAME
     fbclean - flip isolated pixels in a 1bit image

SYNOPSIS
     fbclean [ -b<cleaner> -t<threshhold> -n<nbr> ] [ -<type> ] < bitmap > bitmap

DESCRIPTION
     Flips isolated pixels (this can be used to clean  up  "snow"
     in  some  halftoned  images.   Can  also convert a grayscale
     image to bitmap by theshholding before the cleaning is done.

OPTIONS
     -b   _c_l_e_a_n_e_r  option,  specifies  the  minimum   number   of
          "nearby" like pixels to remain the same color.

     -n   _n_e_i_g_h_b_o_r_s,  the  size  of  the  neighborhood.   To   be
          "nearby"  means  to  be located in an NxN square around
          the target pixel.

     -t   _t_h_r_e_s_h_h_o_l_d command, used to halftone the  image  before
          cleaning.  The default is no theshholding.

     -B   _f_a_c_e format, as used by Bennet Yee's  _f_a_c_e  program  at
          CMU.

     -F   _F_B_M,  format  (by  default,  the  default).   You   are
          guaranteed not to lose information by specifying FBM as
          the default.

     -G   _G_I_F, Compuserve GIF format.

     -I   _I_F_F format, interleaved bitmaps (ILBM), used by Amigas.

     -P   _P_B_M, Jef Poskanzer's bitmap format.

     -S   _s_u_n, Sun rasterfiles (not run length encoded).

EXAMPLE
     To take a bitmap and clean up pixels with fewer than 2  like
     neighbors  in  the  surrounding  5x5 square, outputing s Sun
     rasterfile:

        % fbclean -S -b2 -n5 < foo.1bit > bar.1bit

     To do the same thing  to  a  grayscale  file  (threshholding
     first with 128):

         % fbclean -S -b2 -n5 -t128 < foo.1bit > bar.1bit

SEE ALSO
     fbm(1) for general discussion, pbm(1) for PBM routines.




Sun Release 4.0      Last change: 07-Mar-89                     1






FBCLEAN(1)               USER COMMANDS                 FBCLEAN(1)



BUGS
     None known.

HISTORY
     Copyright (c) 1989 by  Michael  L.  Mauldin.  Permission  is
     granted  to  use  this  program in whole or in part provided
     that you do not sell it for profit and that  this  copyright
     notice is retained unchanged.

     07-Mar-89  Michael L. Mauldin at Carnegie Mellon University
          Beta release (version 0.9) mlm@cs.cmu.edu












































Sun Release 4.0      Last change: 07-Mar-89                     2



