[sane-devel] command line gamma value for coolscan2?

Steven Lembark lembark@wrkhors.com
Wed, 26 Feb 2003 18:55:34 -0600


Using xsane, I normally set the Gamma value using the coolscan2
backend to "3" for all three colors. Looking at "scanimage", I
cannot find any single setting that seems to handle the same
option. Am I missing something or is there some doc available
which describes building the -gamma-table values from a single-
value setting on the command line?


        --gamma-table 0..255,...
           Gamma-correction table.  In color mode this option
           equally affects the red, green, and blue channels
           simultaneously (i.e., it is an intensity gamma table).

              The description above shows that  option  --gamma-table 
expects
              zero or more values in the range 0 to 255.  For example, a 
legal
              value for this option would be "3,4,5,6,7,8,9,10,11,12". 
Since
              it's  cumbersome  to specify long vectors in this form, the 
same
              can be expressed by the  abbreviated  form  "[0]3-[9]12". 
What
              this  means  is  that  the first vector element is set to 3, 
the
              9-th element is set to 12 and the values inbetween are 
interpo-
              lated  linearly.   Of course, it is possible to specify 
multiple
              such linear segments.  For example, 
"[0]3-[2]3-[6]7,[7]10-[9]6"
              is equivalent to "3,3,3,4,5,6,7,10,8,6".


thanx

--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 773 252 1080