ENHANCEMENT OF IMAGE RESOLUTION AND CONTRAST

Abstract: An image processing method comprising: providing a digital, continuous-tone, input image represented by an array of pixels, the array having a predetermined pixel resolution and each pixel having a gray level; dividing the array of pixels into a plurality of sub-arrays of pixels; determining a gray level contrast for each of the sub-arrays; if the gray level contrast of a given sub-array exceeds a preselected threshold, generating a high resolution, narrow gray level range, sub-array corresponding to the given sub-array; and if the gray level contrast of the given sub-array is below the preselected threshold, generating a low resolution, wide gray level range, sub-array corresponding to the given sub-array.

Description: Enhancement of Image resolution and contrast FIELD OF THE INVENTION The present invention relates to digi tal image processing in general and, more particularly, to enhancement of image resolution and contrast. BACKGROUND OF THE INVENTION An image to be printed or displayed is generally represented by an array of pixel elements , sometimes referred to as a bit-mapped array , which function as an array of control codes which control the operation of printing-elements or di splay-elements which , in turn , produce the printed or displayed image . The bit-mapped array is generally constructed based on an input, continuous tone, image using a halftoning process which may incorporate hardware or software or a combination of both . Each pixel element in the bit-mapped array is represented by data bits which define attributes of the printed or displayed pixel , such as pixel color and gray level . A monochrome image is generally defined by a single array of pixel elements , wherein the data bits of each pixel element represent the gray level of the printed or displayed pixel . A color image is generally defined by a plurality of arrays of pixels , wherein each array corresponds to a base-color , such as cyan, magenta, yellow and black. Halftoning methods and apparatus are described , for example in U. S . Patent 4 , 499 , 489 , to Gall et al . , and in U. S . Patent 4, 084, 183, to Keller et al . The resolution of an image is generally determined by the density of pixels used to represent the image. The range of available gray levels per pixel is generally determined by the number of data bits used for representing each pixel . For example, a system using 8 bits per pixel yields a range of 256 gray levels per pixel , in monochrome printing, or 64 gray levels per pixel in 4-color printing . Due to limitations in processing speed and data storage capaci ty , the resolution and gray level separat i on capability of existing imaging systems is limited, particularly when images are processed "on the fly" in high speed printing systems. Therefore, in existing systems, image resolution must often be compromised in order to obtain a wider gray level range or vice versa. SUMMARY OF THE INVENTION The present invention seeks to provide a system and a method for enhancing both the resolution and the gray level range of a digitally reproduced image without increasing the amount of digital information required to define the image. According to the present invention, a detection circuit or algorithm is applied to an input, continuous tone (CT) , digital image which is to be printed, displayed or otherwise reproduced. The detection circuit or algorithm is utilized to distinguish between portions of the CT image to be reproduced at a high resolution but with a narrow gray-level range and portions of the CT image to be reproduced at a low resolution but with a wide gray-level range. The high- resolution, narrow gray level, portions are preferably represented by a relatively high pixel density, for example 800 dots per inch (DPI), but each pixel has a relatively narrow range of gray levels, for example one bit per pixel. The low resolution, wide gray level, portions are preferably represented by a lower pixel density, for example 200 DPI, but each pixel has a wider range of gray levels, for example 7 bits per pixel. In a preferred embodiment of the invention, the detection circuit or algorithm includes edge detection circuitry or an edge-detection algorithm which analyzes sub- arrays of the digital image, for example 4 pixel by 4 pixel sub-arrays of the digital image. An "edge" sub-array is detected when the gray level contrast within the analyzed sub-array exceeds a predetermined threshold. A "non-edge" sub-array is detected when the gray level contrast within the analyzed sub-array is below the predetermined threshold. - 3 - The gray level contrast may be defined, for example, as the difference or the ratio or any other suitable relation between the highest gray level and the lowest gray level within the analyzed sub-array. Subsequently, the "edge" sub- arrays are represented using the high resolution, low-gray level, representation and the "non-edge" sub-arrays are represented using the low resolution, high gray level, representation. This yields a compressed digital image having a reduced total amount of digital data, wherein a high resolution is maintained in the "edge" portions where the gray level range can generally be compromised, and wherein a wide gray level range is maintained in the "non- edge" portions where image resolution can generally be compromised. There is thus provided, in accordance with a preferred embodiment of the present invention, an image processing method including: providing a digital , continuous-tone , input image represented by an array of pixels , the array having a predetermined pixel resolution and each pixel having a gray level ; dividing the array of pixels into a plurality of sub- arrays of pixels; determining a gray level contrast for each of the sub- arrays; if the gray level contrast of a given sub-array exceeds a preselected threshold , generating a high resolution , narrow gray level range, sub-array corresponding to the given sub-array; and if the gray level contrast of the given sub-array is below the preselected threshold , generating a low resolution , wide gray level range, sub-array corresponding to the given sub-array . In a preferred embodiment of the present invention , providing the digital input image includes converting a given, unsuitable, pixel resolution into the predetermined pixel resolution. In a preferred embodiment of the invention, determining the gray level contrast includes determining the difference between the gray level of the highest gray level pixel and the gray level of the lowest gray level pixel. Alternatively, in a preferred embodiment, determining the gray level contrast includes determining the ratio between the gray level of the highest gray level pixel and the gray level of the lowest gray level pixel. In a preferred embodiment of the invention, the number of bits used for representing the gray level of each pixel in each high resolution sub-array is smaller than the number of bits used for representing the gray level of each pixel of the input image. Preferably, the gray level of each pixel in each high resolution sub-array is represented by one bit. In this preferred embodiment of the invention, generating the high resolution sub-array preferably includes comparing the given sub-array to a predetermined threshold matrix, including a threshold element for each pixel in the given sub-array, and assigning a first gray level to each pixel having a gray level lower than that of the corresponding threshold element and a second gray level to each pixel having a gray level higher than that of the corresponding threshold element. Additionally or alternatively, in a preferred embodiment of the invention, one gray level is assigned to each low resolution sub-array. According to this embodiment of the invention, the gray level of each low resolution sub- array is represented by more than one bit, preferably by seven bits . In accordance with a preferred embodiment of the invention, the method further includes combining the high resolut ion and low resol ut ion sub- arrays to f orm a compressed , resolution and gray level range enhanced , digital image. Addi tional ly , in accordance wi th a pre f erred embodiment , the method includes decompressing the compressed , resolution and gray level range enhanced , digital image to a form suitable for image reproduction. The decompressed image is then printed, displayed or otherwise reproduced. Preferably, decompression is performed "on the fly". BRIEF DESCRIPTION OF THE DRAWINGS The present invention will be better understood from the following detailed description of preferred embodiments of the invention, taken in conjunction with the following drawings in which: Fig. 1 is a block diagram schematically illustrating a system for enhancing the resolution and the gray level range of a digital image to be reproduced, constructed and operative in accordance with a preferred embodiment of the present invention; and Fig. 2 is a flow chart schematically illustrating a method of resolution and gray level enhancement in accordance with a preferred embodiment of the present invention. DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT Reference is now made to Fig. 1, which schematically illustrates a system for enhancing the resolution and the gray level range of a digital image to be reproduced, constructed in accordance with a preferred embodiment of the present invention. The system preferably includes a screen converter 10 which receives a continuous tone (CT) image 12, represented by an array of pixels having a given pixel resolution, and generates a corresponding CT image having a pixel resolution adapted for the imaging system to be subsequently used. For color imaging, the CT image includes a plurality of pixel arrays, one for each base color, for example cyan, magenta, yellow and black. As known in the art, each pixel in the CT array is represented by a bit- string which defines the gray level of the pixel. For example , i f each pixel is represented by an eight bit string, there are 256 different gray levels . The CT image is preferably stored in a memory of an image processor 14 , which preferably includes edge detection circuitry and/or software 15 , a high resolution image generator 11 , a low resolution image generator 13 and a compressed image generator 17 , as described in more detail below . In a preferred embodiment of the present invention, processor 14 produces a digital output representing a resolution and/or gray level enhanced , compressed , image suitable for subsequent reproduction by an output device 16 , which may include a printer, preferably a laser printer or an ink-j et printer , a display device or any other image reproduction device . As described below, the selective image enhancement of the present invention economizes on the amount of digital data representing the image and, thus , enables "on-the-fly" processing of the images when printing in large runs . Re ference i s now made al so to Fig . 2 which i s a schematic flow chart illustrating a method for resolution and gray level enhancement in accordance with the present invention . The method of Fig . 2 may be implemented using hardware or software in processor 14 or a combination of both . According to the present invention, the bit-mapped array received by processor 14 , as indicated at block 18 , is divided into a plurality of sub-arrays , for example 4 X 4 , i . e . 16 pixel , arrays , as indicated at block 20. Then, edge detection circuitry or software 15 in processor 14 determines the gray level contrast of each of the plurality of sub-arrays , for example by determining the difference or the ratio between the highest gray level and the lowest gray level within each sub-array, as indicated at block 22. Then, for each of the sub-arrays , the gray level contrast is compared to a preselected threshold contrast , as indicated at block 24. If the gray level contrast of a given sub-array is above the preselected threshold, a corresponding high resolution sub-array is generated, preferably by a high resolution image generator 11, as indicated at block 26. If the gray level contrast of the given sub-array is below the preselected threshold, a corresponding wide gray level sub- array is generated, preferably by a low resolution image generator 13, as indicated at block 28. The criterion described above for generating the high resolution sub-arrays is effective because a high gray level contrast generally indicates an "edge", i.e. a relatively sharp change in gray level within the sub-array. It should be appreciated that at the "edge" portions of the image the imaging resolution is more important than the gray level range. Simi l arly , the criterion described above for generating the low resolution, wide gray level range, sub- array i s ef fective because a low gray level contrast generally indicates a "non-edge" , i . e . a gradual change in gray level within the sub-array . It should be appreciated that at the " non-edge" portions of the image the range of avai l able gray level s i s more important than image resolution. In a preferred embodiment of the present invention, the number of pixels in each processed "edge" sub-array is equal to the number of pixels in the corresponding unprocessed "edge" sub-array, e.g. 16 pixels. However, to reduce the total number of bits in the processed image, the gray level of each pixel in the "edge" sub-arrays is preferably represented by a small number of bits, preferably by a one- bit-string. Generating the high resolution sub-array may include, for example, comparing the unprocessed sub-array to a predetermined threshold matrix, including a threshold element for each pixel in the unprocessed sub-array, and assigning a first gray level to each pixel having a gray level lower than that of the corresponding threshold element and a second gray level to each pixel having a gray level higher than that of the corresponding threshold element. Thus, a high resolution is maintained at the "edge" portions of the image. The use of such a threshold matrix, for halftoning, is described in U.S. Patent 4,499,489, to Gall et al., which is incorporated herein by reference. Further, in a preferred embodiment of the present invention, a single gray level is assigned to each "non- edge" sub-array, such that the resultant low-resolution sub-array functions as a single, coarse, pixel. The gray level assigned to a given "non-edge" sub-array may be, for example, the average gray level within the given sub-array. However, in contrast to the gray levels of the "edge" sub- arrays, the gray level of the "non-edge" sub-arrays are represented by relatively long bit-strings, preferably by seven-bit strings. Thus, a wide gray level range is available at the "non-edge" portions of the image. The high resolution and low resolution sub-arrays generated by generators 11 and 13, respectively, are preferably combined by a compressed image generator 17, as indicated at block 30, to form a compressed digital image including high resolution portions and low resolution portions as described above. Finally, as indicated at blocks 31 and 32, the compressed image is decompressed and reproduced, e.g. printed or displayed, by output device 16. In a preferred embodiment of the invention, the digital data in the compressed image is processed "on-the-fly" by output device 16, which may be high speed printer. While "edge" sub-arrays are preferably already in bit- map form, since each "edge" pixel is preferably represented by a single bit, "non-edge" sub-arrays require bit-mapping before they can be reproduced. Thus, "edge" and "non-edge" portions of the image require different reproduction, e.g. printing or displaying, modes. To enable correct interpretation of the compressed image during decompression 31, reproduction-mode-control bit strings are preferably introduced to the compressed image during compression 30. For example, a bit-string representing switching from low- resolution to high resolution reproduction, or vice versa, may be provided at the appropriate image locations, i.e. between "edge" and "non edge" portions of the compressed image. It will be appreciated by persons skilled in the art that the present invention is not limited by the description and example provided hereinabove. Rather, the scope of this invention is defined only by the claims which follow:

