Patent ID: 8457426

Claim:
A computer implemented method for providing document compression, comprising: converting, using a processor, a document into a grayscale image; forming a plurality of gradient components from connected black pixels of a generated binarized image that represents the grayscale image; for each gradient component in the plurality of gradient components of the grayscale image: creating, using a processor, a monochrome image region, wherein creating comprises performing a binarization process on a region of the grayscale image that corresponds to the gradient component, determining, using a processor, pixel variation information for the monochrome image region, wherein determining the pixel variation information further comprises computing an average variation index based on a number of vertical bit flips, a number of horizontal bit flips and a size of the monochrome image region, and selecting, using a processor, the monochrome image region for a mask if the pixel variation information satisfies threshold data; and creating, using a processor, a compressed document using the mask.