| 1 |
.TH gamma4scanimage 1 "10 Jul 2008" "" "SANE Scanner Access Now Easy" |
| 2 |
.IX gamma4scanimage |
| 3 |
.SH NAME |
| 4 |
gamma4scanimage \- create a gamma table for scanimage |
| 5 |
.SH SYNOPSIS |
| 6 |
.B gamma4scanimage |
| 7 |
.I gamma |
| 8 |
.RI [ shadow |
| 9 |
.RI [ highlight |
| 10 |
.RI [ maxin |
| 11 |
.RI [ maxout ]]]] |
| 12 |
|
| 13 |
.SH DESCRIPTION |
| 14 |
The tool |
| 15 |
.B gamma4scanimage |
| 16 |
creates a gamma table in the format expected by scanimage. You can define a |
| 17 |
.BR gamma, |
| 18 |
a |
| 19 |
.BR shadow |
| 20 |
and a |
| 21 |
.BR highlight |
| 22 |
value. You also can specify the size |
| 23 |
.RB ( maxin ) |
| 24 |
and maximum output value |
| 25 |
.RB ( maxout ) |
| 26 |
of the gamma table. |
| 27 |
.PP |
| 28 |
.BR gamma |
| 29 |
is a floating point value, neutral value being 1.0. If the value is larger than |
| 30 |
1.0 then the image is brighter. |
| 31 |
.PP |
| 32 |
.BR shadow |
| 33 |
defines the minimum input value that is necessary to create an output value |
| 34 |
larger than zero. shadow has to be in the range |
| 35 |
.RB "[0.." "maxin" "]." |
| 36 |
Its default value is 0. |
| 37 |
.PP |
| 38 |
.BR highlight |
| 39 |
defines the maximum input value that produces an output value smaller than |
| 40 |
maxout. highlight must be in the range |
| 41 |
.RB "[0.." "maxin" "]" |
| 42 |
and |
| 43 |
larger than shadow. Its default value is the same as |
| 44 |
.B maxin |
| 45 |
(16383 if not set). |
| 46 |
.PP |
| 47 |
.B maxin |
| 48 |
defines the size of the gamma table. The size depends on the scanner/backend. |
| 49 |
If the scanner uses 8 bit gamma input then |
| 50 |
.B maxin |
| 51 |
must be set to 255, 1023 for 10 |
| 52 |
bits, 4095 for 12 bits, and 16383 for 14 bits. The default is 16383. To find |
| 53 |
out what value |
| 54 |
.B maxin |
| 55 |
has to be, call |
| 56 |
.BR scanimage (1) |
| 57 |
with a very large gamma table |
| 58 |
[0]0-[99999]255 and |
| 59 |
.BR scanimage (1) |
| 60 |
will print an error message with the needed gamma table size. |
| 61 |
.PP |
| 62 |
.B maxout |
| 63 |
defines the maximum output value. Take a look at the output of |
| 64 |
.I scanimage \-h |
| 65 |
to find out what |
| 66 |
.B maxout |
| 67 |
must be. The default value is 255. |
| 68 |
.PP |
| 69 |
.SH EXAMPLE |
| 70 |
scanimage \-\-custom\-gamma=yes \-\-gamma\-table |
| 71 |
`gamma4scanimage 1.8 0 11500 16383 255` |
| 72 |
>image.pnm |
| 73 |
|
| 74 |
.SH SEE ALSO |
| 75 |
.BR sane (7), |
| 76 |
.BR scanimage (1) |
| 77 |
|
| 78 |
.SH AUTHOR |
| 79 |
Oliver Rauch |
| 80 |
|
| 81 |
.SH EMAIL-CONTACT |
| 82 |
.I [email protected] |