Disclosure of Invention
The invention provides an adjusting method of a display device with a double-panel, which can effectively solve the problem of character blurring caused by inaccurate alignment of the double-panel.
The invention relates to a method for adjusting a display device with a double-panel, wherein the display device comprises a first panel and a second panel, the resolution of the first panel is set as a first resolution, the resolution of the second panel is set as a second resolution, and the method comprises the following steps: when the display device receives an original signal, setting the first panel by the original signal, and determining an input signal of the second panel through a table look-up, wherein the input signal comprises gray-scale values of a plurality of original pixels under a first resolution; under the condition that the second resolution is smaller than the first resolution, calculating the corresponding relation between the original pixels of the second panel under the first resolution and the adjusted pixels of the second panel under the second resolution to obtain n original pixels of each adjusted pixel, wherein n is an integer greater than or equal to 2; and adjusting the gray-scale value of each adjusted pixel between the maximum value and the average value obtained in the n original pixels corresponding to each adjusted pixel.
In an embodiment of the present invention, the step of adjusting the gray-scale value of each adjusted pixel between the maximum value and the average value obtained in the n original pixels corresponding to each adjusted pixel includes: calculating a light-dark difference value based on n original pixels corresponding to each adjusted pixel; comparing the light-dark falling difference value with a first threshold value and a second threshold value respectively, wherein the second threshold value is larger than the first threshold value; when the light-dark fall value is larger than a second threshold value, taking the maximum value of the n original pixels as a gray-scale value corresponding to the adjusted pixel; when the light-dark fall value is smaller than a first threshold value, taking the average value of the n original pixels as a gray-scale value corresponding to the adjusted pixel; and when the light-dark fall value is larger than or equal to the first threshold value and smaller than or equal to the second threshold value, the internal interpolation is used as the gray-scale value corresponding to the adjusted pixel.
In an embodiment of the present invention, the step of calculating the light-dark difference value based on the n original pixels corresponding to each adjusted pixel includes: and calculating the light-dark difference value based on the maximum value and the minimum value in the n original pixels.
In an embodiment of the invention, the step of adjusting the gray-scale value of each adjusted pixel further includes: and fuzzifying and adjusting the gray-scale value of each adjusted pixel of the second panel by using a filter. The blurring adjustment comprises: setting the filter, wherein the filter comprises M × N block pixels, the size of each block pixel corresponds to the size of each adjusted pixel, the M × N blocks respectively have corresponding coefficients, and the sum of the M × N coefficients is equal to 1; aligning each adjusted pixel one by one with the central block of the block pixel of the filter; and after adding the gray-scale values of the adjusted pixels covered by the pixels of the block, blurring the gray-scale value of each adjusted pixel based on the coefficients corresponding to the M multiplied by N blocks of the filter.
In an embodiment of the present invention, the method for adjusting a display device further includes: and in the case that the second resolution is equal to the first resolution, fuzzification adjustment is carried out on each original pixel in the input signal of the second panel by using a filter. The blurring adjustment comprises: setting a filter, wherein the filter comprises M × N block pixels, the size of each block pixel corresponds to the size of each pixel, the M × N blocks respectively have corresponding coefficients, and the sum of the M × N coefficients is equal to 1; aligning each original pixel one by one with the central block of the block pixel of the filter; and after adding the gray-scale values of the original pixels covered by the block pixels, blurring the gray-scale value of each original pixel.
Based on the above, the image quality degradation of the text lines caused by inaccurate alignment or too large gap between the two panels can be effectively improved by adjusting the resolution of the second panel.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Detailed Description
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
In general, in a display device with two liquid crystal panels, a problem of misalignment between front and rear pixels occurs in a combination of the front and rear panels, which may cause blurring of characters. Therefore, the present invention provides an adjusting method of a display device having a dual panel, which can effectively improve the problem of display misalignment by adjusting the signal of the second panel. In order to make the content of the present invention more clear, the following specific examples are given as examples according to which the present invention can be actually carried out.
In the following embodiments, the display device has a first panel and a second panel. The first panel is, for example, a front cell (front cell), and the second panel is, for example, a back cell (back cell). The display device is provided with a controller, and the output of the first panel and the output of the second panel are determined by the controller.
Fig. 1 is a flowchart illustrating an adjusting method of a display device having a dual panel according to an embodiment of the present invention. Referring to fig. 1, in step S105, when the display device receives the original signal, the first panel is set by the original signal, and the input signal of the second panel is determined by looking up the table. Here, the resolution of the first panel is set to a first resolution, and the resolution of the second panel is set to a second resolution. And the input signal of the second panel includes gray-scale values of a plurality of original pixels at the first resolution.
The display device is stored with corresponding information between the first panel and the second panel. After determining the input signal of the first panel (R, G, B), the input signal of the second panel corresponding to the input signal of the first panel is obtained by looking up the table.
In the present embodiment, it is assumed that the second resolution is smaller than the first resolution. Since the resolution of the input signal of the second panel obtained by looking up the table is the first resolution, when the second resolution of the second panel is smaller than the first resolution, the resolution of the input signal of the second panel needs to be decreased. That is, after determining the input signal of the second panel, in step S110, the corresponding relationship between the original pixels included in the second panel at the first resolution and the adjusted pixels included in the second panel at the second resolution is calculated, so that the adjusted pixels include n original pixels. Here, n is an integer of 2 or more.
Assuming that the first resolution is 1920 × 1080, the input signal of the second panel includes 1920 × 1080 gray-scale values corresponding to original pixels. And, assuming that the second resolution is 960 × 540, in step S110, one adjusted pixel is calculated to correspond to 4 (2 × 2) original pixels. As shown in fig. 3, fig. 3 is a schematic diagram illustrating a corresponding relationship between an adjusted pixel and an original pixel according to an embodiment of the invention. In FIG. 3, one adjusted pixel P corresponds to 4 original pixels P1-P4. However, the above description is only for illustrative purposes and is not limited thereto. In other embodiments, one adjustment pixel P may correspond to 2, 3, 5 or more original pixels.
Returning to fig. 1, in step S115, the gray-scale value of each adjusted pixel is adjusted between the maximum value and the average value obtained in the n original pixels corresponding to each adjusted pixel. An example of how to adjust the gray-scale value of each adjusted pixel is described in detail below.
FIG. 2 is a flowchart illustrating a method for adjusting gray-scale values of pixels according to an embodiment of the invention. In step S205, the light-dark fall value Δ Gray is calculated. That is, the light-dark fall value Δ Gray is calculated based on the n original pixels corresponding to the adjusted pixel. The light-dark fall value Δ Gray is calculated based on the maximum value and the minimum value of the n original pixels. For fig. 3, Δ Gray ═ Max (P1, P2, P3, P4) -Min (P1, P2, P3, P4). Max (P1, P2, P3, P4) represents the maximum value among the gray-scale values corresponding to the original pixels P1 to P4, and Min (P1, P2, P3, P4) represents the minimum value among the gray-scale values corresponding to the original pixels P1 to P4. The brightness fall value Δ Gray of the adjusted pixel can be obtained by subtracting the maximum value from the minimum value.
Next, in step S210, the light-dark fall value Δ Gray is compared with the first threshold value T1 and the second threshold value T2, respectively. Here, the second threshold T2 is greater than the first threshold T1. The first threshold T1 is set to be 10-20, the second threshold T2 is set to be 30-40, the first threshold T1 is 15, and the second threshold T2 is 35. However, the above description is only for illustrative purposes and is not limited thereto.
When the light-dark fall value Δ Gray is smaller than the first threshold value T1, in step S215, the average value of the n original pixels is used as the Gray level corresponding to the adjusted pixel. When the light-dark fall value Δ Gray is greater than or equal to the first threshold value T1 and less than or equal to the second threshold value T2, the interpolated value is used as the Gray level corresponding to the adjusted pixel. When the light-dark fall value Δ Gray is greater than the second threshold value T2, in step S225, the maximum value of the n original pixels is used as the Gray level corresponding to the adjusted pixel.
For example, fig. 4 is a diagram of setting the gray-scale value of the adjusted pixel according to the value between the maximum value and the average value obtained from the n original pixels according to an embodiment of the invention. Referring to fig. 4, the horizontal axis shows the light-dark fall Δ Gray, and the vertical axis shows the Gray level. Here, the average value Gavg obtained in the n original pixels is set to the minimum value, and the maximum value Gmax obtained in the n original pixels is set to the maximum value.
As shown in fig. 4, when Δ Gray > T2, the maximum value Gmax is used as the Gray level value corresponding to the adjusted pixel; when the delta Gray is less than T1, taking the average value Gavg as the Gray-scale value corresponding to the adjusted pixel; when T1 is less than or equal to Δ Gray is less than or equal to T2, an interpolation value obtained by interpolating based on the average value Gavg and the maximum value Gmax is used as the Gray-scale value corresponding to the pixel after adjustment.
After the gray-scale values of the adjusted pixels are adjusted, the gray-scale values of each adjusted pixel of the second panel can be further adjusted by blurring through a filter. Here, a filter is set. The filter comprises M × N block pixels, the size of each block pixel corresponds to the size of each adjusted pixel, the M × N blocks respectively have corresponding coefficients, and the sum of the M × N coefficients is equal to 1. The size of the filter can be adjusted according to the actual hardware condition.
Fig. 5 is a schematic diagram of a filter according to an embodiment of the invention. As shown in fig. 5, the filter includes 3 × 3 block pixels, and the sum of the coefficients of each block pixel is equal to 1. In the present embodiment, the coefficients corresponding to each block pixel are the same, however, in other embodiments, the coefficients corresponding to each block pixel may be different. For example, different tile pixels may be given different weights. Fig. 7 is a schematic diagram of a filter according to another embodiment of the invention, as shown in fig. 7. In fig. 7, the filter includes 5 × 5 block pixels.
After the filter is determined, the adjusted pixels are aligned one by one with the center patches of the patch pixels of the filter, and the gray scale values of the adjusted pixels are blurred based on the coefficients corresponding to the M × N patches of the filter. The following illustrates how the blurring adjustment is performed by using a filter.
Fig. 6A-6D are schematic diagrams illustrating blur adjustment by a filter according to an embodiment of the invention. Here, a pixel in a frame may be divided into two parts, one of which is a pixel not located at the edge of the frame, and the filter F may completely cover a plurality of pixels corresponding to the size of the pixel; the other is the pixels at the edge of the frame, and the filter F cannot completely cover the pixels corresponding to the size of the frame.
The following description is provided with reference to fig. 6C, wherein the pixels that are not located at the frame edge are covered by the filter F. By pixel P12For example, the filter F may completely cover 3 × 3 pixels (P) corresponding to its 3 × 3 size01、P02、P03、P11、P12、P13、P21、P22、P23). At the pixel P12When fuzzification adjustment is carried out, P is added01、P02、P03、P11、P12、P13、P21、P22、P23The total sum of the original gray-scale values of the nine pixels is multiplied by the coefficient corresponding to each block pixel of the filter F, thereby obtaining the pixel P12Fuzzification adjusted values are performed. Taking fig. 5 as an example, the total sum of the gray-scale values of the nine pixels is multiplied by 1/9 to obtain a value (i.e., an average value) as the pixel P12Fuzzification adjusted values are performed. Then, the filter F is shifted to the right by one pixel, for the pixel P13When fuzzification adjustment is carried out, P is added02、P03、P04、P12、P13、P14、P22、P23、P24The total sum of the original gray-scale values of the nine pixels is multiplied by the coefficient corresponding to each block pixel of the filter F, thereby obtaining the pixel P13Fuzzification adjusted values are performed. And in the same way, performing fuzzification adjustment on pixels which are not positioned at the edge of the frame.
In addition, fig. 6A, fig. 6B and fig. 6D are used to illustrate the pixels at the frame edge, i.e. the filter F cannot completely cover the pixels corresponding to the frame edge. In FIG. 6A, for pixel P00The central block of the filter F is aligned to the pixel P00. At the pixel P00Performing fuzzificationWhen adjusting, with P00、P01、P10、P11The average of the gray-scale values of the four pixels is taken as the pixel P00Fuzzification adjusted values are performed.
In FIG. 6B, for pixel P01The central block of the filter F is aligned to the pixel P01. At the pixel P01When fuzzification adjustment is carried out, the value is P00、P01、P02、P10、P11、P12The average of the gray-scale values of six pixels is taken as the pixel P01Fuzzification adjusted values are performed.
In FIG. 6D, for pixel P27The central block of the filter F is aligned to the pixel P27. At the pixel P27When fuzzification adjustment is carried out, the value is P16、P17、P26、P27、P36、P37The average of the gray-scale values of six pixels is taken as the pixel P27Fuzzification adjusted values are performed. And in the same way, performing fuzzification adjustment on pixels at the edge of the frame.
In other embodiments, the blurring adjustment may be performed using the filter shown in fig. 7. For example, when performing the blurring adjustment on the pixels not located at the frame edge, the total number of the original gray levels of the 25 pixels covered by the filter after being added is multiplied by the coefficient corresponding to each block of the filter, thereby obtaining the value of the blurring adjustment on the pixels corresponding to the central block of the filter. When the blurring adjustment is performed on the pixels located at the edge of the frame, the average value of the original gray levels of the pixels covered by the filter is calculated as the value after the blurring adjustment.
The above embodiments are directed to the implementation of the case where the second resolution is smaller than the first resolution. When the second resolution is equal to the first resolution, it is not necessary to perform a resolution reduction operation on the input signal of the second panel, and it is only necessary to perform blurring adjustment on the gray-scale value of each adjusted pixel of the second panel by using a filter.
In summary, the present invention can effectively improve the image quality degradation of text lines caused by inaccurate alignment of two panels or too large gap between the two panels by adjusting the resolution of the second panel.
Although the present invention has been described with reference to the above embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention.