libtiff/html/man/tiffmedian.1.html

154 lines
5.4 KiB
HTML
Raw Normal View History

2002-10-07 09:47:36 -04:00
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta name="Content-Style" content="text/css">
<title>TIFFMEDIAN</title>
</head>
<body>
<h1 align=center>TIFFMEDIAN</h1>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#NOTES">NOTES</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<hr>
2003-05-05 06:41:17 -04:00
<!-- Creator : groff version 1.17.2 -->
2003-11-27 10:07:01 -05:00
<!-- CreationDate: Thu Nov 27 17:58:13 2003 -->
2002-10-07 09:47:36 -04:00
<a name="NAME"></a>
<h2>NAME</h2>
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
2002-10-07 09:47:36 -04:00
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
tiffmedian - apply the median cut algorithm to data in a <small>TIFF</small> file</td></table>
2002-10-07 09:47:36 -04:00
<a name="SYNOPSIS"></a>
<h2>SYNOPSIS</h2>
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
2002-10-07 09:47:36 -04:00
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
<b>tiffmedian</b> [ <i>options</i> ] <i>input.tif
output.tif</i></td></table>
2002-10-07 09:47:36 -04:00
<a name="DESCRIPTION"></a>
<h2>DESCRIPTION</h2>
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
2002-10-07 09:47:36 -04:00
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
<i>tiffmedian</i> applies the median cut algorithm to an
2002-10-07 09:47:36 -04:00
<small>RGB</small> image in <i>input.tif</i> to generate a
palette image that is written to <i>output.tif</i>. The
generated colormap has, by default, 256 entries. The image
data is quantized by mapping each pixel to the closest color
2003-05-05 06:41:17 -04:00
values in the colormap.</td></table>
2002-10-07 09:47:36 -04:00
<a name="OPTIONS"></a>
<h2>OPTIONS</h2>
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-c</b></td></table>
2002-10-07 09:47:36 -04:00
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Specify the compression to use for data written to the
2002-10-07 09:47:36 -04:00
output file: <b>none</b> for no compression, <b>packbits</b>
for PackBits compression, <b>lzw</b> for Lempel-Ziv &amp;
Welch compression, and <b>zip</b> for Deflate compression.
By default <i>tiffmedian</i> will compress data according to
the value of the <i>Compression</i> tag found in the source
2003-05-05 06:41:17 -04:00
file.</td></table>
<table width="100%" border=0 rules="none" frame="void"
2002-10-07 09:47:36 -04:00
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="21%"></td><td width="79%">
<small>LZW</small> compression can be specified together
2002-10-07 09:47:36 -04:00
with a <i>predictor</i> value. A predictor value of 2 causes
1999-11-22 23:29:23 -05:00
each scanline of the output image to undergo horizontal
2002-10-07 09:47:36 -04:00
differencing before it is encoded; a value of 1 forces each
scanline to be encoded without differencing. LZW-specific
2003-05-05 06:41:17 -04:00
options are specified by appending a ``:''-separated list to
the ``lzw'' option; e.g. <b>-c lzw:2</b> for
<small>LZW</small> compression with horizontal
differencing.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-C</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Specify the number of entries to use in the generated
colormap. By default all 256 entries/colors are
used.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
2002-10-07 09:47:36 -04:00
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
<b>-f</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Apply Floyd-Steinberg dithering before selecting a colormap
entry.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
2002-10-07 09:47:36 -04:00
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
<b>-r</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
2002-10-07 09:47:36 -04:00
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="21%"></td><td width="79%">
Specify the number of rows (scanlines) in each strip of data
written to the output file. By default, <i>tiffmedian</i>
attempts to set the rows/strip that no more than 8 kilobytes
of data appear in a strip.</td></table>
2002-10-07 09:47:36 -04:00
<a name="NOTES"></a>
<h2>NOTES</h2>
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
2002-10-07 09:47:36 -04:00
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
This program is derived from Paul Heckbert's <i>median</i>
program.</td></table>
2002-10-07 09:47:36 -04:00
<a name="SEE ALSO"></a>
<h2>SEE ALSO</h2>
2003-05-05 06:41:17 -04:00
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
<i>tiffcmp</i>(1), <i>libtiff</i>(3)</td></table>
<table width="100%" border=0 rules="none" frame="void"
2002-10-07 09:47:36 -04:00
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
2003-05-05 06:41:17 -04:00
<td width="10%"></td><td width="90%">
&quot;Color Image Quantization for Frame Buffer
2002-10-07 09:47:36 -04:00
Display&quot;, Paul Heckbert, SIGGRAPH proceedings, 1982,
2003-05-05 06:41:17 -04:00
pp. 297-307.</td></table>
2002-10-07 09:47:36 -04:00
<hr>
</body>
</html>