Image processing apparatus

Abstract: An image processing apparatus performs processing to input an original image pattern composed of dots, detect contour dots from the inputted original image pattern, and identify a pattern of dot rows formed by the contour dots detected. Editing is performed with regard to the location of a dot row at which the identified pattern is a pattern to undergo editing, whereby the inputted original image pattern is converted into an image pattern represented by intermediate brightness. The image pattern so edited is outputted as by a printer.

Description: BACKGROUND OF THE INVENTION Field of the Invention: This invention relates to an image processing apparatus and, more particularly, to an image processing apparatus for processing a dot-pattern image typically represented by a font, by way of example. Description of the Related Art: Ordinarily, an image pattern typified by a font used in an electronic image output device such as a printer or CRT is composed of dots. When such a dot pattern is output by these devices, the contour of the output image pattern develops step portions. These step portions produce a visible roughening of the image and become more pronounced the lower the resolution of the device. In particular, when a dot pattern is formed in the case where an incline exists near the auxiliary scanning direction (hereinafter referred to as the "vertical direction") or in the main scanning direction (hereinafter referred to as the horizontal scanning direction), as shown in Fig. 1A, step portions are produced, as shown in Fig. 1B. Specifically, the image exhibits pronounced roughening, as represented by the step portions indicated by the arrows P1 through P4. Despite the fact that the image pattern output by the aforementioned image output devices is required to have a much higher quality, the visible roughening of the image is one significant factor that invites a deterioration in the quality of the output image pattern. One method of preventing visible roughening is to provide an image pattern based on a Gray-font scale composed of pixels having different brightness over several step portions, as well as a generating device especially for this pattern. The only result has been to express visible intermediate brightness which corrects for roughness or to raise the resolution possessed by the device. However, with the example of prior art described above, not only is the construction of the apparatus complicated but costs are higher regardless of the method used. A concern of the present invention is to solve the aforementioned problems encountered in the prior art. An embodiment of the present invention provides an image processing apparatus in which visually attractive intermediate brightness can be applied to the contour of an image pattern by means of simple arrangement. Still another concern of the present invention is provide an image processing apparatus in which an operator is capable of freely selecting the degree of intermediate brightness applied to the contour of an image pattern. Japanese Patent Specification No. JP-A-63-204379 discloses apparatus in which the notched appearance of sloping lines can be smoothed. However, the apparatus of this reference is not effective in dealing with more complex shapes. In accordance with one aspect of the present invention there is provided image processing apparatus as set out in claim 1. In accordance with a second aspect of the present invention there is provided a method of image processing as set out in claim 13. Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof. BRIEF DESCRIPTION OF THE DRAWINGS Figs. 1A and 1B are diagrams for describing an example of dot-pattern conversion according to the prior art; Fig. 2 is a block diagram illustrating the construction of an image processing apparatus according to an embodiment of the present invention; Fig. 3 is a flowchart for describing the operating procedure of image pattern conversion processing performed by a CPU in the apparatus of Fig. 1; Fig. 4 is a diagram showing an example of an image pattern composed of dots; Figs. 5A, 5B and 5C are diagrams for describing steps through which contour dots of the image pattern shown in Fig. 4 are converted into intermediate-brightness patterns; and Figs. 6A, 6B and 6C are diagrams for describing editing steps when performing a pattern conversion in accordance with the flowchart of Fig. 3. DESCRIPTION OF THE PREFERRED EMBODIMENT Fig. 2 is a block diagram illustrating the construction of an image processing apparatus according to an embodiment of the invention. As shown in Fig. 2, the apparatus includes a CPU 1 for controlling the overall apparatus, a ROM 2 storing a control program, an error processing program and a program in accordance with the flowchart shown in Fig. 3, described below, a RAM 3 used as the working area of each type of program and a temporary saving area for error correction data, a data I/O interface 4 for input/output of data with respect to an external storage unit, a hard disk 5, magnetic tape 6 and floppy disk 7 each for preserving data, a keyboard 8 having keys for instructing data input/output as well as image editing according to the embodiment, a display memory 9, a display unit 10 for displaying an image based on a dot pattern developed in the display memory 9, a printing memory 11, a printer 12 for forming a visible image based on image data developed in the printing memory 11, and a bus line 13 for transmitting address signal, data and various control signals within the apparatus. A pattern conversion method according to the embodiment will now be described. Fig. 4 is a diagram showing an example of an image pattern composed of dots, and Figs. 5A, 5B and 5C are diagrams for describing steps through which contour dots of the image pattern shown in Fig. 4 are converted into intermediate-brightness patterns. As shown in Fig. 4, numeral 100 denotes an image pattern serving as one example. At a first step illustrated in Fig. 5A, a specific pattern is identified from rows of dots of pixels (hereinafter referred to as "contour dots") forming a contour from the image pattern 100. A method of identifying the specific pattern will now be described. In Fig. 5A, dot rows enclosed by the bold line within the dot rows of the contour dots indicate a specific pattern 101 according to the embodiment. The specific pattern 101 is one example of a specific pattern extending vertically in Fig. 5A. In the specific pattern of this embodiment, first there is a step of one dot (the portion indicated by arrow A in Fig. 5A) in a row of dots extending continuously in the vertical or horizontal direction. Second, dot rows 101a, 101b which each include two dots forming the step portion A each consist of three or more continuous dots. The requirements of a specific pattern are that both of these points hold at the same time. In the example of Fig. 5A, the specific pattern 101 satisfies these two conditions because the dot rows 101a, 101b which extend continuously in the vertical direction are each composed of six continuous dots and have a step portion equivalent to one dot in the horizontal direction. The specific pattern 101 is identified from image pattern 100 in this manner. When identification of the specific pattern is completed, a transition is made to a step for editing the specific pattern. First, at a second step (Fig. 5B), in order to convert the specific pattern 101 into a desired intermediate-brightness pattern, a region 102 of two dots existing in front and rear of a step portion of one dot is detected. Processing then proceeds to a third step (Fig. 5C), at which the dot-inversion processing of the region 102 is performed. As a result, the specific pattern 101 is converted into an intermediate-brightness pattern indicated at 101′ in Fig. 5C. An image pattern having the intermediate-brightness pattern 101′ is outputted as an output image pattern 100′. The procedure for performing this conversion of an image pattern according to the embodiment will now be described. Fig. 3 is a flowchart for describing the operating procedure of image pattern conversion processing performed by the CPU 1 of the embodiment, and Figs. 6A, 6B and 6C are diagrams for describing editing steps when performing a pattern conversion in accordance with the flowchart of Fig. 3. The description will be based on an example in which the pattern conversion is applied to a document image formed by a character font pattern. First, when processing for image-pattern conversion according to the embodiment is designated by a key input (steps S1, S2 in Fig. 3), pattern data of an original image composed of dots are read out the hard disk 5, magnetic tape 6 or floppy disk 7. The read pattern data of the original image are developed in the working area of the RAM 3 (step S3). Thereafter, the contour dots in the pattern data of the original image are detected in accordance with a rule, described below. The character "⨜" in the Japanese katakana syllabary shown in Fig. 6A will be taken as an example. In Fig. 6A, numeral 110 indicates the original image pattern of the character "⨜", and numeral 111 shows contour dots of the original image pattern 110. Contour dots 111 are detected from the rows of pixels forming the contour of the original image pattern 110, and subdivision of the dot rows is carried out in the manner of the contour dots enclosed by the bold lines. In this case, the contour dots are subdivided from the dot rows every step portion or whenever there is a change in horizontal and vertical directivity in the dot row direction, and the dot rows are obtained (step S4). Next, it is determined (step S5) whether there is a pattern corresponding to the above-mentioned specific pattern for each and every continuous dot row obtained by the subdivision of step S4. The portions indicated at A1 through A7 in Fig. 6A are step portions which satisfy the requirement that two dot rows continuous at the contour portion are judged to be specific patterns. The description of a portion so judged is in accordance with the description of Figs. 5A, 5B, 5C and therefore is deleted here. Accordingly, a subdivision which includes one of the step portions A1 through A7 is judged to be a specific pattern at step S5. The region for performing the dot-inversion processing, namely, the region of two dots existing in front and rear of a step portion in the specific pattern is decided in order to convert the specific pattern into an intermediate-brightness pattern (Step S6). In Fig. 6B, B1 through B7 indicate corresponding dot-inversion processing portions for every specific pattern which includes one of the step portions A1 through A7. Next, dot-inversion processing are carried out (step S7). As shown in Fig. 6C, this processing is performed in order that the contour of the original image pattern 110 may be expressed in intermediate brightness by converting the specific patterns of contour dots 111 into intermediate-brightness patterns. The processing from step S4 to step S4 is repeated until the conversion processing ends for all specific patterns that include the step portions A1 through A7 (step S8). Here, in the case of the character "⨜", it will suffice to apply the conversion processing solely to the original image pattern 110 since the character consists of one stroke. However, in case of a character composed of a plurality of strokes, the conversion processing is applied to the whole contour. An output image pattern of a one-character one is thus formed. Next, the image pattern for which pattern conversion has been completed is developed as an output image pattern 110′ in a pattern development area 3a of RAM 3 (step S9). Thereafter, the processing of steps S4 through S9 is repeated until pattern conversion ends for all characters, namely for all of the other characters on one page of the document. When all processing is thus completed (Step S10), processing for storing each output pattern, which has been developed in the pattern development area 3a, in a prescribed external storage unit is executed (step S11). Selection of the external storage unit at step S11 can be set at will by the user. Alternatively, it can be set so that the original image pattern is returned to the external storage unit from which it was read. Though the original image pattern is a character hereinabove, it goes without saying that an original image pattern formed into a pattern by a font or other graphic also can be the object of pattern conversion according to the embodiment. Furthermore, other examples of methods for judging specific patterns include a method in which a dot pattern in a certain subdivision of contour dots is identified by being matched with a specific pattern predetermined from a row of dots, and a method in which a dot pattern corresponding to contour dots is pursued from a certain direction, the number of dots extending continuously in the horizontal or vertical direction is counted, step portions are also verified at the same time, and a specific pattern is identified from the number of dots before and after a step portion. These types of identification processing can be incorporated as modifications in steps S4 and S5 of Fig. 3. Thus, in accordance with the embodiment described above, a high-quality image pattern in which the roughness or irregularity of contour dots of an image is not conspicuous can be obtained through a simple arrangement. In a case where a specific pattern is judged to exist in the above-described embodiment, it is assumed that two dot rows have a step portion consisting of three or more dots each. However, the present invention is not limited to such an arrangement, for the dot rows can consist of two dots or any arbitrary number of four or more. For the purpose of performing a visual correction of a dot step portion, namely for the purpose of achieving an expression of intermediate brightness, the rules for effecting the pattern conversion to the intermediate-brightness pattern can be modified in various ways so long as the pattern is an intermediate-brightness pattern which attains this purpose. Of course, it is possible to prepare a plurality of types of intermediate-brightness patterns and have the user select one via a key input from the keyboard 108. In this case, one of the two dot rows having a step portion among the specific patterns may have n (e.g., n>2) or more dots and the other dot row may be classified into a two-dot case, three-dot case, four-dot case and so on, and editing may be made more complex as by increasing the addition portion as the number of dots increases. In the embodiment described above, an image processing apparatus such as a personal computer or word processor is taken as an example. However, the invention is not limited to such an arrangement but can be applied, within the scope of the claims, to a discrete device which performs image editing, namely an arrangement having a data I/O interface for external equipment, a CPU, a ROM and a RAM, in which contour dots of an image pattern are merely converted into an expression of intermediate brightness automatically. As many apparently widely different embodiments of the present invention can be made without departing from the scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims.

