IMAGE DISCRIMINATION WITH CONTINUOUS TONE AREA THINNING

Abstract: Apparatus and method for discriminating be­ tween regions of text and continuous tone areas of mixed format documents and for selecting print/no-­ print decisions to be made by either an image process­ ing algorithm (20) optimized for text or an image pro­ cessing algorithm (22) optimized for continuous tone. A video signal of digital values indicative of pixels repre­ senting the image content of the document is applied to a two-level comparator (25) to produce a preliminary text mode or continuous tone mode decision. A continu­ ous tone preliminary decision is changed to a text deci­ sion if the pixel of interest is within a predetermined dis­ tance of a text pixel.

Description: Technical Field This invention relates generally to processing image data obtained by scanning a document; and more particularly to discriminating between text material and continuous tone material in mixed format documents so that the image data may be appropriately processed. Background Art Image processing for electronic copying or facsimile transmission is well know in the prior art. An original document is scanned to produce a video signal representative of the image. The video signal is next processed to optimize the reproduction. Generally, text and low frequency halftone material (herein collectively referred to as text material) are processed with different algorithms than continuous tone and high frequency halftone material (herein referred to collectively as continuous tone material). Text material is optimized by a processing algorithm which results in sharp edge definition, high contrast, and high frequency detail rendition. Continuous tone material is optimized by an algorithm which results in good gray scale reproduction and only moderate detail rendition. The algorithms which are optimized for one type of material generally yield results which are marginal to poor on the other type of material. Prior art methods to switch between algorithms optimized for text and those optimized for continuous tone reproduction include methods which discriminate based on the video signal level. The video signal is passed through a two-level comparator network. Signals above an upper threshold or below a lower threshold are processed by the text image processing algorithm, while signals falling between the two thresholds are processed by the continuous tone image processing algorithm. One prior art method, disclosed in EP-A-0055834, discloses a document scanner 10 which scans a document to be reproduced and the serial output data (PEL's) is provided to a system controller 30 and to an input buffer means 14. The controller 30 provides control signals on line 50 to a print decision multiplexor 48 which can receive inputs on lines 44, 46, 54. The input on 54 is selected when a line copy algorithm is to be used to control printing, the input on line 44 when a continuous tone print algorithm is to be used to central printing and the input on line 46 is to be used when a third algorithm is to be used suitable for areas of an original not clearly continuous tone or line tone. The appropriate line 44, 46, 54 is selected in accordance with the sequence of data representing the original. For this purpose gradient logic means 26 is connected by busses 16, 18, 20, 22, 24 to selected storage positions of the buffer means 14 and generates a gradient signal on line 28 for each PEL. Similarly look ahead logic means 32 are connected by busses 20', 22', 24' to selected storage positions of the buffer means 14. The look ahead means 32 provide signals on lines 34, 36 indicative of whether any selected storage position respectively holds a white valued or black valued PEL. In addition hysteresis counters 40 provide signals on lines 58 through 96 indicative of the preceding operational mode and/or preceding PEL values. Latches 104, 106, 108, 110 provide respectively reference signals indicative of a white threshold level, a black threshold level, a threshold level usable for line copy and a datum gradient value. The system controller 30 is a data processor and is operative to correlate the signals supplied to it and to generate control signals for the multiplexor block 48. While these systems are generally accurate, small regions in text areas at the edges of objects would be found to be continuous tone regions. If the continuous tone image processing algorithm were used in such small regions, the printed edges would appear ragged. If the object were small, the entire object might be printed as continuous tone if the rise times of the input image are wider than the object. Also, low frequency halftones would have an undesirable appearance because the edges of the halftone dots would be considered to be continuous tone while the centers of the dots would be found to be text. Disclosure of the Invention In accordance with the present invention, preliminary decisions are made between text and continuous tone processing modes for individual pixels of mixed format documents. Subsequently, a final decision is made by changing continuous tone decisions to text decisions for pixels within a predetermined number of pixels of a text pixel. Text mode image processing is selected for pixels having a final text decision and continuous tone image processing is selected for pixels having a final continous tone decision. In accordance with another feature of the present invention, a video signal representative of the image content is applied to a comparator network which makes a preliminary decision between text and continuous tone processing modes based on the pixels' video signal value, and which generates an output signal representative of the preliminary decision. Continuous tone decisions for pixels within a predetermined number of pixels of a text pixel are changed to text decisions. The present invention effectively removes the thin continuous tone edges on characters, low frequency halftone material and other objects. It also improves reproduction of narrow-line, low-density characters by thinning completely through the characters, thereby using the text algorithm on the entire character to increase the contrast and quality. Brief Description of the Drawings In the detailed description of the preferred embodiments of the invention presented below, reference is made to the accompanying drawings, in which: Figure 1 shows, in block diagram form, image processing apparatus according to a preferred embodiment of the present invention; Figure 2 is a graphical representation of comparator threshold values; Figure 3 is a flowchart of the process by which the discrimination of the image is made; and Figure 4 is representation of the architecture of a preferred embodiment of the continuous tone area thinner which forms a portion of the apparatus of the present invention. Best Mode for Carrying Out the Invention Referring to Figure 1, a document scanner 12 makes successive line scans across a document to generate a video signal of values indicative of pixels. Each individual pixel comprises a discrete voltage representation of the image density of an area of the document, the various voltage levels forming a relative measure of the image gray scale. The voltage representation is digitized at an analog-to-digital converter 14 into N-bit per pixel words. In content, the image on the document may be composed entirely of text, entirely of continuous tone, or combinations thereof. The output of analog to digital converter 14 is coupled by a bus 16 to a discrimination network 18, a processor 20 having an image processing algorithm optimized for text, and a processor 22 having an image processing algorithm optimized for continuous tone. The outputs of processors 20 and 22 are coupled to a controller 24 through buffers 26 and 28, respectively, which temporarily store processed pixels pending a determination by discrimination network 18 of whether, due to image content, processing by either text processor 20 or continuous tone processor 22 is desirable. The output of controller 24 is coupled to a data recipient. Text processor 20 comprises any suitable algorithm effective to image process the pixel being examined in a manner optimum for text material. For example, processor 20 may provide a single level threshold against which the pixel being examined is compared. Continuous tone processor 22 comprises an algorithm effective to image process the pixel being examined in a manner optimum for continuous tone material. In either case, the output of the processors are print/no-print decisions for black/white reproduction, respectively. Discrimination network 18 includes a comparator 25 which compares the video signal level to high and low threshold values. If the video value is outside the comparator threshold values, a preliminary decision to instruct controller 24 to select text processor 20 is created on line 27. If the video value is between the threshold values, the preliminary decision is to use continuous tone processor 22, but that decision can be overridden by a continuous tone area thinner 29, as explained below. Figure 2 is a graphic representation of the electrical signals on bus 16 representative of the image being processed. The graph is useful in understanding the conditions used by the invention to make a preliminary decision between text and continuous tone processing modes for individual pixels of the document. Figure 2 shows video values for a portion of a scanned line. The video values are thresholded at an upper value 40 and a lower value 42 to distinguish text pixels from continuous tone pixels. Signals between the two threshold values 40 and 42 are considered to represent continuous tone pixels. There are many instances in image processing when a pixel's video value will be between threshold values 40 or 42; even though the pixel comes from, or would best be processed as, a text portion of the image. For example, a pixel which was at the edge of an object in a text area would be partially in white and partially in black, and would have an overall continuous tone density even though it came from a text area of the document. Other instances are set forth in the Background of the Invention section of this specification. Accordingly, the present invention provides a continuous tone area thinner 29 for shrinking continuous tone areas by changing continuous tone preliminary decisions on line 27 to text decisions whenever there is a text pixel within a predetermined number (say two or three) of pixels of the pixel of interest. This effectively removes the thin gray edges on objects. It also improves narrow-line low density characters by thinning completely through the characters, thereby using the text algorithm on the entire character to increase the contrast and quality of the printed image. The thinner works by storing several lines of text or continuous tone preliminary decisions from comparator 25. It then examines continuous tone preliminary decisions in a small area around the pixel under consideration. If any of the pixels in the area are found to be text, then the preliminary decision is overridden and the text mode is selected. Only if all of the pixels in the small area are found to be continuous tone, is the continuous tone mode selected. As a result, only borders of continuous tone regions are effected. When a continuous tone pixel is on or near the edge of a continuous tone region, the text mode is selected because the area under consideration still contains at least one pixel having a density falling outside threshold levels 40 or 42. This produces a thinner continuous tone region. Very narrow continuous tone regions will be processed completely in the text mode. Figure 3 is a flowchart showing process steps to be followed by the system according to the preferred embodiment of the present invention. A conventional microprocessor, a programmable logic array, or discrete logic could be implemented to perform the functions shown in the flowchart. Referring to Figure 3, a pixel of interest passes through a connector block 50 and enters into a decisional block 52. In block 52, the pixel is tested to determine whether its video level is greater than upper threshold level 40 of Figure 2. If so, the logic exits the decisional block along a path 54 into a function block 56 to select text processor 20 for the pixel. If the decision from decisional block 52 was "no" instead of "yes," then the logic exits block 52 along a path 58 into a decisional block 60. In block 60, the pixel is tested to determine whether its video level is less than lower threshold level 42 of Figure 2. If so, the logic exits the decisional block to path 54 into function block 56 to select text processor 20 for the pixel. If the decision from decisional block 60 was "no" instead of "yes" (the video value of the pixel falls between threshold values 40 and 42), then the logic exits block 60 along a path 62 into a decisional block 64. In block 64, the system tests to determine if any pixels within a predetermined distance, or number of pixels, of the pixel of interest have been preliminarily determined to be a text pixel. If such a pixel exists within the predetermined distance or number of pixels, the logic exits the decisional block to path 54 into function block 56 to select text processor 20 for the pixel. If the decision from decisional block 64 was "no" instead of "yes" (no text pixel exists within the predetermined distance or number of pixels of the pixel of interest), then the logic exits block 64 along a path 66 into function block 68 to select continuous tone processor 22 for the pixel. From function blocks 56 and 68, the program loops to fetch another pixel. As set forth above, decisional block 68 determines which image processor 20 or 22 is used for a pixel by inspecting pixels in an area surrounding the pixel of interest. The size and shape of the area used to make this determination may be optimized for the expected quality of the input image. If the input image has very sharp edges (i.e. one to two continuous tone pixels being needed to rise from a light area to a dark area), a small area can be used. However, if the rise times of edges are more than three or four pixels, a small thinning area will not be able to completely remove the continuous tone transition region. If this problem occurs, a high pass convolution filter can be used to reduce the rise time of an edge to one or two pixels. Alternatively, the size of the area in which pixels are examined can be operator-selectable. A larger area of examination would possibly produce a noticable border around continuous tone areas, but a high pass filter is a more costly solution. For either solution, it is very desirable that the area be at least large enough to completely remove the continuous tone edges of objects in text regions. Figure 4 shows a preferred implementation of the present invention. It is to be noted that both the shape and the size of the area in which pixels are reviewed may change to optimize for different input devices and image content. As preliminary decisions are made by comparator 25 of Figure 1, they are passed as single-bit values through an array of memory that is long enough to store the decisions for one line of the scanned image. When the decision for a pixel passes through a first line 70 of storage, it is shifted into a second line 72 of storage. This continues as the decision ripples through the second, third, and fourth lines of storage. Storage location 74 holds the pixel of interest. Since all of the pixel decisions for the entire document are passed through this array, each pixel will be the pixel of interest one time. A set of thirteen pixel decisions from the array are passed into thinning decision logic 76, described with respect to Figure 3. These thirteen pixels form a diamond shaped area around the pixel of interest. As described above, the logic examines the preliminary decisions in the area. The final decision for the pixel of interest is continuous tone if all of the preliminary decisions in the area are continuous tone. Otherwise, the decision is text. The result is that any continuous tone pixel that is within two pixels of a text pixel in any direction will be modified to be a text pixel.

Claims: Apparatus for selecting image processing by either text mode (20) or continuous tone mode (22), said apparatus including means (25) for differentiating between text and continuous tone pixels, and for generating a preliminary discrimination signal (27), said apparatus comprising: means (29), operable upon the preliminary discrimination signal (27) for a pixel of interest, for creating a final discrimination signal (30) by changing a continuous tone preliminary decision to a text decision if the pixel of interest is within a predetermined distance of a text pixel; and means (24) for selecting (1) text mode image processing when the final discrimination signal is a text decision, and (2) continuous tone image processing when the final discrimination signal is a continuous tone decision. Apparatus of Claim 1, said apparatus being operable upon a video signal of values indicative of pixels which represent the image content of a document, for discriminating between text and continuous tone areas of mixed format documents, and for selecting between image processing algorithms optimized for text or image processing algorithms optimized for continuous tone, said apparatus further comprising: first (20) and second (22) image processors having, respectively, a text image processing algorithm and a continuous tone image processing algorithm; means (16) for applying the video signal to said comparator, and to said first and second image processors; and wherein said differentiating means includes a comparator (25) adapted to differentiate between text and continuous tone pixels depending on the video signal values of the pixels, and to generate a preliminary discrimination signal (27). Apparatus of Claims 1 or 2 wherein the predetermined distance defines an area at least large enough to completely remove continuous tone edges of objects in text regions. Apparatus of Claims 1 or 2 wherein the predetermined distance is operator selectable. Apparatus of Claim 1 wherein the predetermined distance defines a diamond shaped area around the pixel of interest. Apparatus of Claim 5 wherein the area encompasses thirteen pixels. A method for selecting image processing by either text mode or continuous tone mode including the step of making (52, 60) a preliminary decision if pixels are either text or continuous tone pixels, said method comprising: making (64) a final decision by changing a continuous tone preliminary decision to a text decision if the pixel of interest is within a predetermined distance of a text pixel; and selecting (56, 68) text mode image processing for pixels having a final text decision, and continuous tone image processing for pixels having a final continuous tone decision. The method of Claim 7, for operating upon a video signal of values indicative of pixels which represent the image content of a document, for discriminating between text and continuous tone areas of mixed format documents and for selecting between processing algorithms optimized for text or image processing algorithms optimized for continuous tone, said method being further defined by: said making (52, 60) step including the step of differentiating (52, 60) between text and continuous tone pixels depending on the pixels' video signal values, and generating a preliminary discrimination signal; said making (64) step including the step of creating (64), for a pixel of interest, a final discrimination signal by changing a continuous tone preliminary decision to a text decision if the pixel of interest is within a predetermined distance of a text pixel; and said selecting (1) step including the step of selecting (1) a text image processing algorithm when the final discrimination signal is a text decision (56), and (2) a continuous tone image processing algorithm when the final discrimination signal is a continuous tone decision (68).

Inventors: SMITH, CRAIG, M.
Applicants: EASTMAN KODAK COMPANY (A NEW JERSEY CORPORATION)
Application year: 1988
Main classification: H04N1
IPC codes: G06T1, H04N1, G06T7