2006-03-13 10:06:17 -05:00
|
|
|
<!-- Creator : groff version 1.18.1 -->
|
2007-02-24 10:03:47 -05:00
|
|
|
<!-- CreationDate: Sat Feb 24 18:00:01 2007 -->
|
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>
|
|
|
|
<a name="NAME"></a>
|
|
|
|
<h2>NAME</h2>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- INDENTATION -->
|
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
|
|
|
cols="2" cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="top" align="left">
|
|
|
|
<td width="8%"></td>
|
|
|
|
<td width="91%">
|
|
|
|
<p>tiffmedian − apply the median cut algorithm to data
|
|
|
|
in a <small>TIFF</small> file</p>
|
|
|
|
</td>
|
|
|
|
</table>
|
2002-10-07 09:47:36 -04:00
|
|
|
<a name="SYNOPSIS"></a>
|
|
|
|
<h2>SYNOPSIS</h2>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- INDENTATION -->
|
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
|
|
|
cols="2" cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="top" align="left">
|
|
|
|
<td width="8%"></td>
|
|
|
|
<td width="91%">
|
|
|
|
<p><b>tiffmedian</b> [ <i>options</i> ] <i>input.tif
|
|
|
|
output.tif</i></p>
|
|
|
|
</td>
|
|
|
|
</table>
|
2002-10-07 09:47:36 -04:00
|
|
|
<a name="DESCRIPTION"></a>
|
|
|
|
<h2>DESCRIPTION</h2>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- INDENTATION -->
|
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
|
|
|
cols="2" cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="top" align="left">
|
|
|
|
<td width="8%"></td>
|
|
|
|
<td width="91%">
|
|
|
|
<p><i>tiffmedian</i> applies the median cut algorithm to an
|
|
|
|
<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
|
|
|
|
values in the colormap.</p>
|
|
|
|
</td>
|
|
|
|
</table>
|
2002-10-07 09:47:36 -04:00
|
|
|
<a name="OPTIONS"></a>
|
|
|
|
<h2>OPTIONS</h2>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- TABS -->
|
2003-05-05 06:41:17 -04:00
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
2006-03-13 10:06:17 -05:00
|
|
|
cols="5" cellspacing="0" cellpadding="0">
|
2003-05-05 06:41:17 -04:00
|
|
|
<tr valign="top" align="left">
|
2005-03-06 06:11:43 -05:00
|
|
|
<td width="11%"></td>
|
2006-03-13 10:06:17 -05:00
|
|
|
<td width="2%">
|
|
|
|
|
|
|
|
<p><b>−c</b></p>
|
|
|
|
</td>
|
|
|
|
<td width="5%"></td>
|
|
|
|
<td width="80%">
|
|
|
|
|
|
|
|
<p>Specify the compression to use for data written to the
|
|
|
|
output file: <b>none</b> for no compression, <b>packbits</b>
|
|
|
|
for PackBits compression, <b>lzw</b> for Lempel-Ziv &
|
|
|
|
Welch compression, and <b>zip</b> for Deflate compression.
|
|
|
|
By default <i>tiffmedian</i> will compress data according to
|
2002-10-07 09:47:36 -04:00
|
|
|
the value of the <i>Compression</i> tag found in the source
|
2006-03-13 10:06:17 -05:00
|
|
|
file.</p>
|
|
|
|
</td>
|
|
|
|
<td width="0%">
|
|
|
|
</td>
|
2005-03-06 06:11:43 -05:00
|
|
|
</table>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- INDENTATION -->
|
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
|
|
|
cols="2" cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="top" align="left">
|
|
|
|
<td width="17%"></td>
|
|
|
|
<td width="82%">
|
|
|
|
<p><small>LZW</small> compression can be specified together
|
|
|
|
with a <i>predictor</i> value. A predictor value of 2 causes
|
|
|
|
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
|
2005-03-06 06:11:43 -05: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.</p>
|
2006-03-13 10:06:17 -05:00
|
|
|
</td>
|
|
|
|
</table>
|
|
|
|
<!-- TABS -->
|
2003-05-05 06:41:17 -04:00
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
2006-03-13 10:06:17 -05:00
|
|
|
cols="5" cellspacing="0" cellpadding="0">
|
2003-05-05 06:41:17 -04:00
|
|
|
<tr valign="top" align="left">
|
2006-03-13 10:06:17 -05:00
|
|
|
<td width="10%"></td>
|
|
|
|
<td width="2%">
|
|
|
|
|
|
|
|
<p><b>−C</b></p>
|
|
|
|
</td>
|
|
|
|
<td width="6%"></td>
|
|
|
|
<td width="80%">
|
|
|
|
|
|
|
|
<p>Specify the number of entries to use in the generated
|
|
|
|
colormap. By default all 256 entries/colors are used.</p>
|
|
|
|
</td>
|
|
|
|
<td width="0%">
|
|
|
|
</td>
|
2003-05-05 06:41:17 -04:00
|
|
|
<tr valign="top" align="left">
|
2006-03-13 10:06:17 -05:00
|
|
|
<td width="10%"></td>
|
|
|
|
<td width="2%">
|
|
|
|
|
|
|
|
<p><b>−f</b></p>
|
|
|
|
</td>
|
|
|
|
<td width="6%"></td>
|
|
|
|
<td width="80%">
|
|
|
|
|
|
|
|
<p>Apply Floyd-Steinberg dithering before selecting a
|
|
|
|
colormap entry.</p>
|
|
|
|
</td>
|
|
|
|
<td width="0%">
|
|
|
|
</td>
|
2002-10-07 09:47:36 -04:00
|
|
|
<tr valign="top" align="left">
|
2006-03-13 10:06:17 -05:00
|
|
|
<td width="10%"></td>
|
|
|
|
<td width="2%">
|
|
|
|
|
|
|
|
<p><b>−r</b></p>
|
|
|
|
</td>
|
|
|
|
<td width="6%"></td>
|
|
|
|
<td width="80%">
|
|
|
|
|
|
|
|
<p>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.</p>
|
|
|
|
</td>
|
|
|
|
<td width="0%">
|
|
|
|
</td>
|
2005-03-06 06:11:43 -05:00
|
|
|
</table>
|
2002-10-07 09:47:36 -04:00
|
|
|
<a name="NOTES"></a>
|
|
|
|
<h2>NOTES</h2>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- INDENTATION -->
|
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
|
|
|
cols="2" cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="top" align="left">
|
|
|
|
<td width="8%"></td>
|
|
|
|
<td width="91%">
|
|
|
|
<p>This program is derived from Paul Heckbert’s
|
|
|
|
<i>median</i> program.</p>
|
|
|
|
</td>
|
|
|
|
</table>
|
2002-10-07 09:47:36 -04:00
|
|
|
<a name="SEE ALSO"></a>
|
|
|
|
<h2>SEE ALSO</h2>
|
2006-03-13 10:06:17 -05:00
|
|
|
<!-- INDENTATION -->
|
|
|
|
<table width="100%" border=0 rules="none" frame="void"
|
|
|
|
cols="2" cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="top" align="left">
|
|
|
|
<td width="8%"></td>
|
|
|
|
<td width="91%">
|
|
|
|
<p><b>pal2rgb</b>(1), <b>tiffinfo</b>(1), <b>tiffcp</b>(1),
|
|
|
|
<b>tiffcmp</b>(1), <b>libtiff</b>(3TIFF)</p>
|
|
|
|
<!-- INDENTATION -->
|
|
|
|
<p><b>Color Image Quantization for Frame Buffer Display</b>,
|
|
|
|
Paul Heckbert, SIGGRAPH proceedings, 1982, pp. 297-307.</p>
|
|
|
|
<!-- INDENTATION -->
|
|
|
|
<p>Libtiff library home page:
|
|
|
|
<b>http://www.remotesensing.org/libtiff/</b></p>
|
|
|
|
</td>
|
|
|
|
</table>
|
2002-10-07 09:47:36 -04:00
|
|
|
<hr>
|
|
|
|
</body>
|
|
|
|
</html>
|