What I miss from the Windows scanning software is the way it could
automatically choose good settings for the brightness and contrast
based on the selected section of the preview. I'm interested in
implementing this for xscanimage, can anyone point me to a good
algorithm for doing this, or to a source of good algorithms? Any
thoughts anyone has on the subject are welcome.