[sane-devel] Tool to create gamma table for scanimage
Oliver Rauch
oliver.rauch at rauch-domain.de
Sat Aug 17 09:23:27 BST 2002
Hi.
I created a little tool that creates a gamma table for scanimage:
Usage: gamma4scanimage gamma [shadow [highlight [maxin [maxout]]]]
the output that it creates looks like this:
$ gamma4scanimage 1.8 0 1023 1023 255
[0]0-[4]11-[6]14-[9]18-[13]22-[20]28-[30]35-[45]44-[68]56-[102]70-[153]88-[230]111-[345]139-[518]174-[778]219-[1023]255-[1023]255
To use it with scanimage simply do something like that:
scanimage -l 100 -x 140 -t 110 -y 100 --custom-gamma=yes --gamma-table `./gamma4scanimage
1.6 100 800 1023 255` >image.pnm
I hope the program is usefull for some people, I found it ugly to create gamma tables by
hand.
I added the file to the sane cvs in sane-backends/tools.
Oliver
Homepage: http://www.rauch-domain.de
sane-umax: http://www.rauch-domain.de/sane-umax
xsane: http://www.xsane.org
E-Mail: mailto:Oliver.Rauch at rauch-domain.de
More information about the sane-devel
mailing list