Image processing system and method employing combined black and white and gray scale image data

Abstract: In order to reduce data storage and transmission band­ width requirements, a high resolution gray scale image is represented in two separate image forms, namely, a high resolution, high sampling density black and white image and a lower resolution, lower sampling density gray scale image. Generating separate black and white and gray scale image data allows the use of either image form independently. The high resolution black and white image data and the low resolution gray scale image data may be recombined subsequently to produce reconstructed high resolution gray scale image data representing the image.

Description: This invention relates to the processing of image data, and more particularly to a system and method for producing high resolution gray scale image-data representing an image. The system and method of the present invention is especially useful in image processing systems wherein the images from documents, such as bank checks, are stored electronically in a computer system and the images may be subsequently retrieved for display or printing. Many kinds of documents, including bank checks, contain information in the form of sharp high contrast images, such as numbers and signatures, as well as broader, lower contrast images such as endorsements, printed information, pictures, background designs and the like. Documents of this type cannot adequately be represented by black and white image data, since the thresholding of the image data into discrete black and white values results in loss of low contrast information. A high quality, high resolution gray scale image representation would adequately reproduce both high contrast images and lower contrast images, but would require massive amounts of data storage, which would be impractical and economically infeasible in a system that processes image data for high volumes of documents. IBM Technical Disclusure Bulletin, Vol. 20, No. 12, May 1978, pp. 5416-5421 discloses a optical scanning of continuous-tone and line documents with spatial frequency separation for improved data handling and compaction. In the TDB, the 'high frequency' output is a three level output: Black/relinguish to low-resolution/white. Two threshold are set; not one as in a true black/white only output. A threshold is set above and below zero. Pels exceeding the positive threshold would be defined as white; pels below the negative threshold would be printed as black. For the pels where the difference is in the region near zero, the black/white decision is relinguished to the low-resolution, pseudo-halftone portion of the algorithm. International Optical Computing Conference, Vol. 232, April 1980, pp. 210-215 discloses a optical implementation of a spatially adaptive image data compession system. The system has the overall behaviour of trying to represent the image by low-frequences, but with adaptive mechanisms to select and retain the most important high-frequency content for the edge structures. Proceedings of the IEEE, Vol. 68, No. 7, July 1980, pp. 874-885 discloses a technique of compressing image data derived from personal checks which process several gray levels. In order to reduce data storage and transmission bandwidth requirements, a high resolution gray scale image is represented in two separate image forms, namely, a high resolution, high sampling density black and white image and a lower resolution, lower sampling density gray scale image. Generating separate black and white and gray scale image data allows the use of either image form independently. The high resolution black and white image data and the low resolution gray scale image data may be recombined subsequently to produce reconstructed high resolution gray scale image data representing the image. It is object of the present invention to provide a method for producing a high resolution gray scale representation of an image which comprises providing low resolution gray scale image data for the image, providing high resolution black and white image data for the image, and merging the low resolution gray scale image data and the high resolution black and white image data to produce reconstructed high resolution gray scale image data representing the image. The present invention also provides an image processing system for carrying out this method. This object is solved by the solution given in independent system claim 1 and method claim 3. Further advantageous embodiments of the present invention are laid down in the dependent claims. In merging the low resolution gray scale image data and the high resolution black and white image data, the low resolution gray scale image data is first interpolated by a two dimensional linear interpolation to high sampling density gray scale image data of the same sampling density as the black and white image data. Then the interpolated high sampling density gray scale data and the high resolution black and white image data are combined to produce the reconstructed high resolution gray scale image data. The interpolated high sampling density gray scale image data suffers from loss of definition and detail, especially along high contrast boundaries, as a result of the earlier reduction in resolution. The gray scale values present in the interpolated high sampling density gray scale data represent averages of the gray scale values at the lower resolution. In combining the interpolated gray scale values with the high resolution black and white image data, a convolutional technique is employed to restore the lost definition and detail. In this technique, a sliding convolutional window is employed for generating for each successive data element of the high resolution black and white data a corresponding high resolution enhancement value based upon the sum of weighted values of that data element and a plurality of surrounding data elements. The derived high resolution enhancement value for each data element or pel is added to the interpolated high sampling density gray scale value for the corresponding pel to thereby produce the reconstructed high resolution gray scale image data. The invention will be shown in more detail in the following description in accordance with the drawing in which the embodiment is shown and in which Fig. 1A illustrates an image containing both high contrast information and low contrast information; Fig. 1B illustrates the loss of image data and detail resulting from thresholding the image of Fig. 1A into black and white image data at a relatively low threshold level; Fig. 1C illustrates the loss of image data and detail resulting from thresholding the image of Figure 1A into black and white data at a higher threshold level; Fig. 2 is a schematic diagram illustrating the procedure for producing reconstructed high resolution gray scale image data in accordance with the invention; Fig. 3A is a graph representing a raster scan of an image; Fig. 3B is a graph illustrating a low resolution, low sampling density gray scale representation of the image of Figure 3A; Fig. 3C is a graph illustrating a high resolution black and white (binary) image of the same image; Fig. 3D is a graph illustrating an interpolated high sampling density gray scale image; Fig. 3E is a graph illustrating on an expanded scale the enhancement values; Fig. 3F is a graph illustrating the reconstructed high resolution gray scale image produced by combining the enhancement values of Figure 3E with the interpolated high sampling density gray scale image of Figure 3D; Fig. 4 is a schematic representation of a raster scanned black and white (binary) image, with the picture elements (pels) of the image shown as ones and zeros; Fig. 5 illustrates the sliding convolutional window used to produce the high resolution enhancement values; Fig. 6A-6D illustrate a sequence of steps and the results obtained when the sliding convolutional window is applied to the image of Figure 4 to produce the enhancement values; Fig. 7 illustrates the partially completed arrangement of enhancement values produced by applying the sliding convolutional window to the image of Figure 4; and Fig. 8 is a view similar to Figure 7, but with values along the borders completed. Many paper documents, including checks, contain sharp, distinct markings such as machine printing and hand-written information. It is recognized that high resolution black and white (or binary) image form produces the best reconstructed image quality for the least amount of data quantity for these types of markings. However, those same documents may also contain less distinct, lower contrast markings such as scenic backgrounds and colored endorsements. Figures 1A-1C illustrate the problems of using only black and white images. Figure 1A shows the original image with the word FIRST printed in a relatively low contrast color, while in the background is a series of digits printed in high contrast black and white. Figure 1B illustrates the result of attempting to capture the low contrast information represented by the word FIRST by using a relatively low black and white threshold value. It can be seen that high contrast data, represented by the digits underlying the letters of the word FIRST, are lost. Figure 1C illustrates the black and white result of using a higher threshold value. In this instance, the lower contrast information represented by the word FIRST is lost. In instances where all of the information on a document is important, the best image representation is a high resolution gray scale image employing multiple levels of gray, e.g. 256 gray levels. However, this generally results in an unmanageable amount of image data, since gray scale image representation requires data on the level of grayness and thus inherently requires more storage than black and white information, which is represented by a single bit per picture element. By representing the image separately by high resolution black and white image data (e.g. 240 pels per inch) and low resolution gray scale image data (e.g. 80 pels per inch) a reduction in the amount of data required to represent the image is realized. Either form of representation can be separately and independently utilized to recall and display the image. Another advantage of two separate representations is the availability of redundant information for certain parts of the document in the case of data errors. Still another advantage is the availability of a partial image for different applications. For example, signature verification and OCR applications may suitably use the black and white high resolution data, while in other applications, such as endorsement verification for example, only the gray scale data may be required. Both forms of image representation are kept separate through any image processing steps such as data reduction and compression and subsequent storage. When it is desired to recall and display or print the image in a high resolution gray scale form, the two image forms are decompressed and merged analytically into one image representation. As shown in Figure 2, high resolution black and white raster scanned image data at a resolution of 240 pels per inch is stored in compressed form as indicated at 10. Any of a number of well known data compression techniques, such as run length coding for example, can be employed to reduce the volume of data required to represent an image. Similarly, low resolution gray scale raster scanned image data at a resolution of 80 pels per inch is stored in compressed form as indicated at 11. Any of a number of well known data compression techniques can be utilized for reducing the volume of the gray scale data. In producing a reconstructed image, the compressed high resolution black and white image data is decompressed by a suitable decompression means 12 appropriate for the compression technique employed, and a separate decompression means 13 is used for decompressing the low resolution gray scale data. In forming a reconstructed high resolution gray scale image, the decompressed low resolution gray scale image data is first expanded into high sampling density gray scale image data of the same sampling density as the black and white image data, as indicated at 14. This is achieved by suitable interpolation techniques, such as by two dimensional linear interpolation. Then the interpolated high sampling density gray scale is merged as indicated at 15 with the high resolution black and white data to produce reconstructed high resolution gray scale image data, as indicated at 16. This reconstructed data can be displayed on a suitable display device 17. More particularly, the merging of the interpolated high resolution gray scale data with the high sampling density black and white data employs a convolutional technique designed to restore lost definition and detail to the low resolution gray scale data. This technique involves generating high resolution enhancement values from weighted sums of the high resolution black and white image data to compensate for the loss of definition which results from the low resolution representation of the gray scale image data. These enhancement values are then added to the interpolated high sampling density gray scale data to thereby produce reconstructed high resolution gray scale image data. The effect of the enhancement values is to subtract out the "smearing" or "averaging" effect of the low resolution gray scale representation. This will be better understood by referring to Figures 3A-3F, where Figure 3A graphically represents the raster scan of an image. Figure 3B graphically represents a low resolution, low sampling density digitized gray scale form of the same image. Notice how the sharp peaks are reduced in amplitude, and in fact, the twin peaks are run together in the low resolution Figure 3B. Figure 3C shows the binary representation of Figure 3A at high resolution, high sampling density. (The upper line in the curve is the "0", or white value, the lower line is the "1", or black value, consistent with the polarity of the gray-scale curves which are shown to range from 0 to 255.) Note that the high resolution binary image captures the fine details, but does not reproduce the overall gray shadings. Figure 3D shows the "smeared out" high sampling density gray scale which is derived by interpolation from the low resolution, low sampling density gray scale values of Figure 3B. Although the image is now at the same high sampling density as the black and white image of Figure 3C, it suffers from the same loss of definition and detail as Figure 3B. The twin peaks of Figure 3A are lost. Figure 3E represents the enhancement values, the output of the weighted window convolution process described in Figures 4 to 8. The exact shape of this curve depends on the binary values of the preceding and following lines, but what is shown is a typical type of curve. The vertical scale of this curve is increased to better demonstrate the process. Figure 3F is the sum of the two previous curves. Note that the "mixed" or reconstructed high resolution curve of Figure 3F contains the high resolution twin peaks of Figure 3A and the overall gray-scale value trends. The method of recombining the interpolated high sampling density gray scale image data and the high scale black and white image data will be understood more fully from the detailed example which follows. The matrix shown in Figure 4 consists of the black/white high resolution pel values, of "1"'s and "0"'s, which collectively define an image. Figure 5 shows the convolutional weighting "window" used in generating the output values in Figure 8. Figures 6A-6D show examples of how the window is used. In Figure 6A, the window overlays the upper left-hand corner of the matrix of Figure 4. The values shown in Figure 6A are derived by multiplying, for each of the nine locations, the value of the weighting window by the value of the underlying pel (1 or 0). Thus, the corresponding right edge and lower right corner of the window have weighting values of +8, while the remaining values are zero. Adding up the products gives a net value of 16. Since the window is centered over location <2,2> of the matrix, the value of 16 is placed in the corresponding position <2,2> of the output matrix in Figure 7. When the window is moved one position to the right, now centered over position <2,3>, as indicated in Figure 6B, the contribution to the sum of products from elements <1,2>, <1,3>, <2,2>, and <3,2> is 0, the contribution from the other four perimeter squares is 8 each, for a total of 32, but now the central window weight of -64 is multiplied by the value "1" of element <2,3>, so that the entire total for this window position is -32. Figures 6C and 6D give another couple of examples. Figure 7 has the result for all locations which can be calculated from the combination of the data in Figure 4 and the window of Figure 5. By assuming a border of "0"'s outside the perimeter of Figure 4, we can then fill to the edges, i.e., extend Figure 7 to Figure 8. The negative values in Figure 8 represent a "blackening" of the gray scale values, which occurs on the "black side" of a character stroke in an image. The positive values represent a "whitening" of the gray scale which occurs on the "white side of the boundary. Note that for a large uniform area of all white or all black, the output would be zero since, if every element under the window is "0", then the sum of products would be zero. On the other hand, if every element under the window is "1", then the eight +8 terms around the perimeter of the window would exactly cancel the single -64 value in the center. This is a desirable result since the reconstructed high resolution gray scale values of uniform areas should be determined solely by the low-resolution gray scale data. Only at edges of areas do we desire to "sharpen" the contrast of the image. The final step in the process is to add together the interpolated gray scale with the "windowed" black/white weighting values. The weights in the window, Figure 5, were selected to be used in a system where the whitest gray scale value is 255, and the blackest is 0. The signs of the elements in the window would be changed for reversed video, which has the blacker gray values numerically larger than the whiter gray values. The amplitudes of the windows may be increased or decreased proportionally to increase or decrease the effect of this "sharpness" process. The number of elements in the window (its size) may also be changed, but the 3 by 3 works well for a 3 times relationship between low resolution and high resolution images. For the reasons stated earlier, the sum of the window elements should be zero.

