Color correction


XSane mode: xsane-target
Scan options

Medium selection

Color management

Color correction:
Standard options window

Advanced options window

Batch scan:


XSane uses a gamma table to do the following enhancement functions. If the scanner supports a custom gamma table (and the option is enabled) XSane uses the scanner internal gamma table with the scanner's maximum bit depth.

gamma    Gamma correction:
The gamma correction is a non linear correction. Black keeps black and white keeps white
if the gamma value is greater than 1.0 the gray intensities are brightned
if the gamma value is smaller than 1.0 the gray intensities are darkened
brightness    Brightness:
positive values increase the brightness of the image. All values are increased by the same value. 100% means a shift of the half value range (on 8 bits (256 values) this means a shift of 128).
contrast    Contrast:
positive values increase the contrast of the image. Medium gray keeps medium gray (8 bits: 128)
-100% means that all colors become medium gray
+100% means that the difference between a value and medium gray is doubled
threshold    Threshold:
defines the brightness level in % that is needed to get a white point in lineart (black/white) mode. You have to enter some options in the enhancement setup and the backend needs to make available a threshold option.
rgb-default    RGB default:
if RGB default is activated, all values for the color components (red, green and blue) are set to the default values (gamma=1.0, brightness=0%, contrast=0%). If you deactivate it, you can set different enhancement values for each color.
negative    Negative:
This option inverts the intensities (black <-> white). It is for scanning negatives.

Negatives do not only have inverted colors, it also is necessary to do a color correction for each color component because the negatives have very different color ranges for each color.
autoenhance    Autoenhancement:
If you press this button XSane tries to set good values for brightness, contrast and gamma correction in dependance of the selected part in the preview window. This does work quiet well for brightness and contrast, but the gamma correction normally has to be corrected manually.
If RGB default is disabled, the components for each color are set individually.
default    Enhancement default:
Sets the enhancement values to default: gamma=1.0, brightness=0%, contrast=0%.
restore    Restore enhancement:
Restores the enhancement values from preferences.
store    Store enhancement (Memory):
Store selected enhancement values to preferences.

Author: Oliver Rauch