Image processing method and apparatus

Abstract: Image processing method and apparatus which are used when image data including characters or symbols is generated in a color on the basis of the designated size are disclosed. A brightness at which the image data is generated is changed in accordance with the designated size of character or symbol.

Description: The present invention relates to image processing method and apparatus and, more particularly, to image processing method and apparatus when image data including characters or symbols is generated in a color. Related Background Art Hitherto, in the case where character data of different sizes is generated in the same color when a change in size of a character which is generated in a color is instructed by a command or the like from a host computer or the like, color data is not changed. Therefore, in spite of the fact that the character data is generated by the color data which has first been designated at a character size different from the designated size, the character data is printed at the same brightness. However, in the above conventional example, a character of a character size such as height and width, for instance, a character of 100-point and a character of 1-point are printed at the same brightness irrespective of the size. Therefore, when the results of the prints outputted to a paper are observed, there occurs a problem such that an impression differs depending on the character size in a manner such that a character of a large size is felt as a dark image and a character of a small size is felt as a bright image. It is a concern of the invention to solve the above conventional drawback and to provide image processing method and apparatus which can execute a color output without differences in visual impression even if the character size changes. Japanese Patent Abstract No. JP-A-54067432 on which the preamble of claims 1 and 8 is based discloses a CRT apparatus in which the focal point of an electron beam can be increased in accordance with the increase of magnification thereby to increase the roundness of displayed characters. It is also mentioned in this document that a reduction of the characters brightness occurs. This brightness reduction is compensated by an adjustment to a certain level of input analog signals sent to a video amplifier. In accordance with one aspect of the present invention there is provided an information processing method as set out in claim 1. In accordance with a second aspect of the present invention there is provided image data processing apparatus as set out in claim 8. In order that the present invention may be more readily understood, embodiments thereof will now be described by way of example and with reference to the accompanying drawings, in which: Fig. 1 is a block diagram showing a construction of a color printer according to the embodiment; Fig. 2 is a diagram showing a hardware construction of a color printer of the embodiment; Fig. 3 is a flowchart for a processing procedure of the embodiment; Fig. 4 is a diagram showing an example of a color designation command format in the first embodiment; Fig. 5 is a diagram showing an example of color data in the first embodiment; Fig. 6 is a diagram showing an example of character-in-page data in the embodiment; Fig. 7 is a flowchart to form character color data in the first embodiment; Fig. 8 is a diagram showing an example of a color designation command format in the second embodiment; Fig. 9 is a diagram showing an example of color data in the second embodiment; and Fig. 10 is a flowchart to form character color data in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the invention will be described in detail hereinbelow with reference to the drawings. In the embodiment, particularly, a color printer in which an effect of the invention is remarkable will now be described. Fig. 1 is a block diagram showing a construction of a color printer according to the embodiment. In the diagram, reference numeral 1 denotes a host computer for making data which is supplied to the printer by the user and for transmitting as command data of a character code and a point No. designation, a color designation, and the like of the character. Reference numeral 2 denotes a color printer. The color printer 2 analyzes the command data sent from the host computer 1 and prints an appropriate image on a medium such as paper. The color printer is constructed as follows. Reference numeral 21 denotes an interface for inputting the command data from the host computer 1. The command data is analyzed by a command analyzer 22 and is converted into the data and is stored into a character-in-page data memory 23. Particularly, the data regarding the color of a character is processed by a color processor 25 and is stored into a color data memory 24. A page developer 26 forms output data of the type which is most suitable when an output unit 27 generates the data on the basis of the data in the memories 23 and 24. A controller 28 controls the whole color printer 2. Fig. 2 is a diagram showing an example of a hardware construction of the color printer of the embodiment. The interface 21 and the output unit 27 have the same functions as those shown in Fig. 1. Reference numeral 31 denotes a CPU for calculation and control; 32 an ROM to store a control program which is executed by the CPU 31; and 33 an RAM for auxiliary storage having a color data memory 33a, a character-in-page data memory 33b, and a page development memory 33c. A processing procedure of the color printer of the embodiment with the above construction will now be described hereinbelow with reference to a flowchart shown in Fig. 3. In step S21, command data is received from the host computer 1. The command data is analyzed in step S22. At this time, a color designation command designates the color by a combination of three fundamental colors of R (red), G (green), and B (blue) like a format shown in Fig. 4. A value of each of R, G and B generally indicates the brightness of each color. It is now assumed that such a value can be set to a value within a range from 0 to 255. As the value approaches 0, the brightness is low (dark). As the value approaches 255, the brightness is high (bright). The most average brightness is equal to 127. Generally, a plurality of colors can be expressed by a ratio of the values of R, G, and B. The color designation command is analyzed in step S22 and is stored into the color data memory 33a as current color data by a format shown in Fig. 5. In the code of the current color data, the R, G and B values in the color designation command format in Fig. 3 are directly reflected to V R , V G and V B in Fig. 4. It is assumed hereinafter that an equation to express the R, G and B values as color data is written as follows. [R, G, B] = [V R , V G , V B ] 1 If the received data indicates the character code as a result of the analysis in step 22, character-in-page data is formed in step S23. The character-in-page data is formed every character as a prestage to form an output page, which will be explained hereinafter, and is constructed by a format as shown in Fig. 6. In Fig. 6, positions-in-page X and Y shown by reference numerals 51 and 52 denote data indicating at which positions in the page which is at present being formed the character is printed. For instance, each of the positions X and Y is set to a value using the number of dots as a unit. Reference numeral 53 denotes the point No. of the character. A value of the point No. 53 is designated by a command from the host computer 1. Reference numeral 54 denotes a color data pointer to the color data memory 33a in which the color data of the character is stored by a format of Fig. 5. The color data is formed in accordance with a flowchart shown in Fig. 7. That is, the current color data [R, G, B] = [V R , V G , V B ] in the color data memory 33a is read out in step S61. In step S62, the point No. 53 of the character is compared with a predetermined threshold value P 1 . When the point No. 53 is smaller than P 1 , RGB values R 1 , G 1 and B 1 for fine adjustment to reduce the brightness of the color data of the character are calculated in step S63. The RGB values for fine adjustment can be calculated by the color processor 25 on the basis of the point No. of the character and the current color data or can be also calculated by using a table for fine adjustment values which has been prepared in the color data memory 33a. In step S64, the color data of the character is determined from the current color data V R , V G and V B which have been read in step S61 and the RGB values R 1 , G 1 and B 1 for fine adjustment which have been derived in step S63. In step S65, if the point No. of the character is larger than a threshold value P 2 , a process to increase the brightness of the color data of the character is executed on the basis of RGB values R 2 , G 2 and B 2 for fine adjustment as shown in steps S66 and S67. The color data is decided by the above procedure and is stored and is pointed by the color data pointer 54 of the character-in-page data. A code 55 is subsequently stored as a procedure to form the character-in-page data in step S23. All of the data of the other component elements of the character data is stored. Finally, a pointer 56 to the character-in-page data of the next character is stored. A chain structure of all of the characters in one page is formed. That is, by sequentially tracing the character-in-page data of the head character of the page, the operation reaches the last character of the page. In step S24, output data of the type which is optimum when the output unit 27 executes the printing process is formed on the basis of the character-in-page data formed in step S23 and the color data. That is, in the case of a page printer having a full-bit map memory to output one page, bit map data of one page is formed by the operations such that the bit map data of one character is first developed on a full-bit map with reference to the character-in-page data of the head character of the page and the processing routine is subsequently shifted to the process of the next character by a next character pointer. At this time, the color data of the format shown in Fig. 4 in the color data memory 33a is converted into the data of, for instance, YMCK (yellow, magenta, cyan, black) by the color processor 25. Therefore, for example, in the case of a color laser beam printer, the output data is developed every color into four bit map memories of Y, M, C and K each having a capacity corresponding to one page. Therefore, in the output of step S25, the data in the bit map memories is transmitted to the output unit 27 every color of Y, M, C and K by a raster scanning method, thereby performing a color print. In the above embodiment, the color designation of the RGB format as shown in Fig. 4 has been executed by the host computer and the RGB values have been also provided as color data as shown in Fig. 5. However, a similar idea can be also applied to the case where the RGB format is replaced to a format of hue (H), saturation (S) and brightness (B). It is also assumed that an equation to express the HSB values as color data is written as follows. [H, S, B] = [V H , V S , V B ,] 2 That is, the color designation is executed by the host computer by a format as shown in Fig. 8. The HSB values are stored into the color data memory 33a as current color data by a format shown in Fig. 9. Further, as a color data pointer of Fig. 6 in the case of forming the character-in-page data in step S23 in Fig. 3, a pointer to the color data memory 33a in which the color data of the format of Fig. 9 is stored is used. The color data is formed by a flowchart shown in Fig. 10. In step S91, the current color data [H, S, B] = [V H , V S , V B ] in the color data memory 33a is first read out. The point No. of the character is subsequently compared with the threshold value P 1 in step S92. If the point No. is smaller than P 1 , the B value B 1 for fine adjustment to reduce the brightness (B) of the color data is calculated in step S93. The B value B 1 can be calculated by the color processor 25 on the basis of the point No. of the character and the current B value V B or can be also calculated by using a table prepared in the color data memory 33a. In the next step S94, the color data of the character is determined by executing a certain kind of arithmetic operation on the basis of the brightness V B of the current color data and B 1 calculated in step S93. In steps S95 and S96, the fine adjustments to increase the brightness (B) are executed on the basis of B 2 . An output is executed hereinafter by a process similar to that in the foregoing embodiment. According to the invention, a recording apparatus which doesn't allow a difference of the visual impression to be felt even if the size is changed can be provided. That is, by providing the brightness changing means for changing the brightness in accordance with the size in the case where the same brightness has been designated by the host computer or the like for a character or a symbol having a different size, there is an effect such that the visual sense of disorder due to a difference of the size which is felt when the character or symbol has been printed to the paper is reduced.

