tiffmedian.1.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!-- Creator : groff version 1.18.1 -->
  2. <!-- CreationDate: Sat Feb 24 18:37:20 2007 -->
  3. <html>
  4. <head>
  5. <meta name="generator" content="groff -Thtml, see www.gnu.org">
  6. <meta name="Content-Style" content="text/css">
  7. <title>TIFFMEDIAN</title>
  8. </head>
  9. <body>
  10. <h1 align=center>TIFFMEDIAN</h1>
  11. <a href="#NAME">NAME</a><br>
  12. <a href="#SYNOPSIS">SYNOPSIS</a><br>
  13. <a href="#DESCRIPTION">DESCRIPTION</a><br>
  14. <a href="#OPTIONS">OPTIONS</a><br>
  15. <a href="#NOTES">NOTES</a><br>
  16. <a href="#SEE ALSO">SEE ALSO</a><br>
  17. <hr>
  18. <a name="NAME"></a>
  19. <h2>NAME</h2>
  20. <!-- INDENTATION -->
  21. <table width="100%" border=0 rules="none" frame="void"
  22. cols="2" cellspacing="0" cellpadding="0">
  23. <tr valign="top" align="left">
  24. <td width="8%"></td>
  25. <td width="91%">
  26. <p>tiffmedian &minus; apply the median cut algorithm to data
  27. in a <small>TIFF</small> file</p>
  28. </td>
  29. </table>
  30. <a name="SYNOPSIS"></a>
  31. <h2>SYNOPSIS</h2>
  32. <!-- INDENTATION -->
  33. <table width="100%" border=0 rules="none" frame="void"
  34. cols="2" cellspacing="0" cellpadding="0">
  35. <tr valign="top" align="left">
  36. <td width="8%"></td>
  37. <td width="91%">
  38. <p><b>tiffmedian</b> [ <i>options</i> ] <i>input.tif
  39. output.tif</i></p>
  40. </td>
  41. </table>
  42. <a name="DESCRIPTION"></a>
  43. <h2>DESCRIPTION</h2>
  44. <!-- INDENTATION -->
  45. <table width="100%" border=0 rules="none" frame="void"
  46. cols="2" cellspacing="0" cellpadding="0">
  47. <tr valign="top" align="left">
  48. <td width="8%"></td>
  49. <td width="91%">
  50. <p><i>tiffmedian</i> applies the median cut algorithm to an
  51. <small>RGB</small> image in <i>input.tif</i> to generate a
  52. palette image that is written to <i>output.tif</i>. The
  53. generated colormap has, by default, 256 entries. The image
  54. data is quantized by mapping each pixel to the closest color
  55. values in the colormap.</p>
  56. </td>
  57. </table>
  58. <a name="OPTIONS"></a>
  59. <h2>OPTIONS</h2>
  60. <!-- TABS -->
  61. <table width="100%" border=0 rules="none" frame="void"
  62. cols="5" cellspacing="0" cellpadding="0">
  63. <tr valign="top" align="left">
  64. <td width="11%"></td>
  65. <td width="2%">
  66. <p><b>&minus;c</b></p>
  67. </td>
  68. <td width="5%"></td>
  69. <td width="80%">
  70. <p>Specify the compression to use for data written to the
  71. output file: <b>none</b> for no compression, <b>packbits</b>
  72. for PackBits compression, <b>lzw</b> for Lempel-Ziv &amp;
  73. Welch compression, and <b>zip</b> for Deflate compression.
  74. By default <i>tiffmedian</i> will compress data according to
  75. the value of the <i>Compression</i> tag found in the source
  76. file.</p>
  77. </td>
  78. <td width="0%">
  79. </td>
  80. </table>
  81. <!-- INDENTATION -->
  82. <table width="100%" border=0 rules="none" frame="void"
  83. cols="2" cellspacing="0" cellpadding="0">
  84. <tr valign="top" align="left">
  85. <td width="17%"></td>
  86. <td width="82%">
  87. <p><small>LZW</small> compression can be specified together
  88. with a <i>predictor</i> value. A predictor value of 2 causes
  89. each scanline of the output image to undergo horizontal
  90. differencing before it is encoded; a value of 1 forces each
  91. scanline to be encoded without differencing. LZW-specific
  92. options are specified by appending a
  93. &lsquo;&lsquo;:&rsquo;&rsquo;-separated list to the
  94. &lsquo;&lsquo;lzw&rsquo;&rsquo; option; e.g. <b>&minus;c
  95. lzw:2</b> for <small>LZW</small> compression with horizontal
  96. differencing.</p>
  97. </td>
  98. </table>
  99. <!-- TABS -->
  100. <table width="100%" border=0 rules="none" frame="void"
  101. cols="5" cellspacing="0" cellpadding="0">
  102. <tr valign="top" align="left">
  103. <td width="10%"></td>
  104. <td width="2%">
  105. <p><b>&minus;C</b></p>
  106. </td>
  107. <td width="6%"></td>
  108. <td width="80%">
  109. <p>Specify the number of entries to use in the generated
  110. colormap. By default all 256 entries/colors are used.</p>
  111. </td>
  112. <td width="0%">
  113. </td>
  114. <tr valign="top" align="left">
  115. <td width="10%"></td>
  116. <td width="2%">
  117. <p><b>&minus;f</b></p>
  118. </td>
  119. <td width="6%"></td>
  120. <td width="80%">
  121. <p>Apply Floyd-Steinberg dithering before selecting a
  122. colormap entry.</p>
  123. </td>
  124. <td width="0%">
  125. </td>
  126. <tr valign="top" align="left">
  127. <td width="10%"></td>
  128. <td width="2%">
  129. <p><b>&minus;r</b></p>
  130. </td>
  131. <td width="6%"></td>
  132. <td width="80%">
  133. <p>Specify the number of rows (scanlines) in each strip of
  134. data written to the output file. By default,
  135. <i>tiffmedian</i> attempts to set the rows/strip that no
  136. more than 8 kilobytes of data appear in a strip.</p>
  137. </td>
  138. <td width="0%">
  139. </td>
  140. </table>
  141. <a name="NOTES"></a>
  142. <h2>NOTES</h2>
  143. <!-- INDENTATION -->
  144. <table width="100%" border=0 rules="none" frame="void"
  145. cols="2" cellspacing="0" cellpadding="0">
  146. <tr valign="top" align="left">
  147. <td width="8%"></td>
  148. <td width="91%">
  149. <p>This program is derived from Paul Heckbert&rsquo;s
  150. <i>median</i> program.</p>
  151. </td>
  152. </table>
  153. <a name="SEE ALSO"></a>
  154. <h2>SEE ALSO</h2>
  155. <!-- INDENTATION -->
  156. <table width="100%" border=0 rules="none" frame="void"
  157. cols="2" cellspacing="0" cellpadding="0">
  158. <tr valign="top" align="left">
  159. <td width="8%"></td>
  160. <td width="91%">
  161. <p><b>pal2rgb</b>(1), <b>tiffinfo</b>(1), <b>tiffcp</b>(1),
  162. <b>tiffcmp</b>(1), <b>libtiff</b>(3TIFF)</p>
  163. <!-- INDENTATION -->
  164. <p><b>Color Image Quantization for Frame Buffer Display</b>,
  165. Paul Heckbert, SIGGRAPH proceedings, 1982, pp. 297-307.</p>
  166. <!-- INDENTATION -->
  167. <p>Libtiff library home page:
  168. <b>http://www.simplesystems.org/libtiff/</b></p>
  169. </td>
  170. </table>
  171. <hr>
  172. </body>
  173. </html>