134 lines
3.0 KiB
HTML
134 lines
3.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of gamma4scanimage</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>gamma4scanimage</H1>
|
|
Section: SANE Scanner Access Now Easy (1)<BR>Updated: 10 Jul 2008<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
gamma4scanimage - create a gamma table for scanimage
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>gamma4scanimage</B>
|
|
|
|
<I>gamma</I>
|
|
|
|
[<I>shadow</I>
|
|
|
|
[<I>highlight</I>
|
|
|
|
[<I>maxin</I>
|
|
|
|
[<I>maxout</I>]]]]
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
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.
|
|
<P>
|
|
|
|
<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.
|
|
<P>
|
|
|
|
<B>shadow</B>
|
|
|
|
defines the minimum 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.
|
|
<P>
|
|
|
|
<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).
|
|
<P>
|
|
|
|
<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 scanimage prints an error message with the needed size of
|
|
the gamma table.
|
|
<P>
|
|
|
|
<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.
|
|
<P>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXAMPLE</H2>
|
|
|
|
<B>scanimage --custom-gamma=yes --gamma-table</B>
|
|
|
|
<I>`gamma4scanimage 1.8 0 11500 16383 255`</I>
|
|
|
|
>image.pnm
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+scanimage">scanimage</A></B>(1)
|
|
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Oliver Rauch
|
|
<P>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>EMAIL-CONTACT</H2>
|
|
|
|
<A HREF="mailto:Oliver.Rauch@Rauch-Domain.DE">Oliver.Rauch@Rauch-Domain.DE</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">EXAMPLE</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="7"><A HREF="#lbAH">EMAIL-CONTACT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:12 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|