A display edge color cast compensation system and method
By designing a display edge color shift compensation system, the color shift problem of the curved edge of the display screen is calculated and compensated, which solves the color shift problem in the irregularly cut area after the bezel of the display screen is reduced, and achieves effective color shift improvement and circuit simplification.
Patent Information
- Application Number
- CN202411934414.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-12-26
AI Technical Summary
As the screen-to-body ratio of displays increases, the bezels of displays become smaller and smaller. This leads to color shift issues, especially in irregularly shaped areas (such as notch screens and punch-hole screens), affecting the display quality.
Design a display edge color shift compensation system, including a coefficient calculation circuit, a linear domain to nonlinear domain conversion circuit, an internal coefficient temporary storage unit, an internal position information temporary storage unit, a pixel position judgment circuit, and a curve edge color shift compensation circuit. By calculating the start and end positions of the transition area and the gain coefficient of each row of pixels, sub-pixel color shift compensation is performed to improve the color shift at the curve edge.
It effectively improves the color cast at the curve edges, reduces storage space requirements, and simplifies the calculation circuit. It directly performs linear-domain and non-linear-domain conversion on pixel gain, achieving a simple circuit design.
Smart Images

Figure CN119516928B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display compensation technology, and particularly to the field of display edge color distortion compensation. Background Technology
[0002] As the screen-to-body ratio of displays increases, the bezels of displays become smaller and smaller. Taking mobile phones as an example, in order to improve the overall screen-to-body ratio, from the initial notch and waterdrop screens to punch-hole screens (AA holes) and full screens, generally speaking, for the sake of the display's aesthetics, manufacturers use irregular cuts such as rounded corners and angular corners in the four corners and the notch and punch-hole (AA hole) areas in the middle to ensure the smoothness of the ID design.
[0003] As the screen-to-body ratio of displays increases, the bezels of displays become smaller and smaller. Taking mobile phones as an example, in order to improve the overall screen-to-body ratio, from the initial notch and waterdrop screens to punch-hole screens (AA holes) and full screens, generally speaking, for the sake of the display's aesthetics, manufacturers use irregular cuts such as rounded corners and angular corners in the four corners and the notch and punch-hole (AA hole) areas in the middle to ensure the smoothness of the ID design. Summary of the Invention
[0004] This invention provides a display edge color shift compensation system and method, which can effectively improve the color shift at the curved edges of display devices.
[0005] A display edge color shift compensation system includes: a coefficient calculation circuit, a linear domain to nonlinear domain conversion circuit, an internal coefficient temporary storage unit, an internal position information temporary storage unit, a pixel position judgment circuit, a curve edge color shift compensation circuit, and a fusion circuit.
[0006] The coefficient calculation circuit is connected to the internal coefficient temporary storage unit and the internal position information temporary storage unit respectively, and is used to calculate the start and end positions of the transition area on each row of pixels, as well as the gain coefficient of the pixels in the transition area.
[0007] The internal coefficient temporary storage unit is also connected to the curve edge color shift compensation calculation circuit, which is used to obtain and store the gain coefficient and sub-pixel color shift compensation coefficient of the start and end positions of the transition area on each row of pixels, and obtain the gain coefficient group and sub-pixel color shift compensation coefficient group respectively.
[0008] The internal position information temporary storage unit is also connected to the pixel position judgment circuit, which is used to obtain and store the start and end positions of the transition area on each row of pixels;
[0009] The pixel position determination circuit is also connected to the internal coefficient temporary storage unit and the curve edge color shift compensation calculation circuit respectively, in order to obtain the position information of the input pixel;
[0010] The curve edge color shift compensation calculation circuit is also connected to the linear domain to nonlinear domain conversion circuit. It is used to calculate the curve edge color shift compensation coefficient based on the position information of the input pixel and the sub-pixel color shift compensation coefficient group in the internal position register and the internal coefficient register.
[0011] The linear-to-nonlinear domain conversion circuit is also connected to a fusion circuit for converting between the linear and nonlinear domains.
[0012] The fusion circuit is used to determine whether the input pixel is in the transition region based on the position information of the input pixel, calculate the sub-pixel compensation coefficient, and process and output the input pixel according to the final gain coefficient.
[0013] Furthermore, the coefficient calculation circuit is an external storage circuit used to store the start and end positions of the transition area of each row of pixels, as well as the gain coefficient and sub-pixel color shift compensation coefficient of the pixels in the transition area, to obtain the gain coefficient group and the sub-pixel color shift compensation coefficient group respectively.
[0014] Furthermore, the steps for obtaining the final gain coefficient in the fusion circuit include:
[0015] S11. The fusion calculation circuit determines whether the input pixel is located in the transition region based on the position information. If not, it directly outputs the data of the input pixel. If so, it calculates the sub-pixel compensation coefficient according to the following formula.
[0016] Coefficient cmp,R\G\B =Ratio R\G\B *Gain
[0017] Among them, Ratio R\G\B is the sub-pixel color cast compensation coefficient, and Gain is the gain coefficient;
[0018] S12, The linear domain to nonlinear domain conversion circuit reads the sub-pixel compensation coefficients and converts them to obtain the final gain coefficients;
[0019] S13, the fusion circuit reads the final gain coefficient from the linear-to-nonlinear-domain conversion circuit.
[0020] Furthermore, the internal coefficient temporary storage unit also stores the phase filter.
[0021] Furthermore, the internal coefficient temporary storage unit also stores vertical phase filters and horizontal phase filters.
[0022] On the other hand, this application also provides a display edge color cast compensation method based on the compensation system described above, comprising the following steps:
[0023] The first step is for the pixel position determination circuit to receive the input pixel and calculate the position information of the input pixel;
[0024] The second step involves the fusion computing circuit determining whether the input pixel is located in the transition region based on the position information. If not, the input pixel data is directly output; otherwise, the process jumps to the third step.
[0025] The third step is to calculate the sub-pixel color shift compensation coefficient corresponding to the input pixel and obtain the corresponding gain coefficient.
[0026] The fourth step involves the fusion calculation circuit reading the sub-pixel color cast compensation coefficient and gain coefficient, and then calculating and outputting the sub-pixel compensation coefficient according to the formula.
[0027] Coefficient cmp,R\G\B =Ratio R\G\B *Gain
[0028] Among them, Ratio R\G\B is the sub-pixel color cast compensation coefficient, and Gain is the gain coefficient;
[0029] The fifth step involves the linear-to-nonlinear domain conversion circuit reading the sub-pixel compensation coefficients and converting them to obtain the final gain coefficients.
[0030] The sixth step involves the fusion calculation circuit multiplying the final gain coefficient by the input data as the output data and then outputting it.
[0031] Furthermore, in the third step, the curve edge color cast compensation circuit calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, including the following steps:
[0032] S3.11, the curve edge color shift compensation circuit reads the sub-pixel color shift compensation coefficient group from the internal coefficient memory;
[0033] S3.12, the curve edge color shift compensation circuit calculates the color shift compensation coefficient of the corresponding sub-pixel based on the sub-pixel color shift compensation coefficient group, the gain group and the position information of the input pixel.
[0034] Furthermore, in the third step, the curve edge color cast compensation circuit calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, including the following steps:
[0035] S3.21, the curve edge color shift compensation circuit calculates the phase information of the pixels located in the transition area, and obtains the phase filter from the internal coefficient temporary storage unit based on the phase information;
[0036] S3.22, the curve edge color distortion compensation circuit obtains the gain coefficient from the gain coefficient data based on the position information;
[0037] S3.23, the curve edge color shift compensation circuit calculates the sub-pixel color shift compensation coefficient based on the phase filter and gain coefficient.
[0038] Furthermore, in the third step, the curve edge color cast compensation circuit calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, including the following steps:
[0039] S3.31, the curve edge color shift compensation circuit calculates the phase information of the pixels located in the transition area, and obtains the vertical phase filter and horizontal phase filter from the internal coefficient temporary storage unit based on the phase information.
[0040] S3.32, the curve edge color distortion compensation circuit calculates the horizontal coefficient based on the position information and the horizontal phase filter;
[0041] S2.33, the curve edge color distortion compensation circuit calculates the vertical coefficient based on the position information and the vertical phase filter;
[0042] S3.34, the curve edge color shift compensation circuit calculates the sub-pixel color shift compensation coefficient based on the horizontal and vertical coefficients.
[0043] Furthermore, the third step, in which the curve edge color shift compensation circuit obtains the corresponding gain coefficient, is as follows:
[0044] The curve edge color shift compensation circuit reads the gain coefficient array in the internal coefficient memory and obtains the gain data corresponding to the input pixel based on the position information.
[0045] Compared with the prior art, the present invention has the following advantages:
[0046] (1) This application can effectively improve the color deviation at the edge of the curve;
[0047] (2) This application requires little storage space and has a simple computing circuit.
[0048] (3) This application directly performs linear-domain to nonlinear-domain conversion on pixel gain, and the circuit implementation is simple. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a schematic diagram of the compensation system in this embodiment;
[0051] Figure 2This is a schematic diagram of the transition zone;
[0052] Figure 3 This is a magnified schematic diagram of the transition region;
[0053] Figure 4 A schematic diagram showing the storage of internal location information temporary storage unit and internal coefficient temporary storage unit;
[0054] Figure 5 (a) is a schematic diagram of pixel arrangement; Figure 5 (b) is Figure 5 The curve edge color reference system corresponding to (a) in the middle;
[0055] Figure 6 This is a schematic diagram of the pixel arrangement;
[0056] Figure 7 Two different color-shifting reference systems for the curved edges;
[0057] Figure 8 A schematic diagram showing the storage of sub-pixel color shift compensation coefficients;
[0058] Figure 9 Schematic diagrams of three working processes for curve edge color distortion compensation circuits;
[0059] Figure 10 This is a schematic diagram of a fusion computing circuit.
[0060] Figure 11 This is a schematic diagram illustrating the workflow of two different compensation methods;
[0061] Figure 12 (a) is a schematic diagram of the effect before compensation, and (b) is a schematic diagram of the effect after compensation. Detailed Implementation
[0062] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0063] Figure 1 A schematic diagram of the compensation system in this embodiment is shown. Figure 1As shown, the compensation system includes coefficient calculation circuits 10, linear domain to nonlinear domain conversion circuits 60, internal coefficient storage unit 20, internal position information storage unit 30, pixel position judge circuits 50, curve edge color distortion compensation calculation circuits 40, and blending circuits 70.
[0064] The coefficient calculation circuit 10 is connected to the internal coefficient temporary storage unit 20 and the internal position information temporary storage unit 30, respectively.
[0065] The internal coefficient temporary storage unit 20 is also connected to the curve edge color shift compensation calculation circuit 40; the internal position information temporary storage unit 30 is also connected to the pixel position judgment circuit 50; the pixel position judgment circuit 50 is also connected to the internal coefficient temporary storage unit 20 and the curve edge color shift compensation calculation circuit 40 respectively; the curve edge color shift compensation calculation circuit 40 is also connected to the linear domain to nonlinear domain conversion circuit 60; the linear domain to nonlinear domain conversion circuit 60 is also connected to the fusion circuit 70.
[0066] The following is a detailed explanation of each module.
[0067] Coefficient calculation circuit 10
[0068] The coefficient calculation circuit uses a curve formula to calculate the start and end positions of the transition zone for each row of pixels, as well as the coefficients of the pixels within the transition zone. Outside the transition zone are the non-display area and the display area. The display area displays pixel data normally, while the non-display area, because the normal pixels have been cut off, generally cannot display pixel data normally.
[0069] Taking AA hole as an example, such as Figure 2 As shown, a typical AA hole is composed of circles. Figure 3 This shows a magnified view of the fitted curve. For example... Figure 3 As shown, in this embodiment, the area without displayed pixels within the CUP region is defined as Area I (…). Figure 2 The gray area), the display pixel area outside the CUP area that does not intersect with the fitted curve is defined as Area II (the area in gray). Figure 2 The black area), generally, pixels in Area II are filled with black, and the other display pixel areas on the screen are defined as Area III (the black area). Figure 2The white area in the middle, where the area where the fitted curve meets the normally displayed pixels in AreaⅢ is the transition area.
[0070] The transition region typically spans multiple pixels per row, meaning the start and end points of the transition region need to be calculated and saved.
[0071] A better approach is to take the curve equation of a circle as an example, where the circle's cutting radius is r and the center pixel position is (h0, v0). For pixel (h1, v1), if (h1-h0) 2 +(v1-v0) 2 >r 2 If (h1-h0) the pixel is located in the normal display pixel area, then the pixel is within the normal display pixel area. 2 +(v1-v0) 2 <r 2 If (h1-h0) the pixel is located in the non-display area, then the pixel is in the non-display area. 2 +(v1-v0) 2 =r 2 This is the transition zone. Therefore, for each row of pixels, based on the position of the pixel-by-pixel input, the square of the distance between the current pixel and the center pixel of the circle is calculated. If it is greater than the square of the radius distance, the position is a non-display area. If it is less than the square of the radius distance, the position is a normal display pixel area. If it is equal to the square of the radius distance, it is a transition zone pixel.
[0072] To optimize the effect of the transition region, for pixels in the transition region that intersect with the curve, the compensation gain coefficient Gain is determined based on the proportion of the pixel area divided by the curve within a unit pixel.
[0073] It should be noted that the above curve calculation process is not limited to the equation of a circle; it can be any curve calculation formula. The selected curve can be implemented in the circuit according to the established formula. Furthermore, the above curve calculation process can also be implemented in software, storing the final calculation results—that is, the start and end positions of the transition area of each row of pixels, and the gain of each pixel within the transition area—into an external storage unit, such as a read-only memory (ROM), flash memory, one-time programmable memory, etc.
[0074] Preferably, the coefficient calculation circuit 10 in this embodiment can be external memory.
[0075] It should be noted that the coefficient calculation circuit 10 includes, but is not limited to, the implementation method of a circle curve; other formula curve implementation methods or curve approximation methods are also acceptable.
[0076] 60 Coefficient Linear Domain to Nonlinear Domain Conversion Circuit
[0077] The coefficient linear domain to nonlinear domain conversion circuit 60 generally processes pixel data according to whether it is in the nonlinear domain (data and brightness have a nonlinear relationship) or the linear domain (data and brightness have a linear relationship).
[0078] In this embodiment, the gain coefficient of the pixel is converted and calculated in advance, so there is no need to convert the pixel data.
[0079] Taking pixel data processing in the nonlinear domain as an example, the relationship between pixel data and brightness is Lv pixel =Lv max *(Code / Code max ) Gamma Generally, the gain (Gain) of each pixel in the transition region is calculated as the brightness gain, i.e., Lv. out =Lv pixel *Gain=Lv max *(Code / Code max ) Gamma *Gain=Lv max *(Code / Code max *Gain linear ) Gamma Therefore, it is necessary to convert the brightness gain to the nonlinear domain, i.e., Gain. linear =Gain 1 / Gamma The linear-to-nonlinear domain conversion circuit 60 achieves the above function.
[0080] Ideally, for the input brightness gain coefficient, the linear-to-nonlinear domain conversion circuit 60 first passes through a lookup circuit to find the Node binding point position in the stored lookup table for the upper and lower intervals. For evenly divided Nodes, such as 0 to 255, with 16 steps, the NodeAddress can be directly used. low =Coefficientin>>4 and NodeAddress high =(Coefficientin >> 4) + 1 to obtain the corresponding binding point position. For non-uniformly divided nodes, a comparator can be used to find the corresponding upper and lower interval binding point positions. Then, based on the binding point positions, the upper and lower interval binding point data (Node data out) is output, including low and up data. Finally, based on the upper and lower interval binding point data, the interpolation module can use linear interpolation to obtain the non-linear domain gain data. linear =((Gain-Nodein) low ) / (Nodein up -Nodein low ))*(Nodeout up -Nodeout low)+Nodeout low .
[0081] Preferably, the implementation of the linear-to-nonlinear domain conversion circuit 102 is not limited to using lookup table interpolation; it can also be implemented using polynomial approximation calculations, such as Gain... linear =a0 + a1*Gain + a2*Gain 2 +a3*Gain 3 Approximate calculation.
[0082] It should be noted that the linear-to-nonlinear domain conversion circuit 60 in this embodiment includes, but is not limited to, the implementation of a lookup table.
[0083] Pixel position determination circuit 50
[0084] The pixel position determination circuit determines the position based on the input pixel position and outputs the corresponding position information. The position information generally includes the positions of the surrounding m*n pixels. Specifically, m*n is a 3*3 window. The coordinates of the input pixel relative to the screen or the boundary of the curved area are (h0, v0). The output position information includes (h0–1, v0–1), (h0, v0–1), (h0+1, v0–1), (h0–1, v0), (h0, v0), (h0+1, v0), (h0–1, v0+1), (h0, v0+1), (h0+1, v0+1), a total of 9 position information.
[0085] Ideally, based on the pixel's position information, nine coefficients are obtained from the internal coefficient register. If all coordinates are outside the start and end coordinates of each row of pixels, the pixel is determined to be either a forward pixel data display area or a non-display area based on the cutting direction. If any coordinate is in the pixel transition area, the pixel is considered to be in the pixel transition area, and the corresponding gain coefficient needs to be addressed. For the remaining pixels not in the pixel transition area, a general gain coefficient needs to be assigned based on the cutting direction. If the left side of the curve represents a cut pixel, the gain coefficient corresponding to the coordinate to the left of the start coordinate is 0, and the gain coefficient corresponding to the coordinate to the right of the end coordinate is 1. If the right side of the curve represents a cut pixel, the gain coefficient corresponding to the coordinate to the right of the end coordinate is 0, and the gain coefficient corresponding to the coordinate to the left of the start coordinate is 1. Following this principle, a set of 3*3 coefficients corresponding to the pixel position is obtained, including Gain00 to Gain33, i.e.
[0086]
[0087] The above pixel position information output serves as a reference for the fusion calculation circuit.
[0088] Internal coefficient temporary storage unit 20 and internal position information temporary storage unit 30
[0089] The internal coefficient temporary storage unit 20 stores the gain coefficients and sub-pixel color shift compensation coefficients RatioR / G / B of the corresponding transition area start and end position pixels; the internal position information temporary storage unit 30 is used to store the start and end position information of the transition area calculated for each row of pixels.
[0090] Examples of stored data Figure 4 As shown, the internal position information temporary storage unit 30 stores the relative position information of the start and end pixels of the transition area on each row of pixels, and the internal coefficient temporary storage unit 20 stores the gain coefficient Gain from the start position to the end position. The dashed line marking part does not need to be stored. Taking line 0 as an example, the relative position of the start pixel relative to the screen or the boundary of the curve area is 0x1a, and the relative position of the end pixel is 0x2a. The corresponding gain coefficients Gain are 0x0f, 0x3f, ..., 0xf00xff.
[0091] Preferably, the internal coefficient temporary storage unit 20 also stores the sub-pixel color cast compensation coefficients RatioR / G / B, and the storage type is related to the pixel arrangement, such as... Figure 5 The pixel arrangement shown in (a) can be obtained as follows: Figure 5 (b) The color shift reference system for the curved edge can be further used to obtain the overall color shift of the curved edge at different positions on different displays, based on, for example... Figure 6 The pixel arrangement shown can be obtained Figure 7 The two pixel arrangements shown have curved edge color shift reference systems. Subpixels at different positions along the curved edge display differently. Based on the curved edge color shift reference system, the corresponding curved subpixel color shift compensation coefficient can be configured or calculated (e.g., ...). Figure 7 (as shown);
[0092] Furthermore, based on the color cast reference system at the curve edge, the sub-pixel color cast compensation coefficient RatioR / G / B can be several sets of compensation coefficients related to the sub-pixel. Each compensation coefficient set contains several increasing or decreasing sub-pixel color cast compensation coefficients. Taking pixel R on line 0 as an example, the color cast compensation coefficient set for pixel R on line 0 is set to group 0. This coefficient set can be represented as [RatioRs0, RatioRe0]. Figure 8 In (a), the corresponding color cast compensation coefficients are 0x0f and 0x12. RatioRs0 represents the color cast compensation coefficient starting from line 0, and RatioRe0 represents the color cast compensation coefficient ending from line 0. The actual color cast compensation coefficient of each R pixel on line 0 can be calculated based on the relative position relationship of the sub-pixels on line 0.
[0093] Furthermore, based on the curve edge color cast reference system, several transition color cast compensation coefficients can be added between the start and end color cast compensation coefficients to adjust the degree of curve color cast compensation. Taking line0 as an example, for its color cast compensation coefficient group, a transition color cast compensation coefficient RatioRm0 is added between the start and end color cast compensation coefficients. If RatioRm0>RatioRs0 and RatioRm0>RatioRe0, then for different R pixels on line 0, from the start position to the end position, the compensation degree of R pixels gradually increases from RatioRs0 to RatioRm0 and then decreases to RatioRe0.
[0094] Ideally, based on the color cast reference system at the curve edge, the sub-pixel color cast compensation coefficient RatioR / G / B can be several sets of filter coefficients related to the sub-pixel, such as... Figure 8 (b)
[0095] Preferably, the sub-pixel color cast compensation coefficient RatioR / G / B can be any pre-set coefficient or group of coefficients related to edge color cast.
[0096] Preferably, in order to improve the utilization of the temporary storage space, the stored data can be arranged in a compact manner. Generally, the storage unit is a static random access memory (SRAM), dynamic random access memory (DRAM), or implemented by other types of memory.
[0097] Curve edge color distortion compensation calculation circuit 40
[0098] The curve edge color shift compensation calculation circuit 40 calculates the curve edge color shift compensation coefficient based on the pixel position information and the sub-pixel color shift compensation coefficient group in the internal position information temporary storage unit 30 and the internal coefficient temporary storage unit 20.
[0099] A curve edge color distortion compensation calculation circuit in this embodiment is as follows: Figure 9 As shown in (a), based on the color shift reference system at the curve edge, the corresponding sub-pixel color shift compensation coefficient group is obtained by addressing the internal gain coefficient temporary storage unit 20. Based on the display status of sub-pixels at different positions on the curve edge, a comparator can be used to find the compensation coefficients located in the upper and lower intervals. The color shift compensation coefficients of the corresponding sub-pixels are calculated by linear interpolation.
[0100]
[0101] Where Height represents the height of the local curve edge, and Heightdiff represents the height offset of the current sub-pixel curve relative to the curve's starting point.
[0102] Furthermore, the sub-pixel color shift parameter Ratio at different positions can be defined based on the relative position of pixels on the local curve or the trend of curve changes.
[0103] It should be noted that the calculation method of the sub-pixel color shift compensation coefficient in the curve transition area of this embodiment includes, but is not limited to, the linear interpolation calculation based on the position and the stored edge color shift compensation parameters in the memory. Other approximate implementation methods such as calculation based on the curve change trend (such as the curve multi-order derivative) or the relative position of pixels on the curve are also acceptable.
[0104] Preferably, another curve edge color shift compensation calculation circuit in this embodiment is as follows: Figure 9 As shown in (b), based on the color cast reference system at the curve edge, a corresponding filter is selected, and a 3*3 filter is formed by the 9 coefficients of the corresponding sub-pixel R / G / B obtained from the addressing.
[0105]
[0106] Ratio R11 The pixel coefficient corresponding to the current position.
[0107] It should be noted that the phase filter related to the sub-pixel color shift compensation coefficient in this embodiment can be a filter with a lower or higher dimension than 3*3.
[0108] Preferably, another curve edge color shift compensation calculation circuit in this embodiment is as follows: Figure 9 As shown in (c), for different sub-pixels R / G / B, based on the phase information of the input sub-pixels, i.e., whether they are located in odd columns, even columns, odd rows, or even rows, a 3*1 horizontal filter and a vertical filter can be selected to process the gain coefficients in sequence.
[0109] Fusion computing circuit 70
[0110] The fusion computing circuit processes pixel data based on pixel position information and the final pixel gain coefficient calculated above.
[0111] Fusion computing circuits such as Figure 10 As shown, based on the pixel position information, if the pixel is located in the normal display pixel area, the output pixel data equals the input pixel data. If the pixel is located in the edge transition area, the sub-pixel compensation coefficient (Coefficient) is calculated first. cmp,R\G\B ,
[0112] Coefficient cmp,R\G\B =Ratio R\G\B *Gain
[0113] Coefficient cmp,R\G\BThe final gain coefficient Gain is obtained after conversion by a linear or nonlinear domain conversion circuit. final The input pixel data is multiplied by the final gain coefficient to obtain the output pixel data, i.e., Pixel. out =Pixel in *Gain final .
[0114] It should be noted that the calculation process of the sub-pixel compensation coefficient can be completed externally and then stored in the internal coefficient temporary storage unit. In this case, the calculation process of the sub-pixel compensation coefficient can be omitted during the internal calculation process, and the final gain coefficient can be calculated directly.
[0115] Based on the above compensation system, this embodiment also provides a method for compensating for color cast at curve edges, such as... Figure 11 As shown, it includes the following steps:
[0116] The first step is for the pixel position determination circuit 10 to receive the input pixel and calculate the position information of the input pixel;
[0117] The second step involves the fusion computing circuit 70 determining, based on the position information, whether the input pixel is located in the transition region; if not, it directly outputs the data of the input pixel; if so, it jumps to the third step.
[0118] The third step is to calculate the sub-pixel color shift compensation coefficient corresponding to the input pixel by the curve edge color shift compensation circuit 40, and obtain the corresponding gain coefficient.
[0119] The fourth step involves the fusion calculation circuit 70 reading the sub-pixel color cast compensation coefficient and gain coefficient, and then calculating and outputting the sub-pixel compensation coefficient according to the formula.
[0120] Coefficient cmp,R\G\B =Ratio R\G\B *Gain
[0121] Among them, Ratio R\G\B is the sub-pixel color cast compensation coefficient, and Gain is the gain coefficient;
[0122] The fifth step involves the linear-to-nonlinear domain conversion circuit 60 reading the sub-pixel compensation coefficients and converting them to obtain the final gain coefficients.
[0123] In the sixth step, the fusion calculation circuit 70 multiplies the final gain coefficient by the input data and outputs it as the output data.
[0124] Optionally, in the third step, the curve edge color cast compensation circuit 40 calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, including the following steps:
[0125] S3.11, the curve edge color shift compensation circuit 40 reads the sub-pixel color shift compensation coefficient group from the internal coefficient memory;
[0126] S3.12, the curve edge color shift compensation circuit 40 calculates the color shift compensation coefficient of the corresponding sub-pixel based on the sub-pixel color shift compensation coefficient group, the gain group and the position information of the input pixel.
[0127] Optionally, in the third step, the curve edge color cast compensation circuit 40 calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, including the following steps:
[0128] S3.21, the curve edge color shift compensation circuit 40 calculates the phase information of the pixels located in the transition area, and obtains the phase filter from the internal coefficient temporary storage unit based on the phase information.
[0129] S3.22, the curve edge color distortion compensation circuit 40 obtains the gain coefficient from the gain coefficient data based on the position information;
[0130] S3.23, the curve edge color shift compensation circuit 40 calculates the sub-pixel color shift compensation coefficient based on the phase filter and the gain coefficient.
[0131] Optionally, in the third step, the curve edge color cast compensation circuit 40 calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, including the following steps:
[0132] S3.31, the curve edge color shift compensation circuit 40 calculates the phase information of the pixels located in the transition area, and obtains the vertical phase filter and the horizontal phase filter from the internal coefficient temporary storage unit based on the phase information.
[0133] S3.32, the curve edge color distortion compensation circuit 40 calculates the horizontal coefficient based on the position information and the horizontal phase filter;
[0134] S2.33, the curve edge color distortion compensation circuit 40 calculates the vertical coefficient based on the position information and the vertical phase filter;
[0135] S3.34, the curve edge color shift compensation circuit 40 calculates the sub-pixel color shift compensation coefficient based on the horizontal coefficient and the vertical coefficient.
[0136] Optionally, the third step, in which the curve edge color shift compensation circuit 40 obtains the corresponding gain coefficient, is as follows:
[0137] The curve edge color shift compensation circuit 40 reads the gain coefficient array in the internal coefficient memory and obtains the gain data corresponding to the input pixel based on the position information.
[0138] Optionally, the third step, where the curve edge color shift compensation circuit obtains the corresponding gain coefficient, is as follows:
[0139] The curve edge color shift compensation circuit reads the gain coefficient array in the internal coefficient memory and obtains the gain data corresponding to the input pixel based on the position information.
[0140] Preferably, the compensation system of this embodiment can be integrated into the driver chip of the source device, or into the processing chip of the sink device, or even implemented through the underlying software in the sink device; at the same time, it can also be placed after the digital Gamma calculation circuit and perform transition processing based on the pixel's Gamma driving voltage.
[0141] Figure 12 A comparison chart before and after compensation is shown. Figure 12 (a) shows the effect before compensation, and (b) shows the effect after compensation. By comparison, it can be seen that this implementation significantly improves the color cast of the curve edges.
[0142] The terms "equal," "identical," or "equal to" disclosed in this invention must take into account the parameter distribution of the engineering process, with an error distribution within ±30%. "Parallel" two line segments or lines are defined as having an angle of less than or equal to 45 degrees; "perpendicular" two line segments or lines are defined as having an angle within the range of [60, 120] degrees; the definition of "phase misalignment" also requires consideration of the parameter distribution of the engineering process, with an error distribution of the phase misalignment degree within ±30%. Furthermore, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further restrictions, an element defined by the phrase "includes a..." does not preclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0143] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0144] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A display edge color cast compensation system, characterized in that, include: The circuit includes a coefficient calculation circuit, a linear domain to nonlinear domain conversion circuit, an internal coefficient temporary storage unit, an internal position information temporary storage unit, a pixel position judgment circuit, a curve edge color shift compensation circuit, and a fusion circuit. The coefficient calculation circuit is connected to the internal coefficient temporary storage unit and the internal position information temporary storage unit respectively, and is used to calculate the start and end positions of the transition area on each row of pixels, as well as the gain coefficient of the pixels in the transition area. The internal coefficient temporary storage unit is also connected to the curve edge color shift compensation calculation circuit, which is used to obtain and store the gain coefficient and sub-pixel color shift compensation coefficient of the start and end positions of the transition area on each row of pixels, and obtain the gain coefficient group and sub-pixel color shift compensation coefficient group respectively. The internal position information temporary storage unit is also connected to the pixel position judgment circuit, which is used to obtain and store the start and end positions of the transition area on each row of pixels; The pixel position determination circuit is also connected to the internal coefficient temporary storage unit and the curve edge color shift compensation calculation circuit to obtain the position information of the input pixel. The curve edge color shift compensation calculation circuit is also connected to the linear domain to nonlinear domain conversion circuit. It is used to calculate the curve edge color shift compensation coefficient based on the position information of the input pixel and the sub-pixel color shift compensation coefficient group in the internal position register and the internal coefficient register. The linear-to-nonlinear domain conversion circuit is also connected to a fusion circuit for converting between the linear and nonlinear domains. The fusion circuit is used to determine whether the input pixel is in the transition region based on the position information of the input pixel, calculate the sub-pixel compensation coefficient, and process and output the input pixel according to the final gain coefficient. The steps for obtaining the final gain coefficient in the fusion circuit include: S11. The fusion calculation circuit determines whether the input pixel is located in the transition region based on the position information. If not, it directly outputs the data of the input pixel. If so, it calculates the sub-pixel compensation coefficient according to the following formula. Coefficient cmp,R\G\B =Ratio R\G\B *Gain Among them, Ratio R\G\B is the sub-pixel color cast compensation coefficient, and Gain is the gain coefficient; S12, The linear domain to nonlinear domain conversion circuit reads the sub-pixel compensation coefficients and converts them to obtain the final gain coefficients; S13, the fusion circuit reads the final gain coefficient from the linear-to-nonlinear domain conversion circuit.
2. The compensation system as described in claim 1, characterized in that, The coefficient calculation circuit is an external storage circuit used to store the start and end positions of the transition area of each row of pixels, as well as the gain coefficient and sub-pixel color shift compensation coefficient of the pixels in the transition area, to obtain the gain coefficient group and the sub-pixel color shift compensation coefficient group respectively.
3. The compensation system as described in claim 1, characterized in that, The internal coefficient temporary storage unit also stores the phase filter.
4. The compensation system as described in claim 1, characterized in that, The internal coefficient temporary storage unit also stores the vertical phase filter and the horizontal phase filter.
5. A method for compensating for color cast at display edges based on the compensation system described in any one of claims 1-4, characterized in that, Includes the following steps: The first step is for the pixel position determination circuit to receive the input pixel and calculate the position information of the input pixel; The second step involves the fusion computing circuit determining whether the input pixel is located in the transition region based on the position information; if not, it directly outputs the data of the input pixel. If so, proceed to step three; The third step is to calculate the sub-pixel color shift compensation coefficient corresponding to the input pixel and obtain the corresponding gain coefficient. The fourth step involves the fusion calculation circuit reading the sub-pixel color cast compensation coefficient and gain coefficient, and then calculating and outputting the sub-pixel compensation coefficient according to the formula. Coefficient cmp,R\G\B =Ratio R\G\B *Gain Among them, Ratio R\G\B is the sub-pixel color cast compensation coefficient, and Gain is the gain coefficient; The fifth step involves the linear-to-nonlinear domain conversion circuit reading the sub-pixel compensation coefficients and converting them to obtain the final gain coefficients. The sixth step involves the fusion calculation circuit multiplying the final gain coefficient by the input data as the output data and then outputting it.
6. The compensation method as described in claim 5, characterized in that, The third step, where the curve edge color cast compensation circuit calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, includes the following steps: S3.11, the curve edge color shift compensation circuit reads the sub-pixel color shift compensation coefficient group from the internal coefficient memory; S3.12, the curve edge color shift compensation circuit calculates the color shift compensation coefficient of the corresponding sub-pixel based on the sub-pixel color shift compensation coefficient group, the gain group and the position information of the input pixel.
7. The compensation method as described in claim 5, characterized in that, The third step, where the curve edge color cast compensation circuit calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, includes the following steps: S3.21, the curve edge color shift compensation circuit calculates the phase information of the pixels located in the transition area, and obtains the phase filter from the internal coefficient temporary storage unit based on the phase information; S3.22, the curve edge color distortion compensation circuit obtains the gain coefficient from the gain coefficient data based on the position information; S3.23, the curve edge color shift compensation circuit calculates the sub-pixel color shift compensation coefficient based on the phase filter and gain coefficient.
8. The compensation method as described in claim 5, characterized in that: The third step, where the curve edge color cast compensation circuit calculates the sub-pixel color cast compensation coefficient corresponding to the input pixel, includes the following steps: S3.31, the curve edge color shift compensation circuit calculates the phase information of the pixels located in the transition area, and obtains the vertical phase filter and horizontal phase filter from the internal coefficient temporary storage unit based on the phase information. S3.32, the curve edge color distortion compensation circuit calculates the horizontal coefficient based on the position information and the horizontal phase filter; S2.33, the curve edge color distortion compensation circuit calculates the vertical coefficient based on the position information and the vertical phase filter; S3.34, the curve edge color shift compensation circuit calculates the sub-pixel color shift compensation coefficient based on the horizontal and vertical coefficients.
9. The compensation method as described in claim 5, characterized in that, The steps for obtaining the corresponding gain coefficient in the curve edge color shift compensation circuit in the third step are as follows: The curve edge color shift compensation circuit reads the gain coefficient array in the internal coefficient memory and obtains the gain data corresponding to the input pixel based on the position information.
Citation Information
Patent Citations
Special-shaped screen display edge compensation module and display system
CN117995088A
Compensation device and compensation method for bang edge area of OLED display screen
CN118072673A