]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/man/tiffmedian.1
Allow 2-step creation of wxGenericProgressDialog.
[wxWidgets.git] / src / tiff / man / tiffmedian.1
CommitLineData
8414a40c
VZ
1.\" $Id: tiffmedian.1,v 1.3 2005/11/02 11:07:19 dron Exp $
2.\"
3.\" Copyright (c) 1990-1997 Sam Leffler
4.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5.\"
6.\" Permission to use, copy, modify, distribute, and sell this software and
7.\" its documentation for any purpose is hereby granted without fee, provided
8.\" that (i) the above copyright notices and this permission notice appear in
9.\" all copies of the software and related documentation, and (ii) the names of
10.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11.\" publicity relating to the software without the specific, prior written
12.\" permission of Sam Leffler and Silicon Graphics.
13.\"
14.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17.\"
18.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23.\" OF THIS SOFTWARE.
24.\"
25.if n .po 0
26.TH TIFFMEDIAN 1 "November 2, 2005" "libtiff"
27.SH NAME
28tiffmedian \- apply the median cut algorithm to data in a
29.SM TIFF
30file
31.SH SYNOPSIS
32.B tiffmedian
33[
34.I options
35]
36.I input.tif
37.I output.tif
38.SH DESCRIPTION
39.I tiffmedian
40applies the median cut algorithm to an
41.SM RGB
42image in
43.I input.tif
44to generate a palette image that is written to
45.IR output.tif .
46The generated colormap has, by default, 256 entries.
47The image data is quantized by mapping each
48pixel to the closest color values in the colormap.
49.SH OPTIONS
50.TP
51.B \-c
52Specify the compression to use for data written to the output file:
53.B none
54for no compression,
55.B packbits
56for PackBits compression,
57.B lzw
58for Lempel-Ziv & Welch compression,
59and
60.B zip
61for Deflate compression.
62By default
63.I tiffmedian
64will compress data according to the value of the
65.I Compression
66tag found in the source file.
67.IP
68.SM LZW
69compression can be specified together with a
70.I predictor
71value.
72A predictor value of 2 causes
73each scanline of the output image to undergo horizontal
74differencing before it is encoded; a value
75of 1 forces each scanline to be encoded without differencing.
76LZW-specific options are specified by appending a ``:''-separated
77list to the ``lzw'' option; e.g.
78.B "\-c lzw:2"
79for
80.SM LZW
81compression with horizontal differencing.
82.TP
83.B \-C
84Specify the number of entries to use in the generated colormap.
85By default all 256 entries/colors are used.
86.TP
87.B \-f
88Apply Floyd-Steinberg dithering before selecting a colormap entry.
89.TP
90.B \-r
91Specify the number of rows (scanlines) in each strip of data
92written to the output file.
93By default,
94.I tiffmedian
95attempts to set the rows/strip
96that no more than 8 kilobytes of data appear in a strip.
97.SH NOTES
98This program is derived from Paul Heckbert's
99.I median
100program.
101.SH "SEE ALSO"
102.BR pal2rgb (1),
103.BR tiffinfo (1),
104.BR tiffcp (1),
105.BR tiffcmp (1),
106.BR libtiff (3TIFF)
107.PP
108.BR "Color Image Quantization for Frame Buffer Display",
109Paul Heckbert, SIGGRAPH proceedings, 1982, pp. 297-307.
110.PP
111Libtiff library home page:
112.BR http://www.remotesensing.org/libtiff/