Claims: An image processing apparatus comprising: detecting means (CPU 1) for detecting contour dots from an original image dot pattern; means (CPU 1) for editing the detected contour dots; and output means (10, 12) for receiving the edited contour pattern, and characterised in that the editing means includes counting means for counting said contour dots in either a main scanning direction or in an auxiliary scanning direction, and wherein if a step portion is found while said counting means is counting and there are at least two dots on either side of said step portion in the direction of counting, editing is performed by adding a dot to a sequence of dots on one side of the detected step portion. Apparatus according to claim 1, wherein the auxiliary and main scanning directions are orthogonal to one another, and wherein the added dot is of the same colour as the counted dots. Apparatus according to claim 1 or claim 2, wherein said editing means includes matching means for matching said contour dots with a predetermined pattern whereby a dot row which coincides with said predetermined pattern is subjected to editing by said editing means. Apparatus according to any preceding claim, wherein the width of said predetermined step portion is one dot. Apparatus according to claim 3 or claim 4 when dependent on claim 2, further comprising memory means for storing a plurality of predetermined patterns, said editing means including selecting means for selecting from said memory patterns which correspond to patterns identified by said identifying means. Apparatus according to any preceding claim, and including means for deleting a dot from a specific pattern of said contour dots which has been identified. Apparatus according to claim 6, wherein the editing means is operative add one dot to a sequence of dots on one side of a step portion and delete a dot from a sequence of dots on the other side of the step portion. Apparatus according to any preceding claim, and including a display (10) for displaying the results of editing by said editing means. Apparatus according to any preceding claim, wherein said output means is printer (12) for printing the results of editing by said editing means. Apparatus according to any one of claims 1 to 9, wherein said output means outputs the results of editing by said editing means to memory medium. Apparatus according to claim 5 and any one of claims 6 to 10 when dependent on claim 5, wherein said selecting means comprises a keyboard. An image processing method comprising detecting and editing contour dots in an original image dot pattern, and characterised by the editing of the contour dots is carried out by counting the contour dots in either a main scanning direction or in an auxiliary scanning direction, and wherein if a step portion is found during the counting and there are at least two dots on either side of said step portion in the direction of counting, editing is performed by adding a dot to the sequence of dots on one side of the detected step portion. A method according to claim 12, wherein the main and auxiliary scanning directions are orthogonal to one another and the added dot is of the same colour as the counted dots. A method according to either of claims 12 or 13 including a decision step of deciding the nature of the editing based on the pattern identified in said identifying step. A method according to either of claims 13 or 14, wherein said editing step includes matching a dot row of said contour dots with a predetermined pattern, wherein a dot row which is made to coincide with said predetermined pattern in said matching step is subjected to editing in said editing step. A method according to claim 15, wherein said predetermined pattern is stored in memory. A method according to any one of claims 11 to 16, wherein the number of dots in a sequence in either the main or auxiliary scan direction is at least two. A method according to claim 17, wherein said predetermined step portion is one dot in width. A method according to claim 18, wherein a plurality of patterns are stored in memory and said editing step includes selecting from memory a pattern which corresponds to a specific identified pattern. A method according to any one of claims 11 to 19, wherein said editing step includes deleting a dot to an identified specific pattern of contour dots. A method according to claim 20, wherein a dot is added to a sequence of dots on one side of said step portion and a dot is deleted from a sequence of dots on the other side of said step portion.

Inventors: WATANABE KIYOSHI, WATANABE, KIYOSHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1990
Main classification: G09G1
IPC codes: G06T3, G06K15, G06T5, G09G5, B41J2, G06T11