2003-09-23 15:30:05 +00:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>gamma4scanimage.1</TITLE>
|
|
|
|
</HEAD>
|
2003-09-24 17:24:12 +00:00
|
|
|
<BODY BGCOLOR=#FFFFFF TEXT=#000000><H1 ALIGN=CENTER><IMG SRC="/images/sane.png" HEIGHT=117 WIDTH=346></H1>
|
2003-09-23 15:30:05 +00:00
|
|
|
<H1>gamma4scanimage.1</H1>
|
|
|
|
<HR>
|
|
|
|
<PRE>
|
|
|
|
<!-- Manpage converted by man2html 3.0.1 -->
|
|
|
|
<B><A HREF="gamma4scanimage.1.html">gamma4scanimage(1)</A></B> SANE Scanner Access Now Easy <B><A HREF="gamma4scanimage.1.html">gamma4scanimage(1)</A></B>
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>NAME</H2><PRE>
|
|
|
|
gamma4scanimage - create a gamma table for scanimage
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
|
|
<B>gamma4scanimage</B> <I>gamma</I> [<I>shadow</I> [<I>highlight</I> [<I>maxin</I> [<I>maxout</I>]]]]
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
The tool <B>gamma4scanimage</B> creates a gamma table in the format expected
|
|
|
|
by scanimage. You can define a <B>gamma,</B> a <B>shadow</B> and a <B>highlight</B> value.
|
|
|
|
You also can specify the size (<B>maxin</B>) and maximum output value (<B>maxout</B>)
|
|
|
|
of the gamma table.
|
|
|
|
|
|
|
|
<B>gamma</B> is a floating point value, neutral value is 1.0, if the value is
|
|
|
|
larger than 1.0 then the image gets brighter.
|
|
|
|
|
|
|
|
<B>shadow</B> defines the minmum input value that is necessary to create an
|
|
|
|
output value larger than zero. shadow has to be in the range
|
|
|
|
[0..maxin]. Its default value is 0.
|
|
|
|
|
|
|
|
<B>highlight</B> defines the maximum input value that produces an output value
|
|
|
|
smaller than maxout. highlight has to be in the range [0..maxin],
|
|
|
|
highlight has to be larger than shadow. Its default value is the same
|
|
|
|
as maxin (16383 if not set).
|
|
|
|
|
|
|
|
<B>maxin</B> defines the size of the gamma table. The size depends on the
|
|
|
|
scanner/backend. If the scanner uses 8 bits gamma input then maxin has
|
|
|
|
to be set to 255, for 10 bits 1023, for 12 bits 4095, for 14 bits
|
|
|
|
16383. The default is 16383. To find out what value maxin has to be
|
|
|
|
call scanimage with a very large gamma table [0]0-[99999]255 then scan-
|
|
|
|
image prints an error message with the needed size of the gamma table.
|
|
|
|
|
|
|
|
<B>maxout</B> defines the maximum output value. Take a look at the output of
|
|
|
|
scanimage -h to find out what maxout has to be. The default value is
|
|
|
|
255.
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>EXAMPLE</H2><PRE>
|
|
|
|
<B>scanimage</B> <B>--custom-gamma=yes</B> <B>--gamma-table</B> <I>`gamma4scanimage</I> <I>1.8</I> <I>0</I> <I>11500</I>
|
|
|
|
<I>16383</I> <I>255`</I> >image.pnm
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>SEE ALSO</H2><PRE>
|
|
|
|
<B><A HREF="scanimage.7.html">scanimage(7)</A></B>
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>AUTHOR</H2><PRE>
|
|
|
|
Oliver Rauch
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>EMAIL-CONTACT</H2><PRE>
|
|
|
|
Oliver.Rauch@Rauch-Domain.DE
|
|
|
|
|
2003-11-23 12:03:17 +00:00
|
|
|
sane-backends 1.0.13 11 Sep 2002 <B><A HREF="gamma4scanimage.1.html">gamma4scanimage(1)</A></B>
|
2003-09-23 15:30:05 +00:00
|
|
|
</PRE>
|
|
|
|
<HR>
|
|
|
|
<ADDRESS>
|
|
|
|
Man(1) output converted with
|
|
|
|
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
|
|
|
|
</ADDRESS>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|