TIFFMEDIAN(1) UNIX System V(May 2, 1990) TIFFMEDIAN(1)
NAME
tiffmedian - apply the median cut algorithm to data in a TIFF file
SYNOPSIS
tiffmedian [ -c size ] [ -f ] [ -none ] [ -lzw ] [ -packbits ] [
-rowsperstrip n ] file1 file2
DESCRIPTION
Tiffmedian applys the median cut algorithm to an RGB image in file1 to
generate a palette image that is written to file2. The colormap
generated has, by default, 256 entries; this may be modified with the -c
option. By default, the image data is quantized by mapping each pixel to
the closest color values in the colormap. If the -f option is specified,
Floyd-Steinberg dithering is done before selecting a colormap entry. The
remaining options are used to specify a compression algorithm to use in
creating the output file or the number of rows (scanlines) to place in
each data strip in the output file. By default, the compression
algorithm is derived from the input file and the rows per strip is
calculated so that each strip is no more than 8 kilobytes.
NOTES
This program is derived from Paul Heckbert's median program.
SEE ALSO
pal2rgb(1), tiffinfo(1), tiffcp(1), tiffcmp(1), libtiff(3)
"Color Image Quantization for Frame Buffer Display", Paul Heckbert,
SIGGRAPH proceedings, 1982, pp. 297-307.
10/89 Page 1