The invention relates to a picture adjusting method and a display system and, more particularly, to a picture adjusting method and a display system capable of reducing brightness difference between two pictures.
At present, some display devices are capable of displaying a plurality of pictures in a picture by picture (PBP) manner, a picture in picture (PIP) manner, etc., for a user. When displaying a picture, the display device usually performs a gamma correction for the picture to adjust the brightness of the picture. However, if the brightness of two pictures is adjusted by an identical gamma curve, the brightness of the two pictures after adjustment may be different, such that the user may feel difference in vision as watching the two pictures.
An objective of the invention is to provide an image processing method and a display device capable of reducing brightness difference between two pictures, so as to solve the aforesaid problems.
According to an embodiment of the invention, a picture adjusting method comprises steps of displaying a first picture and a second picture; measuring a plurality of first original parameters in the first picture and measuring a plurality of second original parameters in the second picture for each of a plurality of color patterns, wherein the color patterns comprise a black pattern; calculating a first gain factor according to the first original parameters and the second original parameters of at least one of the color patterns except the black pattern; subtracting a product of the first original parameters of the black pattern and the first gain factor from the second original parameters of the black pattern to obtain a plurality of first offset values; adding the first offset values to the first original parameters of each color pattern to obtain a plurality of first updated parameters of each color pattern in the first picture; and multiplying the first updated parameters of each color pattern by a second gain factor to obtain a plurality of first adjusted parameters of each color pattern in the first picture.
According to another embodiment of the invention, a display system comprises a display module, a measuring unit and a processing unit. The display module displays a first picture and a second picture. The measuring unit measures a plurality of first original parameters in the first picture and measures a plurality of second original parameters in the second picture for each of a plurality of color patterns, wherein the color patterns comprise a black pattern. The processing unit calculates a first gain factor according to the first original parameters and the second original parameters of at least one of the color patterns except the black pattern. The processing unit subtracts a product of the first original parameters of the black pattern and the first gain factor from the second original parameters of the black pattern to obtain a plurality of first offset values. The processing unit adds the first offset values to the first original parameters of each color pattern to obtain a plurality of first updated parameters of each color pattern in the first picture. The processing unit multiplies the first updated parameters of each color pattern by a second gain factor to obtain a plurality of first adjusted parameters of each color pattern in the first picture.
As mentioned in the above, when displaying two pictures, the invention calculates the gain factors and the offset values according to the color patterns (e.g. black pattern, white pattern, red pattern, green pattern, blue pattern, etc.) in the two pictures and then adjusts the original parameters of each color pattern by the gain factors and the offset values. Accordingly, the invention can reduce brightness difference between the two pictures, such that the user will not feel obvious difference in vision as watching the two pictures.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Referring to
As shown in
After displaying the first picture P1 and the second picture P2, the invention uses the measuring unit 12 to measure a plurality of first original parameters in the first picture P1 and measures a plurality of second original parameters in the second picture P2 for each of a plurality of color patterns (step S12 in
Then, the processing unit 14 calculates a first gain factor according to the first original parameters and the second original parameters of at least one of the color patterns except the black pattern W0 (step S14 in
In another embodiment, the processing unit 14 may calculate a ratio of each second original parameter to each first original parameter of the white pattern W255 to obtain a plurality of ratios. Then, the processing unit 14 may take a matrix consisting of the ratios to be the first gain factor. As shown in Table 4 below, the matrix served as the first gain factor is [0.953381 0.952477 0.960552]. Needless to say, the processing unit 14 may also take a minimum value, a maximum value, an average value, a median value or other values in Table 4 to be the first gain factor.
In another embodiment, a first matrix
may consist of the first original parameters of the red pattern R255, the green pattern G255 and the blue pattern B255, and a second matrix
may consist of the second original parameters of the red pattern R255, the green pattern G255 and the blue pattern B255. Then, the processing unit 14 may multiply the second matrix by an inverse matrix of the first matrix and sets negative value(s) to be zero, so as to obtain a third matrix
Then, the processing unit may take the third matrix to be the first gain factor.
In the following, the maximum value 0.962152 in Table 3 is taken to be the first gain factor to illustrate the steps after the step S14. After obtaining the first gain factor, the processing unit 14 subtracts a product of the first original parameters of the black pattern W0 and the first gain factor from the second original parameters of the black pattern W0 to obtain a plurality of first offset values (step S16 in
Then, the processing unit 14 adds the first offset values to the first original parameters of each color pattern to obtain a plurality of first updated parameters of each color pattern in the first picture P1 (step S18 in
Then, the processing unit 14 multiplies the first updated parameters of each color pattern by a second gain factor to obtain a plurality of first adjusted parameters of each color pattern in the first picture P1 (step S20 in
In another embodiment, the processing unit 14 may calculate a ratio of each second original parameter to each first updated parameter of at least one of the white pattern W255, the red pattern R255, the green pattern G255 and the blue pattern B255 to obtain a plurality of ratios. Then, the processing unit 14 may take a specific value from the ratios to be the second gain factor, wherein the specific value may be a minimum value, a maximum value, an average value, a median value or other values. As shown in Table 7 below, the processing unit 14 may calculate a ratio of each second original parameter to each first updated parameter of the white pattern W255, the red pattern R255, the green pattern G255 and the blue pattern B255 to obtain a plurality of ratios. At this time, the specific value served as the second gain factor may be a minimum value 0.942741, a maximum value 0.962404, an average value 0.955524, a median value 0.956825 or other values in Table 7.
In another embodiment, the processing unit 14 may calculate a ratio of each second original parameter to each first updated parameter of the white pattern W255 to obtain a plurality of ratios. Then, the processing unit 14 may take a matrix consisting of the ratios to be the second gain factor. As shown in Table 8 below, the matrix served as the second gain factor is [0.953403 0.952506 0.960586].
In another embodiment, a fourth matrix
may consist of the first updated parameters of the red pattern R255, the green pattern G255 and the blue pattern B255, and a second matrix
may consist of the second original parameters of the red pattern R255, the green pattern G255 and the blue pattern B255. Then, the processing unit 14 may multiply the second matrix by an inverse matrix of the fourth matrix and sets negative value(s) to be zero, so as to obtain a fifth matrix
Then, the processing unit may take the fifth matrix to be the second gain factor.
If the maximum value 0.962152 in Table 3 is taken to be the second gain factor G2, the first adjusted parameters of each color pattern in the first picture P1 obtained in the step S20 are shown in Table 9 below.
Referring to Table 10 below, Table 10 shows the difference of Y values (brightness values) of the white pattern W255 between the first picture P1 and the second picture P2 before and after adjusting the first picture P1. In Table 10, it is obvious that the brightness difference between the first picture P1 and the second picture P2 can be reduced effectively after adjusting the first picture P1 through the aforesaid method.
Referring to
After adjusting the brightness of the first picture P1 by the picture adjusting method shown in
In another embodiment, the processing unit 14 may calculate a ratio of each first adjusted parameter to each second original parameter of the white pattern W255 to obtain a plurality of ratios. Then, the processing unit 14 may take a matrix consisting of the ratios to be the third gain factor. As shown in Table 12 below, the matrix served as the third gain factor is [1.009177 1.010127 1.001631]. Needless to say, the processing unit 14 may also take a minimum value, a maximum value, an average value, a median value or other values in Table 12 to be the third gain factor.
In another embodiment, a sixth matrix
may consist of the first adjusted parameters of the red pattern R255, the green pattern G255 and the blue pattern B255, and a second matrix
may consist of the second original parameters of the red pattern R255, the green pattern G255 and the blue pattern B255. Then, the processing unit 14 may multiply the sixth matrix by an inverse matrix of the second matrix and sets negative value(s) to be zero, so as to obtain a seventh matrix
Then, the processing unit may take the seventh matrix to be the third gain factor.
In the following, the minimum value 1.001631 in Table 12 is taken to be the third gain factor to illustrate the steps after the step S22. After obtaining the third gain factor, the processing unit 14 subtracts a product of the second original parameters of the black pattern W0 and the third gain factor from the first adjusted parameters of the black pattern W0 to obtain a plurality of second offset values (step S24 in
Then, the processing unit 14 adds the second offset values to the second original parameters of each color pattern to obtain a plurality of second updated parameters of each color pattern in the second picture P2 (step S26 in
Then, the processing unit 14 multiplies the second updated parameters of each color pattern by a fourth gain factor to obtain a plurality of second adjusted parameters of each color pattern in the second picture P2 (step S28 in
In another embodiment, the processing unit 14 may calculate a ratio of each first adjusted parameter to each second updated parameter of at least one of the white pattern W255, the red pattern R255, the green pattern G255 and the blue pattern B255 to obtain a plurality of ratios. Then, the processing unit 14 may take a specific value from the ratios to be the fourth gain factor, wherein the specific value may be a minimum value, a maximum value, an average value, a median value or other values. As shown in Table 15 below, the processing unit 14 may calculate a ratio of each first adjusted parameter to each second updated parameter of the white pattern W255, the red pattern R255, the green pattern G255 and the blue pattern B255 to obtain a plurality of ratios. At this time, the specific value served as the fourth gain factor may be a minimum value 0.999886, a maximum value 1.020592, an average value 1.007002, a median value 1.005574 or other values in Table 15.
In another embodiment, the processing unit 14 may calculate a ratio of each first adjusted parameter to each second updated parameter of the white pattern W255 to obtain a plurality of ratios. Then, the processing unit 14 may take a matrix consisting of the ratios to be the fourth gain factor. As shown in Table 16 below, the matrix served as the fourth gain factor is [1.009178 1.010128 1.001632].
In another embodiment, a sixth matrix
may consist of the first adjusted parameters of the red pattern R255, the green pattern G255 and the blue pattern B255, and an eighth matrix
may consist of the second updated parameters of the red pattern R255, the green pattern G255 and the blue pattern B255. Then, the processing unit 14 may multiply the sixth matrix by an inverse matrix of the eighth matrix and sets negative value(s) to be zero, so as to obtain a ninth matrix
Then, the processing unit may take the ninth matrix to be the fourth gain factor.
If the ninth matrix
is taken to be the fourth gain factor G4, the second adjusted parameters of each color pattern in the second picture P2 obtained in the step S28 are shown in Table 17 below.
Referring to Table 18 below, Table 18 shows the difference of Y values (brightness values) of the white pattern W255 between the first picture P1 and the second picture P2 before and after adjusting the first picture P1 and the second picture P2. In Table 18, it is obvious that the brightness difference between the first picture P1 and the second picture P2 can be further reduced after adjusting the first picture P1 and the second picture P2 through the aforesaid method.
As mentioned in the above, when displaying two pictures, the invention calculates the gain factors and the offset values according to the color patterns (e.g. black pattern, white pattern, red pattern, green pattern, blue pattern, etc.) in the two pictures and then adjusts the original parameters of each color pattern by the gain factors and the offset values. Accordingly, the invention can reduce brightness difference between the two pictures, such that the user will not feel obvious difference in vision as watching the two pictures.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201811560201.1 | Dec 2018 | CN | national |