roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>TIFFMEDIAN</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFMEDIAN

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
OPTIONS
roentgen b75cab
NOTES
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiffmedian − apply the median cut algorithm to data

roentgen b75cab
in a <small>TIFF</small> file

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiffmedian [ options ] input.tif

roentgen b75cab
output.tif

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiffmedian applies the median cut algorithm to an

roentgen b75cab
<small>RGB</small> image in input.tif to generate a
roentgen b75cab
palette image that is written to output.tif. The
roentgen b75cab
generated colormap has, by default, 256 entries. The image
roentgen b75cab
data is quantized by mapping each pixel to the closest color
roentgen b75cab
values in the colormap.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

OPTIONS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−c

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the compression to use for data written to the

roentgen b75cab
output file: none for no compression, packbits
roentgen b75cab
for PackBits compression, lzw for Lempel-Ziv &
roentgen b75cab
Welch compression, and zip for Deflate compression.
roentgen b75cab
By default tiffmedian will compress data according to
roentgen b75cab
the value of the Compression tag found in the source
roentgen b75cab
file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<small>LZW</small> compression can be specified together

roentgen b75cab
with a predictor value. A predictor value of 2 causes
roentgen b75cab
each scanline of the output image to undergo horizontal
roentgen b75cab
differencing before it is encoded; a value of 1 forces each
roentgen b75cab
scanline to be encoded without differencing. LZW-specific
roentgen b75cab
options are specified by appending a
roentgen b75cab
‘‘:’’-separated list to the
roentgen b75cab
‘‘lzw’’ option; e.g. −c
roentgen b75cab
lzw:2 for <small>LZW</small> compression with horizontal
roentgen b75cab
differencing.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−C

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the number of entries to use in the generated

roentgen b75cab
colormap. By default all 256 entries/colors are used.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−f

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Apply Floyd-Steinberg dithering before selecting a

roentgen b75cab
colormap entry.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−r

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the number of rows (scanlines) in each strip of

roentgen b75cab
data written to the output file. By default,
roentgen b75cab
tiffmedian attempts to set the rows/strip that no
roentgen b75cab
more than 8 kilobytes of data appear in a strip.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

NOTES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

This program is derived from Paul Heckbert’s

roentgen b75cab
median program.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

pal2rgb(1), tiffinfo(1), tiffcp(1),

roentgen b75cab
tiffcmp(1), libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

Color Image Quantization for Frame Buffer Display,

roentgen b75cab
Paul Heckbert, SIGGRAPH proceedings, 1982, pp. 297-307.

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab