A method of reducing document size for optical display

Abstract: A method of enhancing predefined features of a scanned image of a document page of reduced size for display includes subsampling (130) the pixels of the scanned image to achieve a desired degree of reduction of the image size. The subsampled signals are passed through a filter (130) to obtain gray scale values. A sharpening filter (140) is applied to the subsampled pixels to enhance the predefined features of the image.

Description: This invention relates to methods for generating from an electronic document page having a first resolution, a representation of the document page for display on a display device capable of displaying an image having a second resolution lower than the first resolution. Electronic document systems are becoming increasingly popular for storing reference materials. Conventional electronic document systems comprise a scanner which scans an original document, digitizes each page of the document image and converts the image to picture elements, or pixels; a computer for processing the digitized signals and for performing any modifications to the image such as, but not limited to, size reduction and a monitor for viewing the scanned document. The scanned documents are then stored for later retrieval. Electronic documents can be easily retrieved from a document system's memory and viewed on a monitor. However, the amount of data contained in a standard 8.5 x 11 inch document page significantly exceeds the amount of data which can be viewed on a typical monitor. In particular, a standard image resolution for document scanners is 300 pixels per inch (conventionally referred to as dots per inch or dpi). Thus, for an 8.5 x 11 inch document page, the scanned size is 2550 x 3300 pixels. The pixel dimensions of the screen of a conventional monitor are 1600 x 1280. Based on these measurements, it is evident that a full page cannot be completely displayed on such a monitor. It is, thus, well known that if the entire document page is to be viewed on the monitor, the amount of data contained in the document page must be reduced. Indeed, one approach known in the prior art is to subsample the image in such a way as to match the pixels of the subsampled image with those of the monitor on which it is to be displayed. This approach, however, can result in a severe loss of clarity, such as edge definition, and a noticeable reduction in the size of, for example, text or other features. In the above illustration, for example, no less than 38% of the image data is lost. In standard digital signal image processing practice, a low-pass filter is applied to the document image signals during subsampling. The low pass filtering is required to reduce aliasing of higher frequency information upon the lower frequency information left after subsampling effectively at a lower rate. The low pass filter is typically a KxK filter which is sized in accordance with the amount of reduction desired. Typically, the size of the filter, i.e., the value of K is directly related to the sampling rate, i.e., the larger the sampling rate, the larger the filter, in accordance with standard filter theory as described in L. O'Gorman, et al., "A Comparison of Methods and Computation for Multi-Resolution Low and Band-Pass Transforms for Image Processing", Computer Vision, Graphics, and Image Processing, Vol. 37, pp.386-401 (1987). However, the low pass filtering causes degradation of the text by, for example, rounding corners, shortening endlines and filling holes and small gaps. Such degradation reduces readability of the text. EP-A-0372950 relates to method and apparatus for reducing a binary image using low pass filtering and a correction circuit to regenerate oblique thin lines when the output of the low pass filter is 0.37 or less. The apparatus includes a low pass filter, a sub-sampling unit, a correction value arithmetic, and a comparator. The image to be reduced is sub-sampled and is also input to the correction value arithmetic unit. Each pixel in the sub-sampled image is measured and its gray value shifted to a latch. A comparator detects the maximum one of differences between a pixel and its adjacent neighbors. The comparator outputs a bit indicative of the sign of the maximum difference detected. Thus, if the maximum difference is positive a 0 is output and if the maximum difference is negative, a 1 is output. When the maximum difference is positive, a thin black line and a block including an isolated point is indicated. When the maximum difference is negative, a thin white line in a block including an isolated point is indicated. The correction value arithmetic unit then determines a correction value to be applied to the pixel to ensure that the oblique thin line can be regenerated. According to this invention there is provided a method as claimed in claim 1. The problem of degradation of the text is overcome by enhancing a reduced pixel image of a document page by increasing the gray scale value of pixels determined to represent predefined features thereby sharpening the gray scale image. In an illustrative embodiment, a sharpening filter is applied to each pixel in a gray scale image which compares a pixel XO with at least one neighboring pixel. If the gray scale value of pixel XO is greater than the gray scale value of the at least one neighboring pixel, the gray scale value of pixel XO is increased. This technique causes predefined features of the text to be enhanced thereby preserving the clarity of the original document. Brief Description of the Drawing FIG. 1 is a block diagram of an electronic document system. FIGs. 2a-2c illustrate a text image to which a low pass filter has been applied. FIG.3 is a flow chart depicting sharpening gray scale image signals prior to binarization by a method using the present invention. FIGs. 4a-4e illustrate the application of a sharpening filter to various portions of a text image. Detailed Description Referring to FIG. 1, there is shown an electronic document system 100 for implementing a method of reducing the size of a document image using the present invention. An original document (not shown) is scanned by a scanner 110 which converts the document to digital image signals. In the preferred embodiment, the document is comprised primarily of information-bearing data, illustratively, data representing text containing alphanumeric characters and figures, such as, graphs, tables and drawings. The digital image signals are transmitted to a processor 120 which processes the signals for a display 170. The processor 120 can be any type of computer system such as a personal computer or computer workstation. The processor 120 includes a low pass filter 130 which samples the image signals at a predetermined subsampling rate. The subsampling rate is calculated in any known manner to produce a desired reduction in the amount of data contained in the document page. The subsampled signals are convolved with the low pass filter 130 to obtain a gray scale image. In accordance with the present invention, the gray scale image signals are then passed through a sharpening filter 140 which sharpens certain predefined features of the text which were degraded by the low pass filter 130 as described in detail below. The sharpened signals are transmitted to a converter 150 which converts the image signals to binary signals. The binary signals are stored in a memory 160 for future display. Alternatively, the gray scale image can be stored in memory 160 for future display. FIG. 2a illustrates an example of characters 210 which have been processed without a sharpening filter. Referring to FIG. 2b, after the original image signals have been convolved with the low pass filter and subsampled at the desired subsampling rate, the characters 215 of the subsampled image have rounded edges as illustrated by the endline 220 of the "b", and the hole 225 of the "b" is smaller. The ends 230 of the "c" character are moved closer together as well. Referring to FIG. 2c, the convolved image signals are converted to binary signals thereby producing binary characters 240. As can be seen, the processed "b" character has an enhanced rounded endline 245 and the hole 250 at the bottom of the "b" is almost nonexistent. The ends 255 of the processed "c" character are significantly closer together thereby making the "c" look very much like an "o". By applying a sharpening filter to the gray scale image signals, the image signals become more readable. FIGs. 3a - 3b illustrate a flow chart depicting a method of sharpening the image signals prior to converting the gray scale signals to binary signals. A sharpening filter is applied to each subsampled pixel X0 by raster scanning each row and column of the image to determine the features represented by the particular subsampled pixel (step 310). The sharpening filter is a 3 x 3 cross filter as illustrated below: Typically, there are at least four basic predefined features which are degraded by the low pass filter and require sharpening. A first feature is a peak, such as a period "." or a dot as in the letter "i". A second feature is a hole such as occurs in the letters "o" and "d". A third feature is a part of a ridge which includes the vertical and horizontal strokes of a letter such as in the letters "H" and "L". A fourth feature is an endline which is a stroke which extends from the end of a letter such as in the letters "b" and "p". In evaluating whether any of the pixels in an image contain one of these four predefined features, the four neighboring pixels, i.e., X1, X2, X3, X4, of each subsampled pixel X0 are examined (step 315). If the subsampled pixel represents part of one of the four features, the pixel may be augmented to sharpen its feature. The pixel X0 is preferably augmented to a higher gray scale value which causes the pixel to be turned ON (1) when converted to a binary signal. If the subsampled pixel is not part of one of the identified features, the pixel is ignored. Referring to FIG. 4a, if the gray scale value of all of the neighboring pixels of X0 are less than the gray scale value of X0 (step 320), it is determined that X0 is a peak (step 325). The sharpening filter augments the value of pixel X0 such that its gray scale value is approximately four times the intensity of each of pixels X1, X2, X3, X4 (step 330). Referring to FIG. 4b, if the value of all the neighboring pixels of X0 are greater than the subsampled pixel X0 (step 335), it is determined that X0 is a hole (step 340). As such, pixel X0 is ignored and is subjected to noise filtering which causes pixel X0 to be OFF (step 345). Referring to FIG. 4c, if the gray scale value of neighboring pixels X1 and X3 are less than the value of subsampled pixel X0 and the value of pixels X2 and X4 are greater than or equal to the value of pixel X0 (step 350), then it is determined that pixel X0 is part of a ridge along a row (step 355). The sharpening filter augments the value of pixel X0 such that it is approximately twice the value of pixels X2 and X4 (step 360). Referring to FIG. 4d, if the gray scale value of neighboring pixels X2 and X4 are less than the value of subsampled pixel X0 and the value of pixels X1 and X3 are greater or equal to the value of pixel X0 (step 365), then it is determined that pixel X0 is part of a ridge along a column (step 370). The sharpening filter augments the value of pixel X0 such that it is approximately twice the value of pixels X1 and X3 (step 375). Referring to FIG. 4e, if the gray scale value of subsampled pixel X0 is greater than any three of the neighboring pixels, but not all four neighboring pixels (step 380), it is determined that subsampled pixel X0 is on an endline (step 385). The sharpening filter augments the value of pixel X0 such that it is approximately twice the value of three lower value neighboring pixels (step 390). After the pixel has been examined and its features sharpened, the next pixel is examined until all of the pixels in the image have been examined (step 395). If the image is to be converted to binary signals, each subsampled pixel is compared to a predetermined threshold value. If the gray scale value of the pixel is greater than the threshold, the pixel is set to ON (1). If the pixel is less than the threshold value, the pixel is set to OFF (0). The binary signals are stored in memory and can be retrieved for display on a monitor. The reduction in image size allows for more of the image or all of the image to be viewed on the monitor. The foregoing merely illustrates the principles of the invention and it will thus be appreciated that those skilled in the art will be able to devise numerous alternative arrangements which, although not explicitly described herein, embody the principles of the invention.

Claims: A method for generating from an electronic document page having a first resolution, a representation of the document page for display on a display device (170) capable of displaying an image having a second resolution which is lower than the first resolution of the electronic document page, the method comprising passing the pixels through a low pass filter (130), sub-sampling the pixel to achieve a desired degree of reduction of the image size, and enhancing predefined features of the reduced image, the predefined features corresponding to particular attributes of a text character, each of the predefined features represented by a predetermined topological arrangement of pixels, each of the pixels having a particular gray scale value, CHARACTERIZED BY: applying a sharpening filter (140) to the sub-sampled pixels, the sharpening filter (140) comparing the gray scale value of the set of pixels, the set of pixels comprising a pixel XO in the reduced image and at least four neighboring pixels; identifying a particular topological feature of the set of pixels by determining if a match exists between the set of pixels in one of a plurality of stored pixel arrangements, each stored pixel arrangement corresponding to a particular predefined feature, wherein the predefined feature comprises at least one of a peak, a ridge, a hole, and an endline; modifying the gray scale value of the pixel XO by a specified amount, based on the particular topological feature identified, such that the corresponding predefined feature represented by the pixel is enhanced, wherein the predefined feature comprises at least one of a peak, a ridge, a hole, and an endline; and repeating the above steps for each pixel in the image. A method according to claim 1 wherein said sharpening filter (140) is a 3 x 3 cross filter. A method according to claim 1 comprising the step of converting the gray scale image to a binary image.

Inventors: O'GORMAN LAWRENCE PATRICK, O'GORMAN, LAWRENCE PATRICK
Applicants: AT & T CORP, AT&T CORP.
Application year: 1994
Main classification: H04N1
IPC codes: H04N1, G06T3