The present disclosure relates to the field of image display and in particular to a method and an apparatus for discriminating luminance backgrounds for images, as well as a display apparatus thereof.
In the field of display, e.g. in the field of mobile display, a high-luminance background (e.g., white background for a text page) and a low-luminance background (e.g., night mode for a text page) are two very common application scenarios, and the processing ways for these two categories of images are different. However, in the prior art, different luminance backgrounds are merely represented physically by different gray scale values, which lacks the recognition that there is still room for improving the luminance backgrounds for images, so as to better display and process the images.
There is an urgent need in the prior art for a technology to improve the luminance backgrounds for images, so as to display and process the images better.
In view of above, the present disclosure provides a method and an apparatus for discriminating luminance backgrounds for images, as well as a display apparatus thereof, which can solve or at least alleviate at least a part of the drawbacks existing in the prior art.
According to a first aspect of the present disclosure, a method for discriminating luminance backgrounds for images is provided. The method comprises the steps of: receiving image information that is to be discriminated, the image information comprising gray scale values for respective sub-pixels in each pixel; forming the gray scale values for specific sub-pixels of pixels within the s±mth row and the t±nth column in the image information, having a pixel of the sth row, tth column as the center, into a digit group, and arranging the digit group in order, wherein s, m, t and n are natural numbers; if the greater gray scale values for N specific sub-pixels in the digit group are all greater than a given gray scale value, and a variance is less than or equal to a specified threshold, it is determined that the specific sub-pixels within the s±mth row and the t±nth column are a high-luminance background region; otherwise, it is determined that the specific sub-pixels within the s±mth row and the t±nth column are a non-high-luminance background region.
By means of the method for discriminating luminance backgrounds for images of the present disclosure, luminance backgrounds can be discriminated to different degrees of strictness using different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and variances against different specified thresholds. For example, an integral image region is discriminated into a high-luminance region, a low-luminance region, and a transitional region in between the high-luminance region and the low-luminance region, respectively. After discriminating the high-luminance region, the low-luminance region and the transitional region, the regions with different luminance backgrounds are refined correspondingly. In other words, the present disclosure is directed to a design where a high-resolution algorithm is based on the high-luminance background discrimination. The present disclosure discriminates the two common backgrounds (high-luminance background and non-high-luminance background) and distinguishes between the high-luminance background and the non-high-luminance background. The present disclosure may alter the degree of strictness in discriminating the high-luminance background by adjusting parameters such as the given gray scale value, the setting for the number N of the greater specific sub-pixels that are greater than the given gray scale value, and/or the specified threshold for variance. By altering the degree of strictness, the range of the high-luminance region to be determined may be altered. The present disclosure may also process by different algorithms with respect to different regions.
In one embodiment of the present disclosure, the variance is less than or equal to 50. Alternatively, the variance is less than or equal to 40.
In another embodiment of the present disclosure, the more the number N of the specific sub-pixels greater than the given gray scale value is, the stricter the discrimination condition is. Alternatively, the larger the given gray scale value is, the stricter the discrimination condition is. Alternatively, the smaller the variance is, the stricter the discrimination condition is.
In a further embodiment of the present disclosure, the given gray scale value is larger than 180. Alternatively, the given gray scale value is larger than 200.
In a still further embodiment of the present disclosure, the digit group formed by the gray scale values for specific sub-pixels of the pixels within the s±mth row and the t±nth column having the pixel of the sth row, tth column as the center represents gray scale values in an odd number of rows and an odd number of columns. Alternatively, the gray scale values in an odd number of rows and an odd number of columns are gray scale values for specific sub-pixels in 3 rows and 5 columns or 5 rows and 7 columns.
In one embodiment of the present disclosure, the digit group is arranged in a descending order. Alternatively, the digit group is arranged in an ascending order.
In another embodiment of the present disclosure, a low-pass filtering is applied to the digit group of the gray scale values for specific sub-pixels determined as the non-high-luminance background region.
In a further embodiment of the present disclosure, the specific sub-pixel is a red sub-pixel, a green sub-pixel or a blue sub-pixel.
According to a second aspect of the present disclosure, an apparatus for discriminating luminance backgrounds for images is provided. The apparatus comprises: a receiving unit for receiving image information that is to be discriminated, the image information comprising gray scale values for respective sub-pixels in each pixel; a storage unit for forming the gray scale values for specific sub-pixels of pixels within the s±mth row and the t±nth column in the image information, having a pixel of the sth row, tth column as the center, into a digit group, and arranging the digit group in order, wherein s, m, t and n are natural numbers; a determination unit for determining, if the gray scale values for the N greater specific sub-pixels in the digit group are all greater than a given gray scale value, and a variance is less than or equal to a specified threshold, that the specific sub-pixels within the s±mth row and the t±nth column are a high-luminance background region; otherwise, the specific sub-pixels within the s±mth row and the t±nth column are a non-high-luminance background region.
By means of the apparatus for discriminating luminance backgrounds for images of the present disclosure, luminance backgrounds can be discriminated to different degrees of strictness using different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and variances against different specified thresholds. For example, an integral image region is discriminated into a high-luminance region, a low-luminance region, and a transitional region in between the high-luminance region and the low-luminance region, respectively. After discriminating the high-luminance region, the low-luminance region and the transitional region, the regions with different luminance backgrounds are refined correspondingly. In other words, the present disclosure is directed to a design where a high-resolution algorithm is based on the high-luminance background discrimination. The present disclosure discriminates the two common backgrounds (high-luminance background and non-high-luminance background) and distinguishes between the high-luminance background and the non-high-luminance background. The present disclosure may alter the degree of strictness in discriminating the high-luminance background by adjusting parameters such as the given gray scale value, the setting for the number N of the greater specific sub-pixels that are greater than the given gray scale value, and/or the specified threshold for variance. By altering the degree of strictness, the range of the high-luminance region to be determined may be altered. The present disclosure may also process by different algorithms with respect to different regions.
In one embodiment of the present disclosure, the variance is less than or equal to 50. Alternatively, the variance is less than or equal to 40. In another embodiment of the present disclosure, the more the number N of the specific sub-pixels greater than the given gray scale value is, the stricter the discrimination condition is. Alternatively, the larger the given gray scale value is, the stricter the discrimination condition is. Alternatively, the smaller the variance is, the stricter the discrimination condition is.
According to a third aspect of the present disclosure, a display apparatus is provided. The display apparatus includes a apparatus using the above-described method for discriminating luminance backgrounds for images and/or the above-described apparatus for discriminating luminance backgrounds for images.
By means of the display apparatus of the present disclosure, luminance backgrounds can be discriminated to different degrees of strictness using different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and variances against different specified thresholds. For example, an integral image region is discriminated into a high-luminance region, a low-luminance region, and a transitional region in between the high-luminance region and the low-luminance region, respectively. After discriminating the high-luminance region, the low-luminance region and the transitional region, the regions with different luminance backgrounds are refined correspondingly. In other words, the present disclosure is directed to a design where a high-resolution algorithm is based on the high-luminance background discrimination. The present disclosure discriminates the two common backgrounds (high-luminance background and non-high-luminance background) and distinguishes between the high-luminance background and the non-high-luminance background. The present disclosure may alter the degree of strictness in discriminating the high-luminance background by adjusting parameters such as the given gray scale value, the setting for the number N of the greater specific sub-pixels that are greater than the given gray scale value, and/or the specified threshold for variance. By altering the degree of strictness, the range of the high-luminance region to be determined may be altered. The present disclosure may also process by different algorithms with respect to different regions.
In the following, the respective embodiments of the present disclosure are to be described in detail with reference to the
In step S32, image information that is to be discriminated is received, the image information comprising gray scale values for respective sub-pixels in each pixel. For example, the gray scale values may be those for the red sub-pixels in each pixel, represented by a digit group r_01, r_02, r_03, . . . , r_n. Alternatively, the gray scale values may be those for the green sub-pixels in each pixel, represented by a digit group g_01, g_02, g_03, . . . , g_n. Alternatively, the gray scale values may be those for the blue sub-pixels in each pixel, represented by a digit group b_01, b_02, b_03, . . . , b_n. For the convenience of illustration, red sub-pixels are taken as an example for illustration in the following embodiments of the present disclosure. For example, the digit group [r_01, r_02, r_03, . . . , r_14, r_15] is formed by the gray scale values for the red sub-pixels having (s, t) as the center shown in
In step S34, the gray scale values for specific sub-pixels (e.g., red sub-pixels) of pixels within the s±mth row and the t±nth column having a pixel of the sth row, tth column as the center in the image information are formed into a digit group, and the digit group is arranged in order, wherein s, m, t and n are natural numbers. In one embodiment of the present disclosure, the sub-pixel arrangement layout shown in
It needs to be noted that
As mentioned above, a digit group [r_01, r_02, r_03, . . . , r_14, r_15] formed by the gray scale values having the random (s, t) as the center shown in
In step S36, if the gray scale values for the N greater specific sub-pixels in the digit group are all greater than a given gray scale value, and a variance is less than or equal to a specified threshold, it is determined, in step S38, that the specific sub-pixels within the s±mth row and the t±nth column are a high-luminance background region; otherwise, it is determined, in step S39, that the specific sub-pixels within the s±mth row and the t±nth column are a non-high-luminance background region. For example, for the N greater red sub-pixels in the digit group [r_01, r_02, r_03, . . . , r_14, r_15], the number N may be selected differently according to whether the luminance background discrimination is strict or lenient. It needs to be noted that the more the number N of the specific sub-pixels greater than the given gray scale value is, the stricter the discrimination condition is. For example, under the condition of greater gray scale values than a given gray scale value and a variance less than or equal to a specified threshold, the number N of the specific sub-pixels greater than the given gray scale value is selected to be 7. This means, if seven or more than seven red sub-pixels have their gray levels greater than the given gray scale value, and the variance is less than or equal to a specified threshold, it is determined that the 15 red sub-pixels represented by the gray scale values having the random (s, t) as the center are all of a high-luminance background region. On the contrary, if less than seven (not including seven) red sub-pixels have their gray levels greater than the given gray scale value, and the variance is less than or equal to a specified threshold, it is determined that the 15 red sub-pixels represented by the gray scale values having the random (s, t) as the center are all of a non-high-luminance background region. Similarly, under the condition of greater gray scale values than a given gray scale value and a variance less than or equal to a specified threshold, the number N of the specific sub-pixels greater than the given gray scale value is selected to be 5. This means, if five or more than five red sub-pixels have their gray levels greater than the given gray scale value, and the variance is less than or equal to a specified threshold, it is determined that the 15 red sub-pixels represented by the gray scale values having the random (s, t) as the center are all of a high-luminance background region. On the contrary, if less than five (not including five) red sub-pixels have their gray levels greater than the given gray scale value, and the variance is less than or equal to a specified threshold, it is determined that the 15 red sub-pixels represented by the gray scale values having the random (s, t) as the center are all of a non-high-luminance background region. Obviously, the condition is stricter when the number N of the specific sub-pixels greater than the given gray scale value is selected to be 7 than when it is selected to be 5.
For different degrees of strictness, the discrimination results are different. For example,
In another embodiment of the present disclosure, the image at the discriminated non-high-luminance background regions may be further processed. For example, a low-pass filtering is applied to the digit group of the gray scale values for specific sub-pixels discriminated as a non-high-luminance background region. Specifically, for the same image, a result of subtracting the image obtained with a strict condition for luminance background discrimination from the image obtained with a lenient condition for luminance background discrimination is called a transitional region. Then, a low-pass filtering is applied to this transitional region. In other words, the non-high-luminance background region actually include the transitional region and the genuine low-luminance background region. It is for the subsequent application of a low-pass filtering to the transitional region that the transitional region is distinguished from the non-high-luminance background region, whereby the color burrs shown at the edges of the image, such as a character, can be improved. It needs to be noted here that it is not necessary to apply the low-pass filtering to the transitional region. In some cases, e.g., in a case where the color burrs shown at the edges of the image, such as a character, are not very serious, the step of the low-pass filtering to the transitional region can be omitted.
It is known to a person skilled in the art that a variance is the mean for a sum of the squares of differences between each data and the mean thereof, and a variance is to measure the degree of deviation between a random variable and its mathematical expectation (i.e., the mean value). In each embodiment of the present disclosure, a variance of the digit group [r_01, r_02, r_03, . . . , r_14, r_15] is less than or equal to 50. Preferably, a variance of the digit group [r_01, r_02, r_03, . . . , r_14, r_15] is less than or equal to 40.
In each embodiment of the present disclosure, the input image information includes the gray scale values for respective sub-pixels in each pixel. The gray scale values for the respective sub-pixels are in the range of 0-256 in an usual sense, wherein the given gray scale value may be larger than 180. Preferably, the given gray scale value is larger than 200.
It needs to be noted that as mentioned above, a difference in the number N of the greater specific sub-pixels that are greater than the given gray scale value affects the degree of strictness for the luminance background discrimination. For example, in the digit group [r_01, r_02, r_03, . . . , r_14, r_15] formed by the gray scale values for 15 red sub-pixels, when the given gray scale value is selected to be 180, if the number of the greater specific sub-pixels in the digit group that are greater than the given gray scale value 180 is set to be 7, and if in fact there are 8 greater red sub-pixels each having a gray scale value above the given gray scale value 180, and the variance is less than or equal to a specified threshold, it is then determined that the red sub-pixels within the s±1th row and the t±2th column are a high-luminance background region; if in fact there are 6 greater red sub-pixels each having a gray scale value above the given gray scale value 180, and the variance is less than or equal to a specified threshold, it is still determined that the red sub-pixels within the s±1th row and the t±2th column are a non-high-luminance background region. When the given gray scale value is selected to be 200, if the number of the greater specific sub-pixels in the digit group that are greater than the gray scale value 200 is still set to be 7, and if in fact there are 8 greater red sub-pixels each having a gray scale value above the given gray scale value 200, and the variance is less than or equal to a specified threshold, it is then determined that the red sub-pixels within the s±1th row and the t±2th column are a high-luminance background region; if in fact there are 6 greater red sub-pixels each having a gray scale value above the given gray scale value 200, and the variance is less than or equal to a specified threshold, it is still determined that the red sub-pixels within the s±1th row and the t±2th column are a non-high-luminance background region. Obviously, the greater the given gray scale value is set to be, the stricter the luminance background discrimination is. It thus can be seen that the setting for the given gray scale value has an impact on the degree of strictness for the luminance background discrimination.
In addition, it further needs to be noted that there may be also different settings, as required, to the specified threshold for the variance.
For example, in the digit group [r_01, r_02, r_03, . . . , r_14, r_15] formed by the gray scale values for 15 red sub-pixels, when the given gray scale value is set to be 180, in the case that the number N of the greater red sub-pixels that are greater than the given gray scale value 180 is set to be 7, while in fact there are 8 in the digit group [r_01, r_02, r_03, . . . , r_14, r_15] having a gray scale value above 180, the variance of the 8 gray scale values is 40. If the specified threshold for the variance is set to be 45, since the variance 40 of the 8 gray scale values is less than the set variance threshold 45, it is determined that the region of the 15 red sub-pixels represented by the digit group [r_01, r_02, r_03, . . . , r_14, r_15] is a high-luminance background region. If the specified threshold for the variance is set to be 39, since the variance 40 of the 8 gray scale values is larger than the set variance threshold 39, it is determined that the region of the 15 red sub-pixels represented by the digit group [r_01, r_02, r_03, . . . , r_14, r_15] are a non-high-luminance background region, although the other two conditions have been met, i.e., there are 8 (more than 7 as the set number for the greater N red sub-pixels) in the digit group [r_01, r_02, r_03, . . . , r_14, r_15] above the given gray scale value 180. It thus can be seen that the setting for the specified threshold for the variance has an impact on the degree of strictness for the luminance background discrimination.
It can be seen based on the above analysis that each of the different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and the variance against different specified thresholds can generate an impact on the degree of strictness for the luminance background discrimination. These three are all parameters to affect the degree of strictness for the luminance background discrimination and are independent from each other.
In one embodiment of the present disclosure, the given gray scale value may be selected to be 200, the specified threshold for the variance is 50, and the number N of the greater red sub-pixels that are greater than the given gray scale value is set to be 5. If in fact there are more than 5 greater red sub-pixels each having a gray scale value above the given gray scale value 200 and the variance is less than or equal to the specified threshold 50, it is determined that the 15 red sub-pixels within the s±1th row and the t±2th column are a high-luminance background region. Otherwise, it is determined that the 15 red sub-pixels within the s±1th row and the t±2th column are a non-high-luminance background region.
By means of the method for discriminating luminance backgrounds for images of the present disclosure, luminance backgrounds can be discriminated to different degrees of strictness using different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and variances against different specified thresholds. For example, an integral image region is discriminated into a high-luminance region, a low-luminance region, and a transitional region in between the high-luminance region and the low-luminance region, respectively. After discriminating the high-luminance region, the low-luminance region and the transitional region, the regions with different luminance backgrounds are refined correspondingly. In other words, the present disclosure is directed to a design where a high-resolution algorithm is based on the high-luminance background discrimination. The present disclosure discriminates the two common backgrounds (high-luminance background and non-high-luminance background) and distinguishes between the high-luminance background and the non-high-luminance background. The present disclosure may alter the degree of strictness in discriminating the high-luminance background by adjusting parameters such as the given gray scale value, the setting for the number N of the greater specific sub-pixels that are greater than the given gray scale value, and/or the specified threshold for variance. By altering the degree of strictness, the range of the high-luminance region to be determined may be altered. The present disclosure may also process by different algorithms with respect to different regions.
As mentioned above, the range of the high-luminance region as determined may be different when discrimination algorithms to different degrees of strictness are used. As shown in
The luminance background discrimination method of the present disclosure needs to refer to the luminance data in one region, and determines the luminance background according to a range of these data. As mentioned above, the range of these data may be adjusted by using different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and variances against different specified thresholds, so as to alter the degree of strictness for the discrimination algorithms.
According to a second aspect of the present disclosure, an apparatus for discriminating luminance backgrounds for images is provided. The apparatus may comprise: a receiving unit for receiving image information that is to be discriminated, the image information comprising gray scale values for respective sub-pixels in each pixel; a storage unit for forming the gray scale values for specific sub-pixels of pixels within the s±mth row and the t±nth column in the image information, having a pixel of the sth row, tth column as the center, into a digit group, and arranging the digit group in order, wherein s, m, t and n are natural numbers; a determination unit for determining, if the gray scale values for the N greater specific sub-pixels in the digit group are all greater than a given gray scale value, and a variance is less than or equal to a specified threshold, that the specific sub-pixels within the s±mth row and the t±nth column are a high-luminance background region; otherwise, the specific sub-pixels within the s±mth row and the t±nth column are a non-high-luminance background region.
In the apparatus for discriminating luminance backgrounds for images of the present disclosure, luminance backgrounds can be discriminated to different degrees of strictness using different given gray scale values, the number N of the greater specific sub-pixels that are greater than the given gray scale value, and variances against different specified thresholds. For example, an integral image region is discriminated into a high-luminance region, a low-luminance region, and a transitional region in between the high-luminance region and the low-luminance region, respectively. After discriminating the high-luminance region, the low-luminance region and the transitional region, the regions with different luminance backgrounds are refined correspondingly. In other words, the present disclosure is directed to a design where a high-resolution algorithm is based on the high-luminance background discrimination. The present disclosure discriminates the two common backgrounds (high-luminance background and non-high-luminance background) and distinguishes between the high-luminance background and the non-high-luminance background. The present disclosure may alter the degree of strictness in discriminating the high-luminance background by adjusting parameters such as the given gray scale value, the setting for the number N of the greater specific sub-pixels that are greater than the given gray scale value, and/or the specified threshold for variance. By altering the degree of strictness, the range of the high-luminance region to be determined. The present disclosure may also process by different algorithms with respect to different regions.
Alternatively, the variance is less than or equal to 50. Alternatively, the variance is less than or equal to 40.
Alternatively, the more the number N of the specific sub-pixels greater than the given gray scale value is, the stricter the discrimination condition is. Alternatively, the larger the given gray scale value is, the stricter the discrimination condition is. Alternatively, the smaller the variance is, the stricter the discrimination condition is.
According to a third aspect of the present disclosure, a display apparatus is provided. The display apparatus may include a apparatus using the above-described method for discriminating luminance backgrounds for images and/or the above-described apparatus for discriminating luminance backgrounds for images.
Although the present disclosure has been described with reference to the embodiments within current consideration, it should be understood that the present disclosure is not limited to the disclosed embodiments. On the contrary, the present disclosure is intended to contain various modifications and equivalent arrangements that are included in the scope of the appended claims. The scope of the following claims conforms to explanations in a broadest sense, so as to include every one of such modifications and equivalent structures and functions.
Number | Date | Country | Kind |
---|---|---|---|
201510241508.5 | May 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2015/091064 | 9/29/2015 | WO | 00 |