Claims: An image processing method comprising the steps of: inputting (S21) individual command data for each character of an image, including character color information ((R,G,B);(H,S,B)) and character size information, the command data representing character image information; and outputting (S25) a character image in accordance with the input command data, characterised by analysing (S22) for said each character the command data input in said inputting step; deriving (S62, S65) for said each character an adjustment value ((R 1 ,G 1 ,B 1 ); B 1 ) for adjusting the character color information based on the character size information and character color information as analysed in said analysing step, said adjustment value being determined so as to change the brightness at which the character image is generated in accordance with the designated character size; modifying (S63, S64, S66, S67) for said each character the character color information using the derived adjustment value; and said outputting step outputting for the character image information each said character represented by the command data in accordance with the modified character color information. A method according to claim 1, wherein the image information comprises character data. A method according to claim 1, wherein the command data includes symbol data. A method according to any one of claims 1 to 3, wherein the command data includes the size data respectively for each unit of image data. A method according to any one of claims 1 to 4, wherein, in said deriving step, the adjustment value is derived on the basis of both of the color information and the size information. A method according to any one of claims 1 to 5, wherein, in said deriving step, the adjustment value is derived on the basis of predetermined table information. A method according to any one of claims 1 to 6, wherein the character color information as modified in said modifying step is stored prior to the outputting step. An image data processing apparatus comprising: input means (21) for inputting individual command data for each character of an image, including character color information ((R,G,B);(H,S,B)) and character size information, the command data representing character image information; and output means (27) for outputting character image in accordance with the command data input by said inputting means, characterised by analysing means (22) for analysing for said each character the command data input by said input means; deriving means (31) for deriving for said each character an adjustment value ((R 1 ,G 1 ,B 1 ); B 1 ) for adjusting the character color information based on the character size information and character color information analysed by said analysing means, said adjustment value being determined so as to change the brightness at which the character image is generated in accordance with the designated character size; and modifying means (31, 33a) for modifying the character color information for said each character using the adjustment value derived by said deriving means; said output means outputting for each said character the character image information represented by the command data in accordance with the modified character color information stored in said memory means. An apparatus according to claim 8, wherein the image information comprises character data. An apparatus according to claim 8 or claim 9, wherein the image information comprises symbol data. An apparatus according to any one of claims 8 to 10, wherein the command data includes the size data respectively for each unit of image data. An apparatus according to any one of claims 8 to 11, wherein said deriving means derives the adjustment value on the basis of both of the color information and the size information. An apparatus according to any one of claims 8 to 12, wherein said deriving means derives the adjustment value on the basis of the predetermined table information. An apparatus according to any one of claims 8 to 13, and including means for storing, for each said character, the character colour information as modified by said modifying means.

Inventors: NAKAJIMA NOBUYUKI, NAKAJIMA, NOBUYUKI, NAKAJIMA, NOBUYUKI, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: G06K15
IPC codes: B41J2, G06K15