1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.docbook.org/xml/4.5/docbookx.dtd">
<refentry>
<refentryinfo>
<title>ExactImage Manual</title>
<date>04/11/2010</date>
<productname>optimize2bw</productname>
<authorgroup>
<author>
<firstname>Jakub</firstname>
<surname>Wilk</surname>
<contrib>Wrote this manual page for the Debian system.</contrib>
<address>
<email>jwilk@debian.org</email>
</address>
</author>
<author>
<othername><ulink url='https://exactcode.com/opensource/exactimage/'/></othername>
<contrib>This manual page incorporates texts found on the ExactImage homepage.</contrib>
<!-- See <20100411100610.GA4243@jwilk.net> in the debian-email archives. -->
</author>
</authorgroup>
<legalnotice>
<para>This manual page was written for the Debian system (and may be used
by others).</para>
<para>Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU General Public License,
Version 2 or (at your option) any later version published by
the Free Software Foundation.</para>
<para>On Debian systems, the complete text of the GNU General Public
License can be found in
<filename>/usr/share/common-licenses/GPL-2</filename>.
</para>
</legalnotice>
</refentryinfo>
<refmeta>
<refentrytitle>optimize2bw</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
<refname>optimize2bw</refname>
<refpurpose>automatic thresholder of the ExactImage toolkit</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>optimize2bw</command>
<arg choice='opt' rep='repeat'><replaceable>option</replaceable></arg>
<arg choice='plain'>
<group choice='req'>
<arg choice='plain'><option>-i</option></arg>
<arg choice='plain'><option>--input</option></arg>
</group>
<arg choice='plain'><replaceable>input-file</replaceable></arg>
</arg>
<arg choice='plain'>
<group choice='req'>
<arg choice='plain'><option>-o</option></arg>
<arg choice='plain'><option>--output</option></arg>
</group>
<arg choice='plain'><replaceable>output-file</replaceable></arg>
</arg>
</cmdsynopsis>
<cmdsynopsis>
<command>optimize2bw</command>
<arg choice='plain'><option>--help</option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>ExactImage is a fast C++ image processing library. Unlike many other library
frameworks it allows operation in several color spaces and bit depths
natively, resulting in low memory and computational requirements.</para>
<para><command>optimize2bw</command> reads image files and performs automatic thresholding and
optional scaling on the data. It is useful for long term archiving of
documents that have to be stored in sub-byte black and white data to reduce
storage requirements.</para>
</refsection>
<refsection>
<title>Options</title>
<variablelist>
<varlistentry>
<term><option>-i <replaceable>file</replaceable></option></term>
<term><option>--input <replaceable>file</replaceable></option></term>
<listitem>
<para>Read image from the specified file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-o <replaceable>file</replaceable></option></term>
<term><option>--output <replaceable>file</replaceable></option></term>
<listitem>
<para>Save output image to the specified file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-n</option></term>
<term><option>--denoise</option></term>
<listitem>
<para>Remove (“denoise”) single bit pixel noise.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-d <replaceable>n</replaceable></option></term>
<term><option>--dpi <replaceable>n</replaceable></option></term>
<listitem>
<para>Scale the image to the specified resolution.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-h <replaceable>n</replaceable></option></term>
<term><option>--high <replaceable>n</replaceable></option></term>
<listitem>
<para>Set high normalization value.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-l <replaceable>n</replaceable></option></term>
<term><option>--low <replaceable>n</replaceable></option></term>
<listitem>
<para>Set low normalization value.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-r <replaceable>n</replaceable></option></term>
<term><option>--radius <replaceable>n</replaceable></option></term>
<listitem>
<para>Set “unsharp mask” radius. The default is 0.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-s <replaceable>n</replaceable></option></term>
<term><option>--scale <replaceable>n</replaceable></option></term>
<listitem>
<para>Set output scale factor. The default is 1.0.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-sd <replaceable>x</replaceable></option></term>
<term><option>--standard-deviation <replaceable>x</replaceable></option></term>
<listitem>
<para>Set standard deviation for Gaussian distribution. The default is 0.0.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-t <replaceable>n</replaceable></option></term>
<term><option>--threshold <replaceable>n</replaceable></option></term>
<listitem>
<para>Set threshold value. The default is 0.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--help</option></term>
<listitem>
<para>Display help text and exit.</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Examples</title>
<screen>$ optimize2bw -i logo.jpg -o logo.tif
Scale: 0</screen>
</refsection>
<refsection>
<title>See also</title>
<para>
<citerefentry><refentrytitle>exactimage</refentrytitle><manvolnum>7</manvolnum></citerefentry>
</para>
</refsection>
</refentry>
<!-- vim:set ts=2 sw=2 et:-->
|