Binary image data compression and decompression
First Claim
1. An apparatus for compressing a binary image, said binary image including a plurality of scan lines, each scan line having a plurality of pixels, said apparatus comprising:
- a preprocessor for (i) segmenting each scan line of said binary image into segments of equal number of pixels, (ii) grouping said binary image into data groups, each data group including a segment of pixels from each of a predetermined number of adjacent scan lines, wherein said segments of pixels in each data group represents pixels at corresponding locations in said predetermined number of adjacent scan lines, and (iii) dividing each data group into a predetermined number of data units, each data unit including pixels selected from each of said predetermined number of adjacent scan lines within said data groupsaid preprocessor comprising a plurality of registers, equalling in number to said predetermined number of adjacent scan lines, for receiving a data group, wherein each register receives one of said segments of pixels in said data group received;
said preprocessor further comprising a first control circuit, receiving a data group of said binary image at a time, said first control circuit loading said segments of pixels of said data group into said plurality of registers; and
said preprocessor further comprising a second control circuit, said second control circuit extracting from said plurality of registers said data units; and
a compressor, receiving said data units sequentially, for applying a dictionary data compression algorithm on said data units received.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for preprocessing a binary file for data compression under a dictionary-based data compression algorithm takes advantage of redundancy in a two-dimensional binary image. The method rearranges a linear representation of a binary image, i.e. a representation based on pixels of horizontal lines, to a two-dimensional representation, i.e. a representation based on a sequence of adjoining picture areas, to achieve an improvement of compression ratio. The present invention is applicable to dictionary-based data compression methods, such as LZW, LZ77 and LZ78.
59 Citations
4 Claims
-
1. An apparatus for compressing a binary image, said binary image including a plurality of scan lines, each scan line having a plurality of pixels, said apparatus comprising:
-
a preprocessor for (i) segmenting each scan line of said binary image into segments of equal number of pixels, (ii) grouping said binary image into data groups, each data group including a segment of pixels from each of a predetermined number of adjacent scan lines, wherein said segments of pixels in each data group represents pixels at corresponding locations in said predetermined number of adjacent scan lines, and (iii) dividing each data group into a predetermined number of data units, each data unit including pixels selected from each of said predetermined number of adjacent scan lines within said data group said preprocessor comprising a plurality of registers, equalling in number to said predetermined number of adjacent scan lines, for receiving a data group, wherein each register receives one of said segments of pixels in said data group received; said preprocessor further comprising a first control circuit, receiving a data group of said binary image at a time, said first control circuit loading said segments of pixels of said data group into said plurality of registers; and said preprocessor further comprising a second control circuit, said second control circuit extracting from said plurality of registers said data units; and a compressor, receiving said data units sequentially, for applying a dictionary data compression algorithm on said data units received. - View Dependent Claims (2, 3, 4)
-
Specification