Claims: C L A I M S 1. An image processing method comprising: providing a digital , continuous-tone, input image represented by an array of pixels , the array having a predetermined pixel resolution and each pixel having a gray level; dividing the array of pixels into a plurality of sub- arrays of pixels; determining a gray level contrast for each of the sub- arrays; if the gray level contrast of a given sub-array exceeds a preselected threshold, generating a high resolution, narrow gray level range, sub-array corresponding to the given sub-array; and if the gray level contrast of the given sub-array is below the preselected threshold, generating a low resolution, wide gray level range, sub-array corresponding to the given sub-array. 2. A method according to claim 1 wherein providing the digital input image comprises converting a given, unsuitable, pixel resolution into the predetermined pixel resolution. 3. A method according to claim 1 or claim 2 wherein determining the gray level contrast comprises determining the difference between the gray level of the highest gray level pixel and the gray level of the lowest gray level pixel. 4. A method according to claim 1 or claim 2 wherein determining the gray level contrast comprises determining the ratio between the gray level of the highest gray level pixel and the gray level of the lowest gray level pixel. 5. A method according to any of the preceding claims wherein the number of bits used for representing the gray level of each pixel in each high resolution sub-array is smaller than the number of bits used for representing the gray level of each pixel of the input image. 6. A method according to any of the preceding claims wherein the gray level of each pixel in each high resolution sub-array is represented by one bit. 7. A method according to claim 6 wherein generating the high resolution sub-array comprises comparing the given sub- array to a predetermined threshold matrix, including a threshold element for each pixel in the given sub-array, and assigning a first gray level to each pixel having a gray level lower than that of the corresponding threshold element and a second gray level to each pixel having a gray level higher than that of the corresponding threshold element. 8. A method according to any of the preceding claims wherein one gray level is assigned to each low resolution sub-array. 9. A method according to claim 8 wherein the gray level of each low resolution sub-array is represented by more than one bit. 10. A method according to claim 9 wherein the gray level of each low resolution sub-array is represented by a seven-bit- string. 11. A method according to any of the preceding claims and further comprising combining said high resolution and low resolution sub-arrays to form a compressed, resolution and gray level range enhanced, digital image. 12. A method according to claim 11 and further comprising decompressing the compressed, resolution and gray level range enhanced, digital image to a form suitable for image reproduction. 13. A method according to claim 12 and further comprising reproducing a physical image corresponding to the compressed , resolution and gray level range enhanced , digital image. 14. A method according to claim 13 wherein decompressing the compressed image comprises "on the fly" decompression. 15. A method according to cl aim 13 or 14 wherein reproducing a physical image comprises printing an image corresponding to the digital image. 16. A method according to any of claims 13 - 15 wherein reproducing a physical image comprises displaying an image corresponding to the digital image .

Inventors: BEN DROR, NIV YEHUDA, BEN, DROR, NIV, YEHUDA
Applicants: BEN DROR, INDIGO NV, NIV YEHUDA, BEN, DROR, INDIGO N.V., NIV, YEHUDA
Application year: 1995
Main classification: G06T9
IPC codes: G06T3, G06T9, H04N1