Method for amending colour nonuniformity of colour images

Abstract: Each colour dot is displayed by three original colour components. In each colour dot, a brightness is calculated in accordance with brightness constants for the three original colour components and three original colour component data. In accordance with the brightness calculated for dots to be displayed, the dots are grouped by the brightness and ranges. Among each group of dots, data is equalized in each of the three original colour component data to be stored in place of the three original colour component data obtained by a scanner, a video camera, etc.

Description: This invention relates to a method for amending colour nonuniformity of colour images, and more particularly to, a graphic processing used in a computer image display system, etc. In the processing of picture in a computer, analog data representing natural pictures is not directly processed, but converted to digital data which is obtained by digitizing the analog data at sampling points of time. In colour images, the digital data is colour data, or the combination of pattern data and colour data. Such data processed in a computer is composed of a predetermined number of dots and an image reproduced by such dots has a high reproducibility, as the number of dots per unit area is increased. Consequently, a large capacity of a memory apparatus is required in the image processing of a computer to improve the reproducibility, and, thus, the processing time becomes longer. In cases where image data is generated in accordance with scanning of a natural picture, or taking a picture thereof by using a video camera, etc. the number of dots and colours represented by a computer is practically limited to some extent. This limitation results from the limited resolution power of the input apparatus such as a scanner or a video camera on the one hand, and the performance with regard memory capacity, processing speed, etc. of the computer on the other hand. To reproduce a natural picture with high-fidelity, a limitless number of dots are required. However, as the resolution power of the human eye is limited on the distinction among dots and colours, images that appear natural to viewers can be presented on a display. When images are watched by viewers, an important role is played by not only brightness and darkness, but also by colour. For instance, in a case where two colour papers of red and blue, having the same brightness, are positioned to make contact with each other along respective one sides, the two colour papers which are distinctively displayed by colours appear to be one piece of paper on a monochrome display. As is clear from this explanation, whether a picture looks natural or not is greatly affected by its colours. If the number of colours which can be represented by a computer is less than the number of colours that can be discriminated by a human eye, fine differences of brightness and darkness and fine mixed tone of colours can not be represented by the computer. In such a case, colour nonuniformity occurs and a natural picture cannot be reproduced with high-fidelity. On the other hand, if the number of colours which can be represented by a computer is more than the number of colours which can be discriminated by human eyes, a natural picture can be represented with high-fidelity. However, even if colours look the same for human eyes, there are a lot of cases in which colour data obtained from the same looking colours are different. This is because fluctuation of colour data occurs. For this reason, the processing of data is difficult, so that raw image data is required to be stored without any processing. As a result, the amount of data becomes large. This applies pressure on the memory capacity, and increases the processing time of data. Theoretically, if the number of colours which can be represented by a computer is approximately equal to that of colours which can be discriminated by human eyes, there should be no problem. Practically, however, colour characteristics at the time of representing colours on a display and colour characteristics which can be discriminated by human eyes do not coincide. As a result, the same problem as in the above case occurs. Accordingly, it is an object of the invention to provide a method for amending colour nonuniformity of colour images in which the reproducibility of images is not deteriorated. It is a further object of the invention to provide a method for amending colour nonuniformity of colour images in which the amount of image data is decreased, and the processing of image data becomes easy. It is a still further object of the invention to provide a method for amending colour nonuniformity systems of colour images in which the difference in the fluctuation of colour that can not be discriminated by the human eye is suppressed. US-A-4847677 discloses a colour nonuniformity amending method employing a colour map, EP-A-0122837 and EP-A-0261561 disclose colour image data compression systems. According to the invention, there is provided a method for amending colour nonuniformity of colour images, comprising the steps of: calculating a brightness of each dot by determining brightness constants "a", "b" and "c" for the three primary colour components in accordance with characteristics of a hardware, and calculating the brightness of each dot using the formula "P = a.G + b.R + c.B", where "G", "R" and "B" are the three primary colour component data; dividing dots into a plurality of groups in accordance with the brightness calculated for each dot by setting reference ranges for the groups, and comparing the brightness of the each dot with a corresponding one of the reference ranges, the each dot being grouped in dependence upon in which one of the reference ranges the brightness of each dot resides; and for each group, equalizing the respective primary colour component data for each of the dots of said group; characterised in that: the equalizing step comprises the steps of: calculating mean values of the three primary colour component data of the dots in each of the groups; and substituting the three primary colour component data of the dots in each of the groups by the mean values. According to the invention, a method for amending colour nonuniformity of colour images is provided, wherein the strength of the brightness and the darkness to which attention is paid to amend colour nonuniformity of colour images is amended, so that colour smoothness of the colour images is realized. In general, red, green and blue are the three primary colours. Colours which can be usually sensed by human eyes are obtained by mixing these three colours in appropriate amounts. For instance, yellow is produced by the mixture of red and blue, and violet by red and blue. In the case of light, red, green and blue are mixed to provide white. In this mixture, colour tone can be different dependent on the brightness of the primary colours, that is, redish white or bluish white can be obtained by changing the brightness of the respective colours, although colour can be changed in pigment by changing the amount of primary colours. As described above, white is represented in light by mixing three primary colours equally, and redish white, for instance, pink is obtained by increasing the brightness of red. This invention is based on the strength of the brightness and the darkness to amend colour nonuniformity. The invention will be explained in more detail in conjunction with the appended drawings, wherein: Fig. 1 is an explanatory view showing a form of storing image data obtained from a natural original picture; Fig. 2 is an explanatory view showing the relation between a colour table RAM and colour data stored therein: Fig. 3 is an explanatory view showing colour data for smoothing the colour fluctuation of data obtained from a natural picture by an image input apparatus in a preferred embodiment according to the invention; Fig. 4 is a flow chart of a procedure for smoothing the colour fluctuation in the preferred embodiment; and Fig. 5 is an explanatory view showing data compression in the preferred embodiment. Before explaining a method for amending colour nonuniformity of colour images of the preferred embodiment according to the invention, the relation between a colour picture and image data obtained therefrom will be explained in Fig. 1. Fig. 1 shows the colour picture 10 including a green portion 11 and a red portion 12, and image data 20 including green data 21 and red data 22, respectively, composed of dots (pixels). In a colour display, each dot is displayed by three original colours, each having information regarding light and shade. Such dots are obtained, for instance, as set out below. First, an address of a virtual screen for display is designated, so that an address signal of, for instance, sixteen bits corresponding to the designated address of the virtual screen is generated in an address unit. The sixteen bit address signal is divided into a four bit colour code and a twelve bit character code. The twelve bit character code is supplied to a memory called a character generator to generate a four bit address signal, each bit of which is supplied from a corresponding plane of four 8x8 bit planes read from the memory. Then, the four bit colour code and the four bit address signal are combined to provide an eight bit address signal, from which a colour table RAM called a colour pallet is accessed. Fig. 2 shows the eight bit address signal of VDO to VD7, to which one bit of VD8 for designating one of a background or sprite is added. The colour table RAM stores nine bit colour information at each address for one dot comprising each three bits for the original colours G, R and B, as illustrated therein. As can be understood from the illustration, the colour table RAM comprises 16 blocks for background and 16 blocks for sprite. Each block is addressed by an area colour code VD4 to VD7 of the address signal, and comprises 16 addresses each including nine bits of each three bits for G, R and B. Therefore, the colour table RAM has a capacity of 256 addresses for background and 256 addresses for sprite, so that 256 kinds of colours can be represented on a display for each dot of background and sprite. By selecting one colour data from 256 colour data in the colour table RAM, the reproducibility of a natural picture can be maintained with considerable precision. However, the difference of colour, the colour nonuniformity, the colour fluctuation, etc. which cannot be sensed by the human eye are not overcome completely. In view of this disadvantage, the following steps are adopted in a method for amending colour nonuniformity of colour images. (1) First step A colour is dissolved into three original colours. The components of green, red and blue are defined as "G", "R" and "B" which correspond to original data values at the time of scanning an original picture, for instance, by an image scanner. Further, a brightness ratio for green, red and blue determined by characteristics of a colour display apparatus is defined as "a", "b" and "c". In accordance with the definitions, the degree P of the brightness and the darkness for each dot is defined by the equation (1). P = (a.G + b.R + c.B)/(a+b+c) The degree P is a mean value of the brightness values for G, R and B. In the case of colour processing being, by computer, the calculation speed can be fast when (a+b+c) is standardized to be "1". That is, if the substitutions as defined by the equations (2) are carried out in advance, the degree P is modified by the equation (3). P = a.G + b.R + c.B In accordance with the above equation (3), the P value for each dot is calculated. Here, if it is assumed that a P value for the i th dot is "Pi", the equation (4) is obtained. Pi = a.Gi + b.Ri + c.Bi In the equation (4), "Gi", "Ri" and "Bi" are colour components of a colour for the i th dot. (2) Second step In accordance with the P value calculated in the first step, a predetermined number of dots positioned around an arbitrary dot are grouped, such that the grouped dots have P values which fall in "P N ± ΔP N ", when the arbitrary dot has a P value of "P N ". Here, it is assumed that the number of the grouped dots is "n", and mean values "Gm", "Rm" and "Bm" of three original colour components of the grouped dots are calculated by the equations (5). (3) Third step In the grouped dots, each colour component value is substituted by a corresponding one of the means values Gm, Rm and Bm as set out below. G 1 , G 2 , ..... Gn ----> Gm R 1 , R 2 , ..... Rn ----> Rm B 1 , B 2 , ..... Bn ----> Bm In accordance with the above described processing, the fluctuation of colour data is smoothed. If the value ΔP N as discussed at the second step is less than a colour discrimination power of the human eye, the fluctuation of colour data is resolved without deteriorating the reproducibility of an original image. As can be understood from the above, the colour data of the grouped dots becomes the same for each colour component, so that the amount of colour data is decreased. That is, the colour data can be stored in a memory in the form of "(the number of the grouped dots) x (a mean value of colour data)". This is a compression of colour data to reduce the required capacity of a memory and increase the speed of data transfer. Next, a method for amending colour nonuniformity of colour images of a preferred embodiment according to the invention will be explained in regard to Figs. 3A to 3C. In Fig. 3A, colour data for 24 dots 1, 2, 3, 4, ....., 24 are shown, wherein each colour data includes three component values corresponding to green (G), red (R) and blue (B). For instance, the colour data for the first dot 1 includes green, red and blue colour component values of "5", "5" and "4". Here, it is assumed that the aforementioned values of "a", "b" and "c" are "0.6", "0.3" and "0.1", respectively. Then, the aforementioned P values which are calculated for the first to fourth dots 1, 2, 3 and 4 by using the equation (4) are set out below. P 1 = 5x0.6 + 5x0.3 + 4x0.1 = 4.9 P 2 = 5x0.6 + 5x0.3 + 5x0.1 = 5.0 P 3 = 5x0.6 + Ox0.3 + Ox0.1 = 3.0 P 4 = 4x0.6 + lx0.3 + 2x0.1 = 2.9 In the same manner, the P values for the remaining dots 5, 6,....., 24 are calculated, and the results are shown in Fig. 3B. Then, the grouping of the dots is carried out. Here, it is assumed that the aforementioned value ΔPN is 0.1. In accordance with this assumption, the following ranges are obtained by using three selected values "4.9, "5.4 and "2.9" for the aforementioned value "P N ". 4.9 ± 0.1 = 4.8 to 5.0 5.4 ± 0.1 = 5.3 to 5.5 2.9 ± 0.1 = 2.8 to 3.0 Thus, three groups A, B and C are defined as shown in Fig. 3B by using the three ranges "4.8 to 5.0", "5.3 to 5.5" and "2.8 to 3.0". The first group A has 7 dots, the second group B has 7 dots, and the third group C has 10 dots. In the three groups A, B and C, the aforementioned mean values Gm, Rm and Bm are calculated by using the equations (5). In the group A, Gm = (5+5+5+5+5+5+5)/7 = 5 Rm = (5+5+5+5+5+4+5)/7 = 4.85 Bm = (4+5+5+4+5+6+4)/7 = 4.71 In the group B, Gm = (9+9+8+9+9+9+9)/7 = 8.85 Rm = (0+0+1+0+0+0+0)/7 = 0.14 Bm = (1+0+2+0+1+1+0)/7 = 0.71 In the group C, Gm = (5+4+4+4+4+5+4+4+4+4)/10 = 4.2 Rm = (0+1+1+1+1+0+1+1+2+1)/10 = 0.9 Bm = (0+1+1+2+2+0+2+1+0+1)/10 = 1.1 In each group, the calculated values are rounded to be nearest integer, so that the following colour data is obtained. "(5,5,5) for the group A, (9,0,1) for the group B, and (4,1,1) for the group C." In accordance with the grouped colour data, the colour data as shown in Fig. 3b is substituted as shown in Fig. 3C. The steps of smoothing colour components of original data as described above are explained in a flow chart as shown in Fig. 4. In this flow chart, the ratio values "a", "b" and "c" of the strength of the brightness and the darkness in the colour components and the range value of grouping the dots are input to a computer. These input values depend on the characteristics of a display apparatus and a computer, and are determined to be optimum for the hardware used in a method for amending colour nonuniformity of colour images according to the invention. After the determination of these input values by a trial and error method, they may be fixed in the hardware. The steps S1 to S5 are explained in the above preferred embodiment. At the step S6, the reproducibility of colour images is checked to meet a predetermined quality by comparing an original picture and an image represented on a screen of a display apparatus. When the reproducibility is met and the grouped number is equal to be or less than a predetermined number, the processing of amending colour nonuniformity of colour images is determined to be successful and allowable. As the range value "ΔPN" for grouping dots is increased, the number of groups is decreased to lower the reproducibility. Considering this relationship, the range value "ΔPN" is required to be decided in the invention. With reference again to Fig. 1, an original picture of green and red is shown therein. When the original picture is observed by human eyes, colour data (5, 0, 0 ) for the green portion and colour data (0,5,0) for the red portion are sensed. As a matter of course, (5,0,0) means that a green component is 5, and red and blue components are 0, while (0,5,0) means that a red component is 5, and green and blue components are 0. On the other hand, when the original picture is scanned by a scanner, or taken or viewed by an image input apparatus such as a video camera, such colour data as (5,1,0), (5,0,1), (0,5,2), (0,6,0), etc. are produced to be added to the colour data (5,0,0), and (0,5,0) for instance, due to colour stain on the original picture, the precision of the scanner or the image input apparatus, etc. In a conventional manner, the increase of colour data necessitates an additional capacity of a memory. In the invention, however, the colour data of (5,1,0), (5,0,1), (0,5,2), (0,6,0), etc. are processed to be grouped into (5,0,0) and (0,5,0). Thus, a memory capacity increase is avoided. This is shown in Fig. 5. As can be understood from the illustration, the colour data for the original picture of Fig. 1 is stored in a memory by using only four bytes, and a colour image is represented on a screen of a display apparatus as shown in Fig. 5.

Claims: A method for amending colour nonuniformity of colour images, comprising the steps of: calculating a brightness (P) of each dot by determining brightness constants "a", "b" and "c" for the three primary colour components in accordance with characteristics of a hardware, and calculating the brightness (P) of each dot using the formula "P = a.G + b.R + c.B", where "G", "R" and "B" are the three primary colour component data; dividing dots into a plurality of groups in accordance with the brightness (P) calculated for each dot by setting reference ranges for the groups, and comparing the brightness of the each dot with a corresponding one of the reference ranges, the each dot being grouped in dependence upon in which one of the reference ranges the brightness of each dot resides; and for each group, equalizing the respective primary colour component data for each of the dots of said group; characterised in that: the equalizing step comprises the steps of: calculating mean values of the three primary colour component data of the dots in each of the groups; and substituting the three primary colour component data of the dots in each of the groups by the mean values.

Inventors: TANAKA YUJI, TANAKA, YUJI, Tanaka, Yuji, c/o Hudson Soft Co. Ltd.
Applicants: HUDSON SOFT CO LTD, HUDSON SOFT CO., LTD.
Application year: 1992
Main classification: G09G5
IPC codes: H04N1, G06T5, G09G5, G06T11, G06T1