2002-11-29 18:50:27 +00:00
|
|
|
.TH gamma4scanimage 1 "11 Sep 2002" "@PACKAGEVERSION@" "SANE Scanner Access Now Easy"
|
2002-09-11 21:37:20 +00:00
|
|
|
.IX gamma4scanimage
|
2002-08-18 13:54:16 +00:00
|
|
|
.SH NAME
|
2002-11-22 18:20:32 +00:00
|
|
|
gamma4scanimage \- create a gamma table for scanimage
|
2002-09-11 21:37:20 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B gamma4scanimage
|
|
|
|
.I gamma
|
|
|
|
.RI [ shadow
|
|
|
|
.RI [ highlight
|
|
|
|
.RI [ maxin
|
|
|
|
.RI [ maxout ]]]]
|
2002-08-18 13:54:16 +00:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The tool
|
|
|
|
.B gamma4scanimage
|
|
|
|
creates a gamma table in the format expected by scanimage. You can define a
|
|
|
|
.BR gamma,
|
|
|
|
a
|
|
|
|
.BR shadow
|
|
|
|
and a
|
|
|
|
.BR highlight
|
2002-09-11 21:37:20 +00:00
|
|
|
value. You also can specify the size
|
|
|
|
.RB ( maxin )
|
|
|
|
and maximum output value
|
|
|
|
.RB ( maxout )
|
2002-08-18 13:54:16 +00:00
|
|
|
of the gamma table.
|
2002-09-11 21:37:20 +00:00
|
|
|
.PP
|
2002-08-18 13:54:16 +00:00
|
|
|
.BR gamma
|
2002-09-11 21:37:20 +00:00
|
|
|
is a floating point value, neutral value is 1.0, if the value is larger than
|
|
|
|
1.0 then the image gets brighter.
|
|
|
|
.PP
|
2002-08-18 13:54:16 +00:00
|
|
|
.BR shadow
|
2005-05-23 16:44:44 +00:00
|
|
|
defines the minimum input value that is necessary to create an output value
|
2002-09-11 21:37:20 +00:00
|
|
|
larger than zero. shadow has to be in the range [0..maxin]. Its default value
|
|
|
|
is 0.
|
|
|
|
.PP
|
2002-08-18 13:54:16 +00:00
|
|
|
.BR highlight
|
2002-09-11 21:37:20 +00:00
|
|
|
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).
|
|
|
|
.PP
|
2002-08-18 13:54:16 +00:00
|
|
|
.BR maxin
|
|
|
|
defines the size of the gamma table. The size depends on the scanner/backend.
|
2002-09-11 21:37:20 +00:00
|
|
|
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.
|
|
|
|
.PP
|
2002-08-18 13:54:16 +00:00
|
|
|
.BR maxout
|
2002-09-11 21:37:20 +00:00
|
|
|
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.
|
|
|
|
.PP
|
|
|
|
.SH EXAMPLE
|
2002-11-22 18:20:32 +00:00
|
|
|
.B scanimage \-\-custom-gamma=yes \-\-gamma-table
|
|
|
|
.I `gamma4scanimage 1.8 0 11500 16383 255`
|
|
|
|
>image.pnm
|
2002-08-18 13:54:16 +00:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
2004-01-17 22:07:57 +00:00
|
|
|
.BR scanimage (1)
|
2002-08-18 13:54:16 +00:00
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
Oliver Rauch
|
|
|
|
|
|
|
|
.SH EMAIL-CONTACT
|
|
|
|
Oliver.Rauch@Rauch-Domain.DE
|