摘要 |
A technique is provided for enhancing the background of an original document image. In the case of a black-and-white image, the background color of the original document image is detected, the desired enhanced background color of the original document image is determined from a background pixel value Pb that is in the center of the background color range, and the original document image is enhanced to the desired enhanced background color. However, if the background of the original document image is in color, the technique further includes obtaining color image histograms of red, blue and green colors of the original document image, smoothing the histograms, and comparing the histograms to determine if they have the same shape. If the histograms do not have the same shape, and hence the background is in color, the background color of the original document image is detected for each color channel and the background color is enhanced for each channel based on table values so that the hue of the background is not changed.
|