[sane-devel] Tool to create gamma table for scanimage

Oliver Rauch oliver.rauch@rauch-domain.de
Sat, 17 Aug 2002 10:23:27 +0200


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

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
I added the file to the sane cvs in sane-backends/tools.


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@rauch-domain.de