Claims: An image processing system for producing high resolution gray scale image data representing an image, comprising: means (11) defining low resolution gray scale image data which independently represents the image; means (10) defining high resolution binary black and white image data which independently represents the image; means (15) for merging the low resolution gray scale image data and the high resolution black and white image data to produce reconstructed high resolution gray scale image data representing the image, and comprising means (14) for interpolating the low resolution gray scale data by a two-dimensional linear interpolation to high sampling density gray scale image data of the same sampling density as said black and white image data; and means (16) for combining the interpolated high sampling density gray scale data with the black and white data to produce reconstructed high resolution gray scale image data representing the image, and including means for generating enhancement values from the high resolution black and white image data to compensate for the loss of definition resulting from representing the image with low resolution gray scale image data, and means for adding the thus generated enhancement values to the interpolated high sampling density gray scale image data to thereby produce the reconstructed high resolution gray scale image data, wherein said means for generating enhancement values from the high resolution black and white data comprises means for generating for each successive data element of the high resolution black and white data a corresponding enhancement value based upon the sum of weighted values of said data element and a plurality of surrounding data elements. An image processing system as set forth in claim 1 including means for storing the low resolution gray scale image data and the high resolution black and white image data in compressed form, and wherein the system includes means (12) for decompressing the low resolution gray scale image data and the high resolution black and white image data. A method for producing a high resolution gray scale representation of an image, comprising: providing low resolution gray scale image data which independently represents the image (11); providing high resolution black and white image data which independently represents the image (10), merging the low resolution gray scale image data (15) and the high resolution black and white image data to produce reconstructed high resolution gray scale image data representing the image, said step of merging comprising: interpolating the low resolution gray scale data (14) by a two-dimensional linear interpolation to high sampling density gray scale image data of the same sampling density as said high resolution black and white image data, and combining the interpolated high sampling density gray scale data (16) with the black and white data to produce reconstructed high resolution gray scale image data representing the image, said combining step including generating enhancement values from the high resolution black and white image data to compensate for the loss of definition along high contrast boundaries resulting from representing the image with low resolution gray scale image data, and adding the thus generated enhancement values to the interpolated high sampling density gray scale image data to thereby produce the reconstructed high resolution gray scale image data, wherein said step of generating enhancement values from the high resolution black and white data comprises generating for each successive data element of the high resolution black and white data a corresponding enhancement value based upon the sum of weighted values of said data element and a plurality of surrounding data elements. A method as set forth in claim 3, wherein said high resolution black and white data comprises binary raster scan data representing the image, with each bit representing the value of a corresponding pel of the raster scan, and wherein said step of generating enhancement values from the high resolution black and white data comprises generating for each successive bit a corresponding enhancement value based upon the sum of the weighted values of the bits in a predetermined matrix surrounding said bit.

Inventors: DINAN RAYMOND F, DUBIL JAMES F, HILLERY JOHN R, RODITE ROBERT R, WHITE JAMES M, DINAN, RAYMOND F., DUBIL, JAMES F., HILLERY, JOHN R., RODITE, ROBERT R., WHITE, JAMES M.
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1988
Main classification: H04N7
IPC codes: G06T9, H04N1, G06T3, G06T5