Hi guys, today I wrote a small program to auto-correct color scans made by SANE. It is especially useful for scanning paper.
Have a look at it here: http://www.ekkehardmorgenstern.de/scancorrect-0.1.tar.gz The archive file contains ANSI C source code that works with libpng, description (readme.txt) and BSD license (license.txt), as well as a binary for OpenBSD 4.3 and a simple makefile. Size-reduced sample images are also included to see how it works. The program works like this: - First, you scan a blank sheet of paper, using a SANE frontend, like XSane (with default gamma correction!). This gives you a file that contains the data for a white sheet. - Then, you scan the sheet of paper you want to correct, also with the default gamma correction. - After that, you run the scancorrect program. It creates a new image based on the two input files. It's a very simple idea, but the concept could be integrated into a SANE driver, SANE itself, or a SANE frontend. :) Greetings, Ekkehard.
