1. A method for background intensity correction of a scan of pixel values of a document, the scan having at least one background pixel area and at least one non-background pixel area, comprising: segmenting the scan into the at least one background pixel area and the at least one non-background pixel area; calculating a gray background pixel value of at least a portion of the scan; and compensating only the pixel values of the at least one background pixel area for background intensity using the calculated gray background pixel value.