FBCLEAN

Section: User Commands (1)
Updated: 25-Jun-90
Index Return to Main Contents
 

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
cleaner option, specifies the minimum number of "nearby" like pixels to remain the same color.
-n
neighbors, the size of the neighborhood. To be "nearby" means to be located in an NxN square around the target pixel.
-t
threshhold command, used to halftone the image before cleaning. The default is no theshholding.
-B
face format, as used by Bennet Yee's face program at CMU.
-F
FBM, format (by default, the default). You are guaranteed not to lose information by specifying FBM as the default.
-G
GIF, Compuserve GIF format.
-I
IFF format, interleaved bitmaps (ILBM), used by Amigas.
-P
PBM, Jef Poskanzer's bitmap format.
-S
sun, 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.  

BUGS

None known.  

HISTORY

Copyright (C) 1989,1990 by Gary Sherwin & Michael Mauldin. Permission is granted to use this file in whole or in part for any purpose, educational, recreational or commercial, provided that this copyright notice is retained unchanged. This software is available to all free of charge by anonymous FTP and in the UUNET archives.
25-Jun-90 Michael Mauldin at Carnegie Mellon University
Release 1.0 mlm@cs.cmu.edu
07-Mar-89 Michael L. Mauldin at Carnegie Mellon University
Beta release (version 0.9) mlm@cs.cmu.edu


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
BUGS
HISTORY

This document was created by man2html, using the manual pages.
Time: 01:28:10 GMT, December 05, 2024