Display device, image processing method thereof, image processing circuit and chip
By calculating and correcting the weight value of the target pixel point in the display device, the color offset problem when drawing arcs/circles is solved, better image display and visual effects are achieved, and the calculation speed is improved.
Patent Information
- Application Number
- CN202411835366.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-12
AI Technical Summary
In display devices, especially in display panels with circular grooves, color shift problems are prone to occur when drawing arcs/circles, and the prior art is difficult to effectively solve this problem.
By obtaining the RGBG pixel data of the pre-display image with arcs/circles, and calculating the weight value of each target pixel point, the average value of the weight value of the green subpixel and the weight value of the adjacent green subpixels of the red/blue subpixels are respectively used as the weight value of the red/blue subpixels, and the pixel data is corrected to solve the color shift problem.
This method can effectively solve the color shift problem when drawing arcs/circles, significantly improve the display effect and visual effect of the image, reduce the calculation amount and improve the calculation speed.
Smart Images

Figure CN119673080A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display technology, and in particular to a display device and an image processing method thereof, and an image processing circuit and chip. Background Art
[0002] Existing display panels, such as AMOLED (Active Matrix Organic Light Emitting Diode), no longer use the traditional RGB pixel structure, but use Figure 1 In the RGBG pixel structure shown, compared with the RGB pixel structure in which each pixel unit includes three RGB sub-pixels, each pixel unit in the RGBG pixel structure only includes two sub-pixels, RG or BG.
[0003] When displaying a frame of image data, a display panel with an RGBG pixel structure uses the SPR (Sub-Pixel Rendering) algorithm to change the RGB pixel data to RGBG pixel data. The SPR algorithm cleverly removes one of the R / B sub-pixels with lower sensitivity to the human eye and enlarges the remaining one, while the green sub-pixel G maintains its original resolution and size. Subsequently, the rendering algorithm adjusts the larger red sub-pixel R / green sub-pixel B to compensate for the color loss caused by reducing the sub-pixels, so that the RGBG pixel structure maintains the same brightness and visual resolution as the RGB pixel structure.
[0004] In display devices with a round notch, such as a notch screen or a hole-punch screen design, FPS (fingerprint recognition area under the screen), etc., when the display panel with a round notch displays an image, the pattern displayed in the area corresponding to the round notch is a circle, and there will be a gradient area defined by two edge curves at the edge of the circular curve. When processing a circular image, it is necessary to first use a circle drawing algorithm to obtain the weight value of each pixel point in the gradient area, and adjust the RGB pixel data according to the weight value of each pixel point, and then change the RGB pixel data processed by the circle drawing algorithm to RGBG pixel data by the SPR algorithm. However, in the gradient area, due to the physical position distribution characteristics of the RG or BG pixels, if a unified grayscale or weight processing is simply used, color deviation will inevitably occur.
[0005] Therefore, a new display device and image processing method thereof are yet to be proposed to solve the above problems. Summary of the invention
[0006] In view of the above problems, an object of the present invention is to provide a display device and an image processing method thereof and an image processing circuit and chip, so as to solve the color cast problem occurring in the process of drawing an arc / circle.
[0007] According to one aspect of the present invention, there is provided an image processing method for a display device, comprising acquiring RGBG pixel data of a pre-displayed image having an arc / circle; acquiring a weight value for each target pixel; using the weight value for each target pixel as the weight value for a green sub-pixel within the pixel; calculating an average value of the weight values of at least two green sub-pixels adjacent to a red sub-pixel / blue sub-pixel within each target pixel, and using the average value as the weight value for the red sub-pixel / blue sub-pixel; and performing corresponding corrections on the pixel data of each target pixel according to the obtained weight values for the red sub-pixel / blue sub-pixel and the green sub-pixel, wherein the target pixel refers to a pixel located within a gradient region, and the gradient region is a region located near an arc line / circular curve and defined by two edge curves.
[0008] Optionally, the average value is an arithmetic average value or a weighted average value.
[0009] Optionally, obtaining the weight value of each target pixel point includes obtaining a first radius and a second radius, and establishing a Cartesian coordinate system with the center pixel point as the origin to obtain the coordinates of the center of the arc / circle; obtaining a first edge curve according to the center of the arc / circle and the first radius, and obtaining a second edge curve according to the center of the arc / circle and the second radius to obtain the gradient area defined by the first edge curve and the second edge curve; calculating the weight value of each pixel point in the gradient area according to the first radius, the second radius and the coordinates of the center of the arc / circle, wherein the first radius is greater than the second radius.
[0010] Optionally, the calculation of the weight value of each pixel point located in the gradient area according to the first radius, the second radius and the coordinates of the center of the arc / circle includes obtaining a first value related to the first radius and the second radius; calculating a second value corresponding to each target pixel point, the second value being related to the distance between each target pixel point and the center of the circle; multiplying the first value by the second value corresponding to each target pixel point to obtain a third value corresponding to each target pixel point; and shifting the third value corresponding to each target pixel point to obtain a weight value for each target pixel point.
[0011] Optionally, the calculation formula for the weight value of each target pixel is: , Where c=2 m / (r1-r2), z represents the weight value of the target pixel, r1 represents the first radius, r2 represents the second radius, x represents the horizontal coordinate of the target pixel, y represents the vertical coordinate of the target pixel, x0 represents the horizontal coordinate of the center of the circle, y0 represents the vertical coordinate of the center of the circle, m is a preset value related to the accuracy, >>m represents a right shift of m bits, and the value of c is pre-stored in a register; or , Where c=2 m / [2*r2*n+n 2 ], z represents the weight value of the target pixel, r1 represents the first radius, r2 represents the second radius, x represents the horizontal coordinate of the target pixel, y represents the vertical coordinate of the target pixel, x0 represents the horizontal coordinate of the center of the circle, y0 represents the vertical coordinate of the center of the circle, n represents the difference between r1 and r2, m is a pre-set value related to the accuracy, >>m represents a right shift of m bits, and the value of c is pre-stored in the register.
[0012] According to the second aspect of the present invention, there is also provided an image processing circuit including a circle drawing circuit, wherein the circle drawing circuit includes a weight value calculation module for calculating the weight value of each target pixel; a color deviation compensation module for acquiring RGBG pixel data of a pre-displayed image having an arc / circle and the weight value of each target pixel, and using the weight value of each target pixel as the weight value of a green sub-pixel within the pixel, and calculating the average value of the weight values of at least two green sub-pixels adjacent to the red sub-pixel / blue sub-pixel within each target pixel, and using the average value as the weight value of the red sub-pixel / blue sub-pixel; and performing corresponding corrections on the pixel data of each target pixel according to the obtained weight values of the red sub-pixel / blue sub-pixel and the green sub-pixel, wherein the target pixel refers to a pixel located within a gradient area, and the gradient area is an area located near an arc line / circular curve and defined by two edge curves.
[0013] Optionally, the image processing circuit further includes a conversion circuit connected to the color deviation compensation module, for converting RGB pixel data into RGBG pixel data.
[0014] Optionally, the weight value calculation module includes a register for storing a first radius, a second radius, and a first numerical value related to the first radius and the second radius; a calculation unit for establishing a Cartesian coordinate system with the center pixel point as the origin to obtain the coordinates of the center of the arc / circle, and obtain the target pixel point based on the center of the circle, the first radius and the second radius, and calculate the second numerical value corresponding to each target pixel point, wherein the second numerical value is related to the distance between the target pixel point and the center of the circle; a multiplier for multiplying the first numerical value by the second numerical value corresponding to each target pixel point to obtain a third numerical value corresponding to each target pixel point; an output unit for performing a shift operation on the third numerical value corresponding to each target pixel point to obtain the weight value of each target pixel point, and outputting the weight value of each target pixel point.
[0015] According to a third aspect of the present invention, there is provided a chip comprising the image processing circuit as described above.
[0016] According to a fourth aspect of the present invention, there is provided a display device comprising the chip as described above.
[0017] The display device and image processing method and image processing circuit and chip provided by the present invention calculate the weight value of the target pixel based on the RGBG pixel data, which reduces the amount of calculation by one third compared with the prior art that calculates the weight value of the target pixel based on the RGB pixel data, and can improve the speed of calculating the weight value of the target pixel. In addition, after obtaining the weight value of the target pixel, the weight value of each target pixel is used as the weight value of the green sub-pixel in the target pixel, and the average value of the weight values of at least two green sub-pixels adjacent to the red sub-pixel / blue sub-pixel in each target pixel is used as the weight value of the red sub-pixel / blue sub-pixel, and then the pixel data of each target pixel is corrected accordingly according to the obtained weight values of the red sub-pixel / blue sub-pixel and the green sub-pixel, which can solve the color deviation problem in the process of drawing the arc / circle, and greatly improve the image display effect and visual effect.
[0018] In a preferred embodiment, a multiplication operation is used to replace a division operation in the weight value calculation formula of the target pixel point, which can effectively reduce the chip area, reduce power consumption, and improve computing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which: Figure 1 A schematic structural diagram of an RGBG pixel structure is shown; Figure 2A flowchart of an image processing method for a display device according to an embodiment of the present invention is shown; Figure 3 A flowchart of a method for calculating a weight value of a target pixel point according to an embodiment of the present invention is shown; Figure 4 A schematic diagram showing a pre-display image according to an embodiment of the present invention is shown; Figure 5 A schematic diagram showing the relationship between target pixel points and weight values obtained by processing with two different algorithms is shown; Figure 6 It shows that two display images are obtained by processing with two different algorithms; Figure 7 A schematic diagram showing the relationship between target pixel points and weight values obtained by processing with two different algorithms according to an embodiment of the present invention; Figure 8 A schematic diagram of an image processing circuit according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0020] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements or modules are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.
[0021] It should be understood that in the following description, a "circuit" may include a single or multiple combined hardware circuits, programmable circuits, state machine circuits, and / or elements capable of storing instructions executed by programmable circuits. When an element or circuit is said to be "connected to" another element or an element or circuit is said to be "connected between" two nodes, it may be directly coupled or connected to another element or there may be an intermediate element, and the connection between the elements may be physical, logical, or a combination thereof. Conversely, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.
[0022] At the same time, certain words are used in this patent specification and claims to refer to specific components. It should be understood by those skilled in the art that hardware manufacturers may use different terms to refer to the same component. This patent specification and claims do not use differences in names as a way to distinguish components, but rather use differences in components' functions as the criteria for distinction.
[0023] In addition, it should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the statement "comprise one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0024] Figure 2 A flow chart of an image processing method for a display device according to an embodiment of the present invention is shown.
[0025] The image processing method of the display device provided in the embodiment of the present invention is applied to a display panel with a circular / arc-shaped groove and a circular / arc-shaped screen, such as a notch screen or a hole-punch screen design of an Apple device, an FPS (fingerprint recognition area under the screen), a circular display watch, etc. For example, the display panel adopts an RGBG pixel structure. The image processing method includes steps S01-S05.
[0026] In step S01: RGBG pixel data of a pre-display image having an arc / circle is obtained.
[0027] Among them, the RGBG pixel data corresponds to each pixel in the RGBG pixel structure one by one. The pixel arrangement of the RGBG pixel structure is as follows: Figure 1 As shown, a solid line frame represents a pixel, and each pixel includes two sub-pixels GR / GB, G represents a green sub-pixel, R represents a red sub-pixel, and B represents a blue sub-pixel. For example, the RGB pixel data obtained from the application processor AP (Application Processor) can be converted into RGBG pixel data using a conversion circuit, or the RGBG pixel data can be directly obtained from the application processor AP.
[0028] The conversion circuit, for example, uses an existing SPR algorithm to convert RGB pixel data into RGBG pixel data. After the conversion is completed, the conversion circuit may not perform the final fine adjustment of the red sub-pixel R / blue sub-pixel B.
[0029] In step S02: the weight value of each target pixel is obtained.
[0030] The target pixel point refers to a pixel point located in a gradient region, and the gradient region is a region located near an arc line / circular curve and defined by two edge curves.
[0031] In step S03: the weight value of each target pixel is used as the weight value of the green sub-pixel G in the pixel.
[0032] In step S04: the average value of the weight values of at least two green sub-pixels G adjacent to the red sub-pixel R / blue sub-pixel B in each target pixel is calculated, and the average value is used as the weight value of the red sub-pixel R / blue sub-pixel B.
[0033] The average value may be an arithmetic average value or a weighted average value.
[0034] Preferably, the number of the at least two green sub-pixels G is four. Figure 1 Taking the red sub-pixel R in the dotted box as an example, the weight value of the red sub-pixel R is the average value of the four green sub-pixels G in the dotted box.
[0035] In step S05 , the pixel data of each target pixel is corrected accordingly according to the obtained weight values of the red sub-pixel R / blue sub-pixel B and green sub-pixel G.
[0036] The correction of the pixel data of each target pixel includes adjusting the color, brightness or applying a blur algorithm.
[0037] Figure 3 A flow chart of a method for calculating a weight value of a target pixel according to an embodiment of the present invention is shown.
[0038] See also Figure 3 , the calculation method of the target pixel weight value includes:
[0039] Step S11: Obtain a first radius r1 and a second radius r2, and establish a Cartesian coordinate system with the central pixel point as the origin to obtain the center coordinates (x0, y0) of the arc / circle.
[0040] Wherein, the first radius r1 is greater than the second radius r2. For example, the first radius r1 can be equal to the radius r of the arc / circle, or the first radius r1 can be set to be slightly smaller than or slightly larger than the radius r of the arc / circle. For example, the second radius r2 is the difference between the first radius r1 and a preset value n. The preset value n can be a fixed value, or it can be the product of the first radius r1 and a fixed coefficient a, 0<a<1.
[0041] Step S12: Obtain a first edge curve according to the center of the arc / circle and the first radius r1, and obtain a second edge curve according to the center of the arc / circle and the second radius r2, so as to obtain a gradual change area defined by the first edge curve and the second edge curve.
[0042] When the preview image has an arc, the two endpoints of the first edge curve and the second edge curve are respectively on the line connecting the two endpoints of the arc and the center of the circle. When the first radius r1 is equal to the radius r of the arc / circle, the first edge curve is an arc line / circular curve.
[0043] In step S12, an inner region located inside the second edge curve and an outer region located outside the first edge curve may also be obtained according to the first edge curve and the second edge curve. Figure 4 , taking the case where the pre-displayed image has a circle as an example, the area corresponding to the stripe pattern is the gradient area, the area corresponding to the dot pattern is the inner area, and the remaining area is the outer area.
[0044] Step S13: Calculate the weight value of each pixel point in the gradient area according to the first radius r1, the second radius r2 and the center coordinates (x0, y0) of the arc / circle.
[0045] Specifically, the calculation formula for the weight value of the target pixel is: (1), Among them, y represents the weight value of the target pixel, r1 represents the first radius, r2 represents the second radius, and d represents the distance between the target pixel and the center of the circle.
[0046] It can be seen from formula (1) that in the gradient area, the closer the target pixel is to the second edge curve, the smaller its weight value is.
[0047] Furthermore, in step S13 , the weight values of the pixels located in the inner area may be set to 0 (black), and the weight values of the pixels located in the outer area may be set to 1 (white).
[0048] Since the calculation formula of the distance d between any target pixel point (x, y) and its center (x0, y0) is: d= (2).
[0049] Therefore, the weight value calculation formula of the target pixel can also be expressed as: (3).
[0050] Since the calculation of formula (3) involves a square root operation, which is indeed resource-consuming in hardware circuits, whether using the IP core provided by an EDA tool company or designing it yourself (including a lookup table method or a binary approximation method, etc.), it will increase the complexity and power consumption of the circuit. Based on this, the inventor of the present application has improved the above algorithm to avoid the existence of a square root circuit. The improved method for calculating the weight value of the target pixel point is: (4)
[0051] From this it follows that: (5)
[0052] Among them, r1=r2+n.
[0053] pass Figure 5 and Figure 6 It can be seen that the accuracy of calculating the weight value of the target pixel using the open method, i.e., formula (3), and the non-open method, i.e., formula (5), is basically the same, and the image display effect is also basically the same.
[0054] However, although formula (5) avoids the square root operation, a divider is required. Since the square calculation is involved, the bit width of the divider becomes larger. Therefore, the chip area and power consumption are not effectively improved.
[0055] The inventor of this application discovered that the display panel of the same product has the same shape. Therefore, when displaying an image, the center of the arc / circle, the radius r of the arc / circle, the first radius r1 of the first edge curve, and the second radius r2 of the second edge curve are all fixed values and can be stored in a register in advance.
[0056] Of course, in order to adapt to different products, a corresponding algorithm can be set to calculate the corresponding first radius r1 and second radius r2 according to the radius r of the arc / circle when the product leaves the factory and store them in the register. It is also possible to store multiple groups of circles / arcs of different sizes and their corresponding first radius r1 and second radius r2 in the register, and select the corresponding first radius r1 and second radius r2 according to the radius r of the circle / arc when the product leaves the factory.
[0057] Based on this, the applicant of the present application has improved the above algorithm by replacing the division operation with multiplication operation to optimize the algorithm performance, and changing the original variables to register settings to reduce intermediate operations.
[0058] In the embodiment of the present invention, calculating the weight value of each target pixel point in the gradient area according to the first radius r1, the second radius r2 and the center coordinates (x0, y0) of the arc / circle includes:
[0059] Acquire a first value related to the first radius r1 and the second radius r2;
[0060] Calculate a second value corresponding to each target pixel, where the second value is related to a distance d between each target pixel and the center of the circle;
[0061] Multiplying the first value by the second value corresponding to each target pixel to obtain a third value corresponding to each target pixel;
[0062] A shift operation is performed on the third value corresponding to each target pixel to obtain a weight value of each target pixel.
[0063] The weight calculation formula for each target pixel can be rewritten as:
[0064] z=(a*c)>>m,
[0065] Among them, z represents the weight value of the target pixel, c represents the first value, c=2m / b, a represents the second value, a*c represents the third value, >> represents a shift operation, >>m means right shift by m bits, and m is a pre-set value related to accuracy.
[0066] That is, if the division operation in formula (3) is replaced by multiplication operation, we have: (6).
[0067] At this time, b=r1-r2, .
[0068] If the division operation in formula (5) is replaced by multiplication operation, we have: (7).
[0069] At this time, b=(2*n*r2+n2), a=(x-x0)2+(y-y0)2-r22.
[0070] For formula (3) and formula (5), the value of b is fixed, so the value of c can be stored in a register in advance to reduce intermediate operations.
[0071] Optionally, the precision of the weight value of the target pixel point is adjustable. For example, a register stores a plurality of c values corresponding to different m values, and when in use, the corresponding c value can be selected according to the required precision.
[0072] The following table is a comparison of the areas occupied by the circle drawing circuit and its internal circuit in the chip when different methods are used to calculate the weight value of the target pixel point.
[0073] Prescription Non-square root Square root multiplication Non-square root multiplication Total area (um2) 2316 2408 1967 2065 Square root (sqrt) 348 0 348 0 Divider 579 979 0 0 Multiplier (instead of divider) 0 0 268 636 other 1389 1429 1351 1429
[0074] Among them, square root refers to the calculation using formula (3), non-square root refers to the calculation using formula (5), square root multiplication refers to the calculation using formula (6), and non-square root multiplication refers to the calculation using formula (7).
[0075] From the above table, we can see that in the circle drawing circuit, using multiplication operation instead of division operation can effectively reduce the area occupied by the circle drawing circuit in the chip, and because the power consumption of the multiplier is less than that of the divider, the power consumption of the circle drawing circuit can also be reduced. Furthermore, the operation delay problem that may be caused by the divider can be avoided, thereby improving the operation efficiency.
[0076] The display device and image processing method provided by the embodiment of the present invention calculate the weight value of the target pixel based on the RGBG pixel data, which reduces the amount of calculation by one third compared with the prior art that calculates the weight value of the target pixel based on the RGB pixel data, and can improve the speed of calculating the weight value of the target pixel. In addition, after obtaining the weight value of the target pixel, the weight value of each target pixel is used as the weight value of the green sub-pixel G in the target pixel, and the average value of the weight values of at least two green sub-pixels G adjacent to the red sub-pixel R / blue sub-pixel B in each target pixel is used as the weight value of the red sub-pixel R / blue sub-pixel B, and then the pixel data of each target pixel is corrected accordingly according to the obtained weight values of the red sub-pixel R / blue sub-pixel B and the green sub-pixel G, which can solve the color deviation problem in the process of drawing an arc / circle, and greatly improve the display effect and visual effect of the image.
[0077] See also Figure 8 The present invention also provides an image processing circuit, including a conversion circuit 100 and a circle drawing circuit 200. The conversion circuit 100 is used to convert RGB pixel data into RGBG pixel data. The circle drawing circuit 200 is used to draw a circle / arc in a pre-displayed image. The circle drawing circuit 200 includes a weight value calculation module 210 and a color deviation compensation module 220.
[0078] The weight value calculation module 210 is used to calculate the weight value of the target pixel. The color deviation compensation module 220 is used to obtain the RGBG pixel data of the pre-displayed image with an arc / circle and the weight value of each target pixel, and use the weight value of each target pixel as the weight value of the green sub-pixel G in the target pixel, and use the average of the weight values of at least two green sub-pixels G adjacent to the red sub-pixel R / blue sub-pixel B in each target pixel as the weight value of the red sub-pixel R / blue sub-pixel B, and then perform corresponding corrections on the pixel data of each target pixel according to the obtained weight values of the red sub-pixel R / blue sub-pixel B and the green sub-pixel G to achieve color deviation compensation.
[0079] The weight value calculation module 210 includes: a register for storing a first radius, a second radius, and a first value related to the first radius and the second radius; a calculation unit for establishing a Cartesian coordinate system with a central pixel point as the origin to obtain the coordinates of the center of the arc / circle, and obtain a target pixel point based on the center of the circle, the first radius, and the second radius, and calculate a second value corresponding to each target pixel point, wherein the second value is related to the distance between the target pixel point and the center of the circle; a multiplier for multiplying the first value by the second value corresponding to each target pixel point to obtain a third value corresponding to each target pixel point; an output unit for performing a shift operation on the third value corresponding to each target pixel point to obtain a weight value of each target pixel point, and outputting the weight value of each target pixel point.
[0080] Furthermore, the present invention also provides a chip, comprising the above-mentioned image processing circuit.
[0081] Furthermore, the present invention also provides a display device, comprising the chip described above.
[0082] According to the embodiments of the present invention, as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to specific embodiments. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The scope of protection of the present invention shall be based on the scope defined by the claims of the present invention and their equivalents.
Claims
1. An image processing method for a display device, comprising: Get RGBG pixel data of a pre-displayed image with an arc / circle; Get the weight value of each target pixel; The weight value of each target pixel is used as the weight value of the green sub-pixel in the pixel; Calculate the average value of the weight values of at least two green sub-pixels adjacent to the red sub-pixel / blue sub-pixel in each target pixel, and use the average value as the weight value of the red sub-pixel / blue sub-pixel; According to the obtained weight values of red sub-pixel / blue sub-pixel and green sub-pixel, the pixel data of each target pixel is corrected accordingly. The target pixel point refers to a pixel point located in a gradient region, and the gradient region is a region located near an arc line / circular curve and defined by two edge curves.
2. The image processing method according to claim 1, wherein: The average value is an arithmetic average value or a weighted average value.
3. The image processing method according to claim 1, wherein: The step of obtaining the weight value of each target pixel includes: Obtain a first radius and a second radius, and establish a Cartesian coordinate system with the central pixel point as the origin to obtain the coordinates of the center of the arc / circle; Obtaining a first edge curve according to the center of the arc / circle and the first radius, and obtaining a second edge curve according to the center of the arc / circle and the second radius, so as to obtain the gradient area defined by the first edge curve and the second edge curve; The weight value of each pixel point in the gradient area is calculated according to the first radius, the second radius and the coordinates of the center of the arc / circle. Wherein, the first radius is greater than the second radius.
4. The image processing method according to claim 3, wherein: Calculating the weight value of each pixel point in the gradient area according to the first radius, the second radius and the center coordinates of the arc / circle includes: Acquire a first value related to the first radius and the second radius; Calculate a second value corresponding to each target pixel, where the second value is related to the distance between each target pixel and the center of the circle; Multiplying the first value by the second value corresponding to each target pixel to obtain a third value corresponding to each target pixel; A shift operation is performed on the third value corresponding to each target pixel to obtain a weight value of each target pixel.
5. The image processing method according to claim 4, wherein: The calculation formula of the weight value of each target pixel is: Where c=2 m / (r1-r2), z represents the weight value of the target pixel, r1 represents the first radius, r2 represents the second radius, x represents the horizontal coordinate of the target pixel, y represents the vertical coordinate of the target pixel, x0 represents the horizontal coordinate of the center of the circle, y0 represents the vertical coordinate of the center of the circle, m is a preset value related to the accuracy, >>m represents a right shift of m bits, and the value of c is pre-stored in a register; or Where c=2 m / [2*r2*n+n 2 ], z represents the weight value of the target pixel, r1 represents the first radius, r2 represents the second radius, x represents the horizontal coordinate of the target pixel, y represents the vertical coordinate of the target pixel, x0 represents the horizontal coordinate of the center of the circle, y0 represents the vertical coordinate of the center of the circle, n represents the difference between r1 and r2, m is a pre-set value related to the accuracy, >>m represents a right shift of m bits, and the value of c is pre-stored in the register.
6. An image processing circuit, comprising a circle drawing circuit, the circle drawing circuit comprising: A weight value calculation module is used to calculate the weight value of each target pixel; a color deviation compensation module, configured to obtain RGBG pixel data of a pre-displayed image having an arc / circle and a weight value of each target pixel, and use the weight value of each target pixel as the weight value of a green sub-pixel in the pixel, and calculate an average value of weight values of at least two green sub-pixels adjacent to a red sub-pixel / blue sub-pixel in each target pixel, and use the average value as the weight value of the red sub-pixel / blue sub-pixel; And according to the obtained weight values of the red sub-pixel / blue sub-pixel and green sub-pixel, the pixel data of each target pixel point is corrected accordingly. The target pixel point refers to a pixel point located in a gradient region, and the gradient region is a region located near an arc line / circular curve and defined by two edge curves.
7. The image processing circuit according to claim 6, further comprising: The conversion circuit is connected to the color deviation compensation module and is used to convert the RGB pixel data into RGBG pixel data.
8. The image processing circuit according to claim 6, wherein: The weight value calculation module includes: A register, used to store a first radius, a second radius, and a first value related to the first radius and the second radius; a calculation unit, which establishes a Cartesian coordinate system with a central pixel point as an origin to obtain the coordinates of the center of the arc / circle, obtains a target pixel point according to the center of the circle, the first radius, and the second radius, and calculates a second value corresponding to each target pixel point, wherein the second value is related to the distance between the target pixel point and the center of the circle; a multiplier, configured to multiply the first value by the second value corresponding to each target pixel to obtain a third value corresponding to each target pixel; The output unit is used to perform a shift operation on the third value corresponding to each target pixel to obtain a weight value of each target pixel, and output the weight value of each target pixel.
9. A chip, comprising the image processing circuit according to any one of claims 6 to 8.
10. A display device comprising the chip according to claim 9.
Citation Information
Patent Citations
Image processing method and display driving device
CN110930919A
Display control method and device of display panel and display equipment
CN115249460A
Curve edge gradient processing method and related method and device
CN117252894A
Compensation device and compensation method for bang edge area of OLED display screen
CN118072673A
Method for removing interpolation image color edge development
CN1913577A