Image compensation device, image compensation method, display driver, and display
By symmetrically mapping and compensating the pixel coordinates of the curved screen boundary area, the color shift problem at the curved screen boundary is solved, the display performance is improved, and the requirements for real-time processing and resource efficiency are met.
Patent Information
- Application Number
- CN202410809607.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-03
AI Technical Summary
While curved screens improve user experience, they also suffer from poor optical uniformity. In particular, the curved portion at the edge of the screen has color casts, which affects display performance.
By symmetrically mapping the row coordinates and column coordinates of pixels in the boundary area of the curved screen, the compensation coefficient is determined, and the target pixel value is calculated based on the original pixel value to achieve compensation for color shift, thereby improving display performance.
While meeting the real-time processing speed and consuming less hardware resources, it can effectively improve the color shift phenomenon of the curved screen, improve the display performance, and solve the boundary color shift problem of the curved screen.
Smart Images

Figure CN118587997A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to an image compensation device, an image compensation method, a display driver and a display. Background Art
[0002] With the continuous development of science and technology, curved screens are widely used in various electronic devices, such as smart phones, smart watches, etc. Curved screens have improved the user experience in many aspects. For example, when used in mobile phones, the overall curved design of the curved screen is conducive to grip, fits better with the arc of the palm, reduces the distance that the thumb touches the screen when operating with one hand, and helps to improve the experience of horizontal cross-screen operation on large-size screens, etc.
[0003] However, while curved screens improve user experience, they also have problems such as poor optical uniformity. In particular, the curved portion at the edge of the screen often has a certain color cast. Summary of the invention
[0004] In a first aspect, an embodiment of the present disclosure provides an image compensation device, which is applied to an electronic device with a curved screen. The image compensation device includes:
[0005] a coordinate determination unit, configured to determine a row coordinate and a column coordinate of each of the at least one pixel;
[0006] a compensation coefficient determination unit, configured to symmetrically map the row coordinates and the column coordinates of the pixel located in the boundary area of the curved screen to obtain the target row coordinates and the target column coordinates of the pixel; and determine the compensation coefficient of the pixel according to the target row coordinates or the target column coordinates of the pixel;
[0007] The compensation unit is used to determine a target pixel value of the pixel according to the compensation coefficient of the pixel and the original pixel value of the pixel.
[0008] In a second aspect, an embodiment of the present disclosure provides an image compensation method, which is applied to an electronic device having a curved screen. The image compensation method includes:
[0009] determining row coordinates and column coordinates of each of said pixels in at least one pixel;
[0010] Performing symmetrical mapping on the row coordinates of the pixel to obtain the target row coordinates of the pixel; and performing symmetrical mapping on the column coordinates of the pixel to obtain the target column coordinates of the pixel;
[0011] Determining whether the pixel is located in a boundary area of the curved screen;
[0012] When the pixel is located in the boundary area, determining a compensation coefficient of the pixel according to the target row coordinate or the target column coordinate of the pixel;
[0013] A target pixel value of the pixel is determined according to the compensation coefficient of the pixel and the original pixel value of the pixel.
[0014] In a third aspect, an embodiment of the present disclosure provides a display driver, comprising the image compensation device as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a display comprising the image compensation device as described in the first aspect.
[0016] In a fifth aspect, an embodiment of the present disclosure provides another image compensation device, including a memory and a processor, wherein:
[0017] The memory is used to store a computer program that can be run on the processor;
[0018] The processor is used to execute the image compensation method as described in the second aspect when running the computer program.
[0019] In a sixth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by at least one processor, the image compensation method described in the second aspect is implemented.
[0020] In a seventh aspect, an embodiment of the present disclosure provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by at least one processor, the image compensation method as described in the second aspect is implemented.
[0021] In an eighth aspect, an embodiment of the present disclosure provides an electronic device, comprising the image compensation device as described in the first aspect or the fifth aspect, or comprising the display driver as described in the third aspect, or comprising the display as described in the fourth aspect.
[0022] In the disclosed embodiment, multi-channel image transmission (i.e., at least one pixel is scanned and transmitted simultaneously) can be realized. On the basis of multi-channel image transmission, the row coordinates and column coordinates of the pixels are symmetrically mapped, and the pixels on the symmetrical sides of the curved screen are mapped to the same pixel. The same compensation coefficient is adopted for the symmetrical pixels, which not only speeds up the image transmission, but also saves the time required for calculating the compensation coefficient; the compensation coefficient is calculated for the boundary area to compensate for the color deviation, and the image result after real-time boundary compensation is output, which can solve the problem of color deviation at the boundary of the curved screen when presented on the screen. Finally, the color deviation phenomenon of the curved screen can be improved while meeting the real-time processing rate and less hardware resource occupation, and the display performance of the curved screen can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a flow chart of an image compensation method provided by an embodiment of the present disclosure;
[0024] Figure 2 A schematic diagram of pixel distribution of an image provided by an embodiment of the present disclosure;
[0025] Figure 3 A signal timing diagram provided in an embodiment of the present disclosure Figure 1 ;
[0026] Figure 4 A schematic diagram of the area division of a curved screen provided in an embodiment of the present disclosure Figure 1 ;
[0027] Figure 5 A signal timing diagram provided for an embodiment of the present disclosure Figure 2 ;
[0028] Figure 6 A schematic diagram of the area division of a curved screen provided in an embodiment of the present disclosure Figure 2 ;
[0029] Figure 7 A signal timing diagram provided in an embodiment of the present disclosure Figure 3 ;
[0030] Figure 8 A schematic diagram of the structure of an image compensation device provided in an embodiment of the present disclosure Figure 1 ;
[0031] Fig. 9 A schematic diagram of the structure of an image compensation device provided in an embodiment of the present disclosure Figure 2 ;
[0032] Fig.10 A schematic diagram of the structure of an image compensation device provided in an embodiment of the present disclosure Figure 3 ;
[0033] Fig.11 A schematic diagram of the structure of a display driver provided by an embodiment of the present disclosure;
[0034] Fig.12 A schematic diagram of the structure of a display provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It is understood that the specific embodiments described herein are only used to explain the relevant disclosure, rather than to limit the disclosure. It should also be noted that, for the convenience of description, only the parts related to the relevant disclosure are shown in the drawings.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0037] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0038] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present disclosure are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.
[0039] For curved screens, the curved part often has a color deviation problem. Based on this, the embodiment of the present disclosure provides an image compensation method applied to an electronic device with a curved screen, the method comprising: determining the row coordinates and column coordinates of each pixel in at least one pixel; symmetrically mapping the row coordinates of the pixel to obtain the target row coordinates of the pixel; and symmetrically mapping the column coordinates of the pixel to obtain the target column coordinates of the pixel; determining whether the pixel is located in the boundary area of the curved screen; if the pixel is located in the boundary area, determining the compensation coefficient of the pixel according to the target row coordinate or the target column coordinate of the pixel; determining the target pixel value of the pixel according to the compensation coefficient of the pixel and the original pixel value of the pixel.
[0040] In this way, the disclosed embodiment can realize multi-channel image transmission (that is, the row coordinates and column coordinates of multiple pixels in a row of pixels can be obtained by multiple channels at the same time, and at the same time, the method of obtaining the row coordinates and column coordinates of only one pixel in a single channel can still be well applied). On the basis of multi-channel image transmission, the row coordinates and column coordinates of the pixels are symmetrically mapped, and the pixels on the symmetrical sides of the curved screen are mapped to the same pixel. The same compensation coefficient is used for the symmetrical pixels, which not only speeds up the image transmission, but also saves the time required for calculating the compensation coefficient; the compensation coefficient is calculated for the boundary area to compensate for the color deviation, and the image result after real-time boundary compensation is output, which can solve the problem of color deviation at the boundary of the curved screen when presented on the screen. Finally, the color deviation phenomenon of the curved screen can be improved while meeting the real-time processing rate and less hardware resource occupation, and the display performance of the curved screen can be improved.
[0041] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0042] In one embodiment of the present disclosure, see Figure 1 , which shows a flow chart of an image compensation method provided by an embodiment of the present disclosure. Figure 1 As shown, the method may include:
[0043] S101: Determine the row coordinate and column coordinate of each pixel in at least one pixel.
[0044] It should be noted that the image compensation method provided in the embodiment of the present disclosure is applied to an image compensation device or an electronic device integrated with the device, and the electronic device has a curved screen. For example, a smart phone, a tablet computer, a laptop computer, a smart watch, etc. Based on the image compensation method, a certain degree of color compensation is performed on the pixels located in the boundary area of the curved screen, which can improve the color cast phenomenon in the boundary area of the curved screen.
[0045] It should also be noted that, in the embodiment of the present disclosure, the row coordinates of a pixel indicate the row or the number of a frame image in which the pixel is located, and the column coordinates of a pixel indicate the column or the number of a frame image in which the pixel is located.
[0046] It should also be noted that the embodiments of the present disclosure can be applied to real-time image / video transmission of at least one channel transmission (especially multi-pixel channel transmission). Specifically, when transmitting images or videos, a frame is transmitted in a line-by-line scanning manner. Since the transmission speed is very fast, the human eye cannot distinguish the time interval, so what is presented is a continuous and complete picture. Here, multi-pixel channel transmission (i.e., multi-channel transmission) means: during the transmission process, multiple pixels in a row of pixels are scanned at a time and transmitted in parallel.
[0047] For example, see Figure 2, which shows a schematic diagram of pixel distribution of an image provided by an embodiment of the present disclosure. Figure 2 As shown, it is assumed that the resolution of the image is 1080×1920, that is, one row of the image contains 1080 pixels (row resolution is 1080), and one column of the image contains 1920 pixels (column resolution is 1920). In the embodiment of the present disclosure, it is taken as an example that both the row coordinates and the column coordinates are counted from 0 plus 1, and no special explanation is given later. It can be understood that if the counting starts from 1 or other numbers, the same implementation principle is also used.
[0048] Assume that the image is transmitted in 4 channels in parallel, such as Figure 2 As shown, in the first scan transmission, since the first 4 pixels of the first row are transmitted ( Figure 2 ), so the row coordinates of the four pixels are all 0, and because it is a 4-channel parallel transmission, the column coordinates of the four pixels are 0, 1, 2, and 3 respectively; similarly, in the second scan transmission, since the 5th to 8th pixels of the first row are scanned, the row coordinate is still 0, and because it is a 4-channel parallel transmission, the column coordinates of the four pixels are 4, 5, 6, and 7 respectively; ...; and so on; in the 240th scan transmission, since the 1077th to 1080th pixels of the first row are scanned, the row coordinate is still 0, and because it is a 4-channel parallel transmission, the column coordinates of the four pixels are 1076, 1077, 1078, and 1079 respectively. At this point, the scanning of the first row of the frame image is completed, and each subsequent row and each frame image is scanned and transmitted in the same way.
[0049] That is to say, for step S101, the number of pixels transmitted in parallel by multiple channels is recorded as the first number, that is, the number of at least one pixel is the first number, and the first number of pixels are continuous pixels in a row of the image (such as the 1st to 4th pixels in the 1st row).
[0050] In some embodiments, the row coordinates and column coordinates of the pixels may be determined by counting. Therefore, determining the row coordinates and column coordinates of each pixel in at least one pixel may include:
[0051] Receive a field synchronization signal and a pixel effective signal; wherein the field synchronization signal is effective within the scanning time of a frame of image, and the pixel effective signal is effective within the scanning time of a row of pixels;
[0052] Row counts are performed according to the field synchronization signal and the pixel effective signal to determine the row coordinates of each pixel; and column counts are performed according to the pixel effective signal to determine the column coordinates of each pixel; wherein the row coordinates of the first number of pixels are the same and the column coordinates are different.
[0053] It should be noted that see Figure 3, which shows a signal timing diagram provided by an embodiment of the present disclosure. Among them, i_vs represents a field synchronization signal, i_de represents a pixel effective signal; i_cnt_col1 to i_cnt_col4 represent four parallel column coordinates, i_cnt_row represents a row coordinate, and clk is a system clock.
[0054] like Figure 3 As shown, assuming that the field synchronization signal i_vs and the pixel effective signal i_de are both high-level (or recorded as the first level) valid signals, then when the field synchronization signal i_vs is in a high-level state, it means that a frame of the image is being scanned. Since the actual image scanning also involves the border area of the display screen, etc., the rising edge of the field synchronization signal i_vs is earlier than the pixel coordinates (row coordinates, column coordinates); during the high-level state of the pixel effective signal i_de, it means that a row of a frame of the image is being scanned, so when the field synchronization signal i_vs is in a high-level state, when the pixel effective signal i_de has the first rising edge, the row coordinate i_cnt_row starts counting from 0, and when the pixel effective signal i_de has the next rising edge, the row coordinate i_cnt_row count is increased by 1; after the field synchronization signal i_vs becomes a low-level state (invalid), it means that the scanning of a frame of the image is completed, and the count of the row coordinates is cleared; after the field synchronization signal i_vs becomes a high level again, the row coordinate count is restarted.
[0055] For column coordinates i_cnt_col1~i_cnt_col4, while the pixel valid signal i_de is in the valid state, each scan is 4 pixels. In the first scan, the 4 column coordinates i_cnt_col1~i_cnt_col4 are 0, 1, 2, and 3 respectively. Based on the 4-channel scanning transmission method, the next scan adds 4 to the 4 column coordinates i_cnt_col1~i_cnt_col4, which are 4, 5, 6, and 7 respectively; after the pixel valid signal i_de becomes a low level (invalid), it means that a row of pixels has been scanned, then the column coordinate count is cleared, and after the pixel valid signal i_de becomes a high level again, the column coordinate count is restarted.
[0056] S102: symmetrically mapping the row coordinates of the pixels to obtain target row coordinates of the pixels; and symmetrically mapping the column coordinates of the pixels to obtain target column coordinates of the pixels.
[0057] S103: Determine whether the pixel is located in the boundary area of the curved screen;
[0058] It should be noted that in the embodiment of the present disclosure, there is no strict execution order for step S102 and step S103. The two can be executed simultaneously or one can be executed before the other. The execution order can also be determined in combination with the specific implementation method, and no specific limitation is made to this.
[0059] It should also be noted that since the curved screen (such as the curved screen of a smartphone) is usually a symmetrical structure, the same method can be used to compensate for the symmetrical areas. Figure 4 , which shows a schematic diagram of the area division of a curved screen provided by an embodiment of the present disclosure Figure 1 .like Figure 4 As shown, the curved screen is divided into a boundary area and a non-border area, wherein the boundary area is an area containing the curved surface, which is usually located at the edge area of the display screen. Figure 4 Take, for example, a display screen having curved surfaces on all sides.
[0060] like Figure 4 As shown, the border area includes a horizontal border area and a vertical border area, the horizontal border area includes a first horizontal border area and a second horizontal border area, and the vertical border area includes a first vertical border area and a second vertical border area; wherein the first horizontal border area and the second horizontal border area are symmetrically distributed on two opposite sides of the curved screen along the row direction, and the first horizontal border area and the second horizontal border area both extend along the column direction; the first vertical border area and the second vertical border area are symmetrically distributed on two opposite sides of the curved screen along the column direction, and the first vertical border area and the second vertical border area both extend along the row direction. In addition, as Figure 4 As shown, in the embodiment of the present disclosure, the corner area where the horizontal boundary area and the vertical boundary area intersect is regarded as the horizontal boundary area, but the area can also be regarded as the vertical boundary area. It is related to the actual curvature of the screen and is not specifically limited here. Whichever area is more beneficial to improving color deviation is regarded as that area.
[0061] like Figure 4As shown, the row direction is also called the horizontal direction, that is, the extension direction of a row of pixels, and the row direction is parallel to the column coordinate axis; the column direction is also called the vertical direction, that is, the extension direction of a column of pixels, and the column direction is parallel to the row coordinate axis. The first horizontal boundary area and the second horizontal boundary area are symmetrically distributed along the symmetry axis parallel to the column direction, and the first vertical boundary area and the second vertical boundary area are symmetrically distributed along the symmetry axis parallel to the row direction. The first horizontal boundary area and the first vertical boundary area are relatively close to the coordinate origin, and the second horizontal boundary area and the second vertical boundary area are relatively far from the coordinate origin. Based on the characteristics of this symmetrical distribution, pixels in symmetrical positions in the first horizontal boundary area and the second horizontal boundary area can be compensated for images in the same manner, and pixels in symmetrical positions in the first vertical boundary area and the second vertical boundary area can be compensated for images in the same manner.
[0062] For each boundary area, the coordinates of its outermost edge are basically fixed. For the first vertical boundary area, the row coordinates of the outermost edge are 0, and the row coordinates of a row of pixels intersecting with the non-border area are the boundary row coordinates, recorded as the first boundary row coordinates max_comp_size_V1; for the second vertical boundary area, the row coordinates of the outermost edge are the column resolution minus 1 (Resolution_V-1), and the row coordinates of a row of pixels intersecting with the non-border area are the boundary row coordinates, recorded as the second boundary row coordinates max_comp_size_V2; for the first horizontal boundary area, the column coordinates of the outermost edge are 0, and the column coordinates of a column of pixels intersecting with the non-border area are the boundary column coordinates, recorded as the first boundary column coordinates max_comp_size_H1; for the second horizontal boundary area, the row coordinates of the outermost edge are the row resolution minus 1 (Resolution_H-1), and the row coordinates of a column of pixels intersecting with the non-border area are the boundary column coordinates, recorded as the second boundary column coordinates max_comp_size_H2.
[0063] The first boundary row coordinate max_comp_size_V1 corresponds to the boundary between the first vertical boundary area and the non-border area, the second boundary row coordinate max_comp_size_V2 corresponds to the boundary between the second vertical boundary area and the non-border area, the first boundary column coordinate max_comp_size_H1 corresponds to the boundary between the first horizontal boundary area and the non-border area, and the second boundary column coordinate max_comp_size_H2 corresponds to the boundary between the second horizontal boundary area and the non-border area. Each boundary coordinate can be specified by the user or determined empirically to be the boundary between the non-border area where color deviation will not occur and the boundary area where color deviation will occur.
[0064] Since the boundary area is symmetrically distributed, when dividing the boundary area, if the resolution is known, you only need to know the first boundary row coordinates, and you can know the second boundary row coordinates through symmetrical mapping; or, you only need to know the second boundary row coordinates, and you can know the first boundary row coordinates through symmetrical mapping. Similarly, you only need to know the first boundary column coordinates, and you can know the second boundary column coordinates through symmetrical mapping; or, you only need to know the second boundary column coordinates, and you can know the first boundary column coordinates through symmetrical mapping.
[0065] Therefore, in some embodiments, the method may further include: acquiring image resolution, boundary row coordinates, and boundary column coordinates; wherein the boundary row coordinates correspond to the boundary between the first vertical boundary area or the second vertical boundary area and the non-border area of the curved screen, and the boundary column coordinates correspond to the boundary between the first horizontal boundary area or the second horizontal boundary area and the non-border area;
[0066] According to the image resolution, the boundary row coordinates and the boundary column coordinates, the symmetric boundary row coordinates symmetric to the boundary row coordinates and the symmetric boundary column coordinates symmetric to the boundary column coordinates are determined.
[0067] It should be noted that the resolution of the image includes row resolution and column resolution, and the obtained boundary row coordinates are the first boundary row coordinates (then the second boundary row coordinates are symmetrical boundary row coordinates) or the second boundary row coordinates (then the first boundary row coordinates are symmetrical boundary row coordinates); the obtained boundary column coordinates are the first boundary column coordinates (then the second boundary column coordinates are symmetrical boundary column coordinates) or the second boundary column coordinates (then the first boundary column coordinates are symmetrical boundary column coordinates). After these parameters are obtained, they are used in the subsequent symmetrical mapping of pixels and in determining whether the pixels are located in the boundary area.
[0068] For example, if the row resolution of an image is Resolution_H and the column resolution is Resolution_V, and the first boundary row coordinate max_comp_size_V1 is known, then the second boundary row coordinate max_comp_size_V2 is: Resolution_V-max_comp_size_V1-1; or, if the second boundary row coordinate max_comp_size_V2 is known, then the first boundary row coordinate max_comp_size_V1 is: Resolution_V-max_comp_size_V2-1. The same is true for the boundary column coordinates, which will not be repeated here. Mapping based on this method can also ensure the accuracy of boundary determination.
[0069] Based on this symmetrical structure, after determining the row coordinates and column coordinates of the pixel, the embodiment of the present disclosure can symmetrically map the row coordinates and column coordinates to map the row coordinates and column coordinates to target row coordinates and target column coordinates, so that compensation of pixels in any horizontal boundary area can be achieved by only setting or calculating the relevant parameters of the first horizontal boundary area or the second horizontal boundary area; similarly, compensation of pixels in any vertical boundary area can be achieved by only setting or calculating the relevant parameters of the first vertical boundary area or the second vertical boundary area.
[0070] In some embodiments, the specific manner of symmetrically mapping the coordinates (row coordinates or column coordinates) to the target coordinates (target row coordinates or target column coordinates) is:
[0071] Symmetrically map the column coordinates of the pixel to obtain the target column coordinates of the pixel, including:
[0072] Compare the column coordinates of the pixel with the boundary column coordinates and the symmetric boundary column coordinates; if the magnitude relationship between the column coordinates of the pixel and the boundary column coordinates is a first relationship, determine the column coordinates of the pixel as the target column coordinates; if the magnitude relationship between the column coordinates of the pixel and the symmetric boundary column coordinates is a second relationship, determine the column coordinates symmetrical to the column coordinates as the target column coordinates; wherein the first relationship is less than and the second relationship is greater than; or the first relationship is greater than and the second relationship is less than;
[0073] Symmetrically map the row coordinates of the pixels to obtain the target row coordinates of the pixels, including:
[0074] The row coordinates of the pixel are compared with the boundary row coordinates and the symmetrical boundary row coordinates. If the size relationship between the row coordinates of the pixel and the boundary row coordinates is a first relationship, the row coordinates of the pixel are determined as the target row coordinates; if the size relationship between the row coordinates of the pixel and the symmetrical boundary row coordinates is a second relationship, the row coordinates symmetrical to the row coordinates are determined as the target row coordinates.
[0075] It should be noted that, for the horizontal boundary area, assuming that the first boundary column coordinates are known, and a column of pixels corresponding to the first boundary column coordinates are regarded as pixels in the non-boundary area, the first relationship is less than, and the second relationship is greater than. If a column of pixels corresponding to the first boundary column coordinates are regarded as pixels in the boundary area, the first relationship is less than or equal to, and the second relationship is greater than or equal to. Below, taking only the former case as an example, the method of symmetrically mapping (horizontally mapping) the column coordinates is as shown in the following formula (1):
[0076]
[0077] Among them, out_cnt_col represents the target column coordinate, i_cnt_col represents the column coordinate, max_comp_size_H1 represents the first boundary column coordinate, and Resolution_H represents the row resolution (or horizontal resolution). It can be seen that the first boundary column coordinate max_comp_size_H1 is horizontally mapped to obtain the second boundary column coordinate max_comp_size_H2: Resolution_H-max_comp_size_H1-1. In this way, by comparing the column coordinate of the pixel with the two boundary column coordinates respectively, it is possible to determine in which area the pixel is located, and the column coordinate located in the second vertical boundary area is horizontally mapped to the first vertical boundary area.
[0078] Combination Figure 4 As shown in formula (1), if the column coordinate i_cnt_col of the pixel is less than or equal to the first boundary column coordinate max_comp_size_H1, it means that the pixel is located in the first horizontal boundary area, and the coordinate conversion is not performed on it; if the column coordinate i_cnt_col of the pixel is greater than the second boundary column coordinate (Resolution_H-max_comp_size_H1-1), it means that the column coordinate is located in the second vertical boundary area, and it is symmetrically mapped to the first vertical boundary area, that is, the symmetrical column coordinate of the column coordinate in the first vertical boundary area is used as the target column coordinate.
[0079] In the aforementioned Figure 3 Based on the timing shown, see Figure 5 , which shows another timing diagram provided by an embodiment of the present disclosure. Figure 5 As shown, clk is the system clock, max_H_edge is a signal indicating the first horizontal boundary coordinate, in this example, the first horizontal boundary coordinate value is max_edge_value=11; remap_cnt_col1~remap_cnt_col4 respectively represent the four target column coordinates obtained in parallel. During the period when the pixel effective signal i_de is at a high level, for column coordinates less than or equal to 11, the target column coordinate is equal to the original column coordinate, and for column coordinates greater than or equal to 1068 (1080-11-1), the target column coordinate is equal to the symmetric coordinate of the original column coordinate (1080-column coordinate-1).
[0080] In this way, after symmetric mapping, Figure 3 The column coordinates in are mapped to Figure 5 In addition, the column coordinates in the non-border area may not be processed, or as shown in Figure 5 As shown, the column coordinates are considered to be the value of the first boundary column coordinates + 1, and the row coordinates are the same, and no specific limitation is given here.
[0081] Similarly, assuming that the second boundary column coordinates are known, and the column of pixels corresponding to the second boundary column coordinates are regarded as pixels in the non-boundary area, the first relationship is greater than, and the second relationship is less than. If the column of pixels corresponding to the second boundary column coordinates are regarded as pixels in the boundary area, the first relationship is greater than or equal to, and the second relationship is less than or equal to. Below, taking only the former case as an example, the method of symmetrically mapping (horizontally mapping) the column coordinates is as follows: Formula (2):
[0082]
[0083] Among them, max_comp_size_H2 represents the second boundary column coordinate. It can be seen that the second boundary column coordinate max_comp_size_H2 is horizontally mapped to obtain the first boundary column coordinate max_comp_size_H1: Resolution_H-max_comp_size_H2-1. In this way, by comparing the column coordinates of the pixel with the two boundary column coordinates respectively, it is possible to determine in which area the pixel is located, and the column coordinates located in the first vertical boundary area are horizontally mapped to the second vertical boundary area, which will not be described in detail.
[0084] Similarly, for the vertical boundary area, assuming that the first boundary row coordinates are known, and a row of pixels corresponding to the first boundary row coordinates are regarded as pixels in the non-border area, the first relationship is less than, and the second relationship is greater than. If a row of pixels corresponding to the first boundary row coordinates are regarded as pixels in the boundary area, the first relationship is less than or equal to, and the second relationship is greater than or equal to. Below, taking only the former case as an example, the method of symmetrically mapping (vertical mapping) the row coordinates is as shown in the following formula (3):
[0085]
[0086] Among them, out_cnt_row represents the target row coordinate, i_cnt_row represents the row coordinate, max_comp_size_V1 represents the first boundary row coordinate, and Resolution_V represents the column resolution (or vertical resolution). It can be seen that the first boundary row coordinate max_comp_size_V1 is vertically mapped to obtain the second boundary row coordinate max_comp_size_V2: Resolution_V-max_comp_size_V1-1. In this way, by comparing the row coordinate of the pixel with the two boundary row coordinates respectively, it is possible to determine in which area the pixel is located, and the row coordinate located in the second vertical boundary area is vertically mapped to the first vertical boundary area.
[0087] Combination Figure 4As shown in formula (3), if the row coordinate i_cnt_row of the pixel is less than or equal to the first boundary row coordinate max_comp_size_V1, it means that the pixel is located in the first vertical boundary area, and the coordinate conversion is not performed; if the row coordinate i_cnt_row of the pixel is greater than the second boundary row coordinate (Resolution_V-max_comp_size_V1-1), it means that the row coordinate is located in the second vertical boundary area, and it is symmetrically mapped to the first vertical boundary area, that is, the symmetrical row coordinate of the row coordinate in the first vertical boundary area is used as the target row coordinate.
[0088] Similarly, assuming that the second boundary row coordinates are known, and a row of pixels corresponding to the second boundary row coordinates are regarded as pixels in the non-boundary area, the first relationship is greater than, and the second relationship is less than. If a row of pixels corresponding to the second boundary row coordinates are regarded as pixels in the boundary area, the first relationship is greater than or equal to, and the second relationship is less than or equal to. Below, only taking the former case as an example, the method of symmetrically mapping (vertical mapping) the row coordinates is as shown in the following formula (4):
[0089]
[0090] Among them, max_comp_size_V2 represents the second boundary row coordinate. It can be seen that the second boundary row coordinate max_comp_size_V2 is horizontally mapped to obtain the first boundary row coordinate max_comp_size_V1: Resolution_V-max_comp_size_V2-1. In this way, by comparing the row coordinates of the pixel with the two boundary row coordinates respectively, it is possible to determine which area the pixel is located in, and the row coordinates located in the first vertical boundary area are vertically mapped to the second vertical boundary area. The details are not repeated here.
[0091] It can be understood that if each coordinate is counted starting from 1, there is no need to subtract 1 when performing symmetric mapping.
[0092] Furthermore, pixels in non-border areas generally do not have color cast, and the disclosed embodiment only compensates for pixels in the border area. For step S103, in some embodiments, determining whether a pixel is located in the border area of the curved screen may include:
[0093] Determine whether a pixel is located in a boundary area based on the image resolution, boundary row coordinates, boundary column coordinates, row coordinates and column coordinates of the pixel; or determine whether a pixel is located in a boundary area based on the image resolution, boundary row coordinates, boundary column coordinates, target row coordinates and target column coordinates of the pixel.
[0094] It should be noted that, taking the acquisition of the first boundary row coordinates and the first boundary column coordinates as an example, in the embodiment of the present disclosure, a symmetrical mapping can be performed based on the first boundary row coordinates and the first boundary column coordinates to determine the second boundary row coordinates and the second boundary column coordinates, so that each horizontal boundary area and vertical boundary area can be defined, and then the row coordinates are compared with the first boundary row coordinates and the second boundary row coordinates. If the row coordinates are less than the first boundary row coordinates, it is determined that the pixel is located in the first vertical boundary area. If the row coordinates are greater than the second boundary row coordinates, it is determined that the pixel is located in the second vertical boundary area. The judgment of the column coordinates is similar and will not be repeated here. In addition, as an example, if a pixel satisfies both the horizontal boundary area and the vertical boundary area, it is determined to be located in the horizontal boundary area.
[0095] Alternatively, the embodiment of the present disclosure may not perform symmetrical mapping on the first boundary row coordinates and the first boundary column coordinates, but determine whether the pixel is located in the boundary area based on the target row coordinates and the target column coordinates obtained by the aforementioned symmetrical mapping. If the target row coordinate is less than the first boundary row coordinate, it is determined that the pixel is located in the vertical boundary area, and if the target column coordinate is less than the first boundary column coordinate, it is determined that the pixel is located in the horizontal boundary area.
[0096] S103: When the pixel is located in the boundary area, a compensation coefficient of the pixel is determined according to the target row coordinate or the target column coordinate of the pixel.
[0097] It should be noted that, for pixels in the boundary area, such as the pixels in the first horizontal boundary area, although they are in the same area, the degree of color deviation they exhibit is different due to the different curvatures of the curved surface. Therefore, after determining that the pixel is located in the boundary area, the embodiment of the present disclosure also calculates the compensation coefficient (also referred to as gain compensation coefficient, compensation gain coefficient, gain coefficient, gain compensation value, compensation gain value, etc.) of the pixel in combination with the target coordinates (target row coordinates or target column coordinates) of the pixel to ensure that the degree of compensation meets the compensation requirements of the location of the pixel.
[0098] It should also be noted that in the aforementioned steps, the row coordinates and column coordinates of the pixels are symmetrically mapped, so that the same compensation coefficient is used for pixels that are symmetrical in the horizontal direction or vertical direction, that is, it is only necessary to calculate according to the target row coordinates or target column coordinates obtained by mapping. For pixels in the vertical boundary area, the compensation coefficient is determined in combination with their target row coordinates, and for pixels in the horizontal boundary area, the compensation coefficient is determined in combination with their target column coordinates.
[0099] In some embodiments, the method further comprises:
[0100] Obtain a number of sub-boundary column coordinates and corresponding compensation coefficients, and a number of sub-boundary row coordinates and corresponding compensation coefficients; wherein the number of sub-boundary column coordinates divide the target horizontal boundary area into a second number of sub-horizontal boundary areas, and the target horizontal boundary area is the first horizontal boundary area or the second horizontal boundary area; and the number of sub-boundary row coordinates divide the target vertical boundary area into a third number of sub-vertical boundary areas, and the target vertical boundary area is the first vertical boundary area or the second vertical boundary area.
[0101] It should be noted that see Figure 6 , which shows a schematic diagram of the area division of a curved screen provided by an embodiment of the present disclosure Figure 2 .like Figure 6 As shown, take the second number being n and the third number being m as an example; wherein n and m are both integers greater than 0, and n and m may be the same or different.
[0102] For horizontal boundary areas, such as Figure 6 As shown, assuming that the target horizontal boundary area is the first horizontal boundary area, the obtained sub-boundary column coordinates can be n+1: 0, Sub_col11, Sub_col12, ..., Sub_col1(n-1), max_comp_size_H1. These sub-boundary column coordinates divide the first horizontal boundary area into n sub-horizontal boundary areas, namely: sub-horizontal boundary area Sub-H11, sub-horizontal boundary area Sub-H12, ..., sub-horizontal boundary area Sub-H1n. At the same time, the compensation coefficient corresponding to each sub-boundary column coordinate is also obtained.
[0103] Assuming that the target horizontal boundary area is the second horizontal boundary area, the obtained sub-boundary column coordinates may also be n+1: Resolution_H-1, Sub_col21, Sub_col22, ..., Sub_col2(n-1), max_comp_size_H2, these sub-boundary column coordinates divide the second horizontal boundary area into n sub-horizontal boundary areas, namely: sub-horizontal boundary area Sub-H21, sub-horizontal boundary area Sub-H22, ..., sub-horizontal boundary area Sub-H2n. At the same time, the compensation coefficient corresponding to each sub-boundary column coordinate is also obtained.
[0104] Since the second horizontal boundary area is symmetrical to the first horizontal boundary area, the sub-border column coordinates Resolution_H-1, Sub_col21, Sub_col22,..., Sub_col2(n-1), max_comp_size_H2 of the second horizontal boundary area and the sub-border column coordinates 0, Sub_col11, Sub_col12,..., Sub_col1(n-1), max_comp_size_H1 of the first horizontal boundary area are symmetrically mapped to each other; the sub-horizontal boundary area Sub-H21 is symmetrically mapped to the sub-horizontal boundary area Sub-H11,..., the sub-horizontal boundary area Sub-H1n is symmetrically mapped to the sub-horizontal boundary area Sub-H2n.
[0105] For vertical boundary regions, such as Figure 6 As shown, assuming that the target vertical boundary area is the first vertical boundary area, the obtained sub-boundary row coordinates may be n+1: 0, Sub_row11, Sub_row12, ..., Sub_row1(m-1), max_comp_size_V1, these sub-boundary row coordinates divide the first vertical boundary area into m sub-vertical boundary areas, namely: Sub-vertical boundary area Sub-V11, Sub-vertical boundary area Sub-V12, ..., Sub-vertical boundary area Sub-V1m. At the same time, the compensation coefficient corresponding to each sub-boundary row coordinate is also obtained.
[0106] Assuming that the target vertical boundary area is the second vertical boundary area, the obtained sub-boundary row coordinates may also be m+1: Resolution_V-1, Sub_row21, Sub_row22, ..., Sub_row2(m-1), max_comp_size_V2. These sub-boundary row coordinates divide the second vertical boundary area into m sub-vertical boundary areas, namely: Sub-vertical boundary area Sub-V21, Sub-vertical boundary area Sub-V22, ..., Sub-vertical boundary area Sub-V2m. At the same time, the compensation coefficient corresponding to each sub-boundary row coordinate is also obtained.
[0107] Since the second vertical boundary area is symmetrical to the first vertical boundary area, the sub-boundary row coordinates Resolution_V-1, Sub_row21, Sub_row22,..., Sub_row2(m-1), max_comp_size_V2 of the second vertical boundary area and the sub-boundary row coordinates 0, Sub_row11, Sub_row12,..., Sub_row(m-1), max_comp_size_V1 of the first vertical boundary area are symmetrically mapped to each other; the sub-vertical boundary area Sub-V21 is symmetrically mapped to the sub-vertical boundary area Sub-V11,..., the sub-vertical boundary area Sub-V2m is symmetrically mapped to the sub-vertical boundary area Sub-V1m.
[0108] On this basis, the compensation coefficient of the pixel is determined according to the target row coordinate or the target column coordinate of the pixel, which may include:
[0109] Determine the sub-boundary region corresponding to the pixel according to the target coordinates; the target coordinates are the target row coordinates or the target column coordinates, and the sub-boundary region is the sub-horizontal boundary region or the sub-vertical boundary region;
[0110] The compensation coefficient of the pixel is determined according to the sub-boundary coordinates of the sub-boundary area corresponding to the pixel, the corresponding compensation coefficient, and the target coordinates of the pixel; the sub-boundary coordinates are sub-boundary row coordinates or sub-boundary column coordinates.
[0111] For pixels in the horizontal boundary area, after converting the column coordinates of the pixel into the target column coordinates, it is only necessary to compare the target column coordinates with the column coordinates of each sub-boundary. When the target column coordinates fall into a sub-horizontal boundary area (i.e., the target column coordinates are between two sub-boundary column coordinates), it means that the pixel is located in the sub-horizontal boundary area, or the pixel falls into the sub-horizontal boundary area after symmetric mapping. At this time, it is only necessary to calculate based on the target column coordinates, the two sub-boundary column coordinates of the sub-horizontal boundary area and the corresponding compensation coefficient to determine the compensation coefficient of the pixel. The calculation method can be linear interpolation.
[0112] Similarly, for pixels in the vertical boundary area, after converting the row coordinates of the pixels into the target row coordinates, it is only necessary to compare the target row coordinates with the row coordinates of each sub-boundary. When the target row coordinates fall into a sub-vertical boundary area, it means that the pixel is located in the sub-vertical boundary area, or the pixel falls into the sub-vertical boundary area after symmetrical mapping. At this time, it is only necessary to calculate based on the target row coordinates, the two sub-boundary row coordinates of the sub-vertical boundary area and the corresponding compensation coefficient to determine the compensation coefficient of the pixel. The calculation method can be linear interpolation.
[0113] It can be understood that if the target coordinates and the sub-boundary coordinates coincide, the compensation coefficient corresponding to the sub-boundary coordinates can be directly determined as the compensation coefficient of the pixel corresponding to the target coordinates. For pixels located in the non-boundary area, their compensation coefficient can be considered to be 1.
[0114] Further, in some embodiments, the compensation coefficient includes sub-compensation coefficients corresponding to a fourth number of color components; determining the compensation coefficient of the pixel according to the sub-boundary coordinates of the sub-boundary area corresponding to the pixel and the corresponding compensation coefficient and the target coordinates of the pixel includes:
[0115] For each color component, a linear interpolation calculation is performed based on the sub-boundary coordinates of the sub-boundary area, the corresponding sub-compensation coefficient, and the target coordinates of the pixel to determine the sub-compensation coefficient of each color component of the pixel. For pixels located in the non-boundary area, their sub-compensation coefficient can be considered to be 1.
[0116] It should be noted that, for example, for the RGB color mode, the actual color of a pixel is the superposition of the three color components of red (Red, R), green (Green, G), and blue (Blue, B). The pixel value of each color component can vary between 0 and 255. For any color component, the corresponding sub-compensation coefficient can be calculated. Similarly, when the compensation coefficient corresponding to each sub-boundary coordinate is obtained, the sub-compensation coefficient of each color component is obtained. For each color component, its sub-compensation coefficient can be calculated according to the following formula (5):
[0117]
[0118] Wherein, comp_gain represents the sub-compensation coefficient of the target color component of the pixel whose target coordinate is out_cnt, the target coordinate is the target row coordinate or the target column coordinate, and the target color component is any one of the fourth number of color components. Co1 and Co2 are two sub-boundary coordinates of the sub-boundary area corresponding to the pixel, gain1 is the sub-compensation coefficient corresponding to the target color component at the boundary coordinate Co1, and gain2 is the sub-compensation coefficient corresponding to the target color component at the boundary coordinate Co2. In addition, the result of the multiplication operation in formula (5) can be expressed as an absolute value, so there is no need to distinguish the size relationship between the values.
[0119] Specifically, for the horizontal boundary area, the compensation coefficient of the target color component of the pixel in the horizontal boundary area is calculated using the following formula (6):
[0120]
[0121] Among them, H_comp_gain represents the sub-compensation coefficient of the target color component of the pixel with the target column coordinate out_cnt_col. Col1 and Col2 are the two sub-boundary column coordinates of the sub-horizontal boundary area corresponding to the pixel, H_gain1 is the sub-compensation coefficient corresponding to the target color component at the boundary column coordinate Col1, and H_gain2 is the sub-compensation coefficient corresponding to the target color component at the boundary column coordinate Col2. In addition, the result of the multiplication operation in formula (6) can be expressed as an absolute value, so there is no need to distinguish the size relationship between the values.
[0122] For the vertical boundary area, the compensation coefficient of the target color component of the pixel in the vertical boundary area is calculated using the following formula (7):
[0123]
[0124] Among them, V_comp_gain represents the sub-compensation coefficient of the target color component of the pixel with the target row coordinate out_cnt_row. Row1 and Row2 are the two sub-border row coordinates of the sub-vertical boundary area corresponding to the pixel, V_gain1 is the sub-compensation coefficient corresponding to the target color component at the boundary row coordinate Row1, and V_gain2 is the sub-compensation coefficient corresponding to the target color component at the boundary row coordinate Row2. In addition, the result of the multiplication operation in formula (7) can be expressed as an absolute value, so there is no need to distinguish the size relationship between the values.
[0125] S104: Determine a target pixel value of the pixel according to the compensation coefficient of the pixel and the original pixel value of the pixel.
[0126] It should be noted that after determining the sub-compensation coefficient, the sub-compensation coefficient is multiplied by the original pixel value of the color component to obtain the target pixel value of the color. In addition, for the RGB pixel mode, if the multiplication results in a pixel value greater than 255, the target pixel value can also be scaled to ensure that the color expression is not wrong.
[0127] Furthermore, in practice, there may be a color component that does not have color cast, so compensation for the color component is not necessary. Therefore, in some embodiments, the target pixel value of the pixel is determined according to the compensation coefficient of the pixel and the original pixel value of the pixel, including:
[0128] Get the original pixel value of the pixel;
[0129] Determine the compensation model;
[0130] Performing a normalization operation on the compensation coefficient of each color component of the pixel according to the compensation mode;
[0131] The original pixel value of the pixel is weightedly calculated according to the sub-compensation coefficient of each color component after the normalization operation to obtain the target pixel value of the pixel.
[0132] It should be noted that if a color component does not have color deviation or the degree of color deviation is relatively light, then according to the compensation mode, the sub-compensation coefficient of the color component can be set to 1, and then the sub-compensation coefficients of other color components are processed in equal proportion. Alternatively, according to the compensation mode, the sub-compensation coefficient of a color component is set to 1, and the sub-compensation coefficients of the remaining color components are the sub-compensation coefficients calculated according to the aforementioned linear difference.
[0133] Finally, the original pixel value of each color component of the pixel located in the boundary area is multiplied by the corresponding sub-compensation coefficient to obtain the corresponding target pixel value output, while the pixels in the non-boundary area maintain the original pixel value output, so that the color cast of the final output image can be improved.
[0134] For example: The compensation mode is as follows:
[0135] a. Set the compensation gain coefficient of the R color component to 1, and the compensation gain coefficients of the G and B color components to the compensation gain coefficients 1 and 2 obtained by the symmetric gain interpolation calculation module 205, respectively.
[0136] b. Set the compensation gain coefficient of the G color component to 1, and the compensation gain coefficients of the R and B color components to be the compensation gain coefficients 1 and 2 obtained by the symmetric gain interpolation calculation module 205, respectively.
[0137] c. Set the compensation gain coefficient of the B color component to 1, and the compensation gain coefficients of the R and G color components to be the compensation gain coefficients 1 and 2 obtained by the symmetric gain interpolation calculation module 205, respectively.
[0138] Finally, the RGB original pixel value in the boundary area is multiplied by the corresponding compensation gain coefficient to obtain the target pixel value and output the image, while the pixels not in the boundary area keep the original pixel value output. The compensation logic is as follows: For the boundary area, the target pixel value is calculated using the following formulas (8) to (10):
[0139] R out =R initial ×R H_gain or R initial ×R V_gain Formula (8)
[0140] G out =G initial ×G H_gain or G initial ×G V_gain Formula (9)
[0141] Bout =B initial ×B H_gain or B initial ×B V_gain Formula (10)
[0142] In formula (8), R out is the target pixel value of the red component, R initial is the original pixel value of the red component, R H_gain is the compensation coefficient of the red component in the horizontal direction (calculated using the target column coordinates), R V_gain is the compensation coefficient of the red component in the vertical direction (calculated using the target row coordinates); formula (9) and formula (10) are the relevant parameters of the green component and the blue component, respectively, which will not be repeated here.
[0143] When the horizontal boundary compensation and the vertical boundary compensation are both turned on, the pixel portion where the boundary intersects adopts the sub-compensation coefficient of the horizontal boundary. That is, in the embodiment of the present disclosure, the image compensation method may further include:
[0144] Determine an enabled compensation area; wherein the compensation area is a horizontal boundary area and / or a vertical boundary area;
[0145] The compensation area that is enabled is compensated in the manner described above.
[0146] For non-boundary areas, the output pixel value is the original pixel value of the color component, as shown in the following formulas (11) to (13):
[0147] R out =R initial Formula (11)
[0148] G out =G initial Formula (12)
[0149] B out =B initial Formula (13)
[0150] Furthermore, since the processes of calculating the compensation coefficients and performing symmetric mapping are time-consuming, in order to ensure the timing alignment of the original pixel value and the sub-compensation coefficients and obtain the correct target pixel value, in some embodiments, the method may further include:
[0151] In the case where it is determined that the pixel is located in the boundary area, generating a valid compensation flag;
[0152] Delay processing is performed on the compensation mark and the original pixel value respectively, so that the timing of the compensation mark and the original pixel value are consistent;
[0153] When the compensation flag after the delay processing is valid, the target image is generated according to the target pixel value; when the compensation flag after the delay processing is invalid, the target image is generated according to the original pixel value.
[0154] It should be noted that, since the coordinates collected at the same time include row coordinates and column coordinates of multiple channels, the compensation flag also includes a row compensation flag (also called a horizontal compensation flag) and multiple column compensation flags (also called a vertical compensation flag). Figure 3 As shown, the signal corresponding to the first boundary column coordinate is max_H_edge, with a value of 11, and the signal corresponding to the first boundary row coordinate is max_V_edge, with a value of 2. The row compensation flag is Com_flag_VC, and Com_flag_HC1 to Com_flag_HC4 are column compensation flags of four channels respectively.
[0155] Assume that each compensation flag is high level valid, such as Figure 3 As shown, when the row coordinate i_cnt_row is 0 and 1, it is both less than 2, so when the row coordinate i_cnt_row is 0 and 1, the row compensation flag Com_flag_VC is valid; similarly, when each column coordinate i_cnt_col is within 11, the corresponding column compensation flag is valid.
[0156] exist Figure 3 On the basis of Figure 7 It is a timing diagram for delaying each signal. Figure 7 As shown in the figure, taking the red component as an example, flag represents a compensation flag, i_data_R represents the original pixel value of the red component, and has been delayed to align with the start of the effective compensation flag flag (t1 moment, corresponding to the rising edge); flag_delay represents the compensation flag after the delay, and o_ecc_R_result represents the target pixel value of the red component calculated using the sub-compensation coefficient; Figure 7 As shown, the delayed compensation flag flag_delay is aligned with the delayed target pixel value o_ecc_R_result of the red component (at time t2), and then, during the period when the compensation flag flag_delay is valid, the target pixel value o_ecc_R_result is output, and the final output is recorded as o_data_R_result. During the period when the compensation flag flag_delay is invalid (low level), the original pixel value of the red component is output.
[0157] Here, due to the limitation of the actual circuit, in some circuits, when calculating the target pixel value, when no compensation is required, the sub-compensation coefficient should be set to 1 in theory, but in actual calculation, each sub-compensation coefficient may be a decimal. For example, when expressed as a 13-bit fixed-point decimal, the sub-compensation coefficient of 1 is actually: 8191 / 2 13 ≈1, resulting in an error. At the same time, for power consumption considerations, the part that does not need to be compensated can be set to multiply by 0 in practice, and the original pixel value can be selected for output in the final output.
[0158] In summary, due to the optical structural characteristics of the curved screen itself, a slight color deviation phenomenon will occur when the curved screen boundary is observed from different angles. Therefore, the embodiment of the present disclosure performs color compensation processing on the boundary portion of the curved screen. According to the symmetrical curved structural characteristics of the curved screen boundary, the horizontal and vertical boundary portions are usually color compensated in a symmetrical form. At the same time, considering the influence of curvature change on the color deviation of the screen and the occupied resources during the algorithm hardware design, by selecting representative RGB pixel compensation points (boundary areas) on the horizontal and vertical boundaries, the RGB pixel compensation coefficients of the compensation points are measured by the software end respectively, and the corresponding compensation gain values are obtained by linear interpolation at the remaining boundary positions, and weighted compensation processing is performed on the pixels at the position. Considering that in real-time video image processing, in order to improve the image processing rate, a multi-channel RGB image parallel line-by-line transmission method is usually adopted, that is, multiple RGB pixels are controlled correspondingly under each pixel clock. When performing horizontal and vertical boundary symmetrical compensation processing, the image boundary position collected by the software end is affected by the multi-channel image transmission method, and the pixel position of the compensation boundary needs to be relocated during hardware design. Therefore, in order to accurately divide the boundaries of video images and perform real-time screen compensation processing, the embodiment of the present disclosure proposes a boundary compensation technology for multi-channel video images. After the original multi-channel video image data is processed as above, a real-time boundary compensation image result is finally output, which is presented on the screen to solve the color deviation problem of the curved screen boundary. The compensation boundary size and compensation mode can be customized by the user, which can simultaneously meet the real-time processing rate and less hardware resource usage.
[0159] In another embodiment of the present disclosure, see Figure 8 , which shows a schematic diagram of the composition structure of an image compensation device provided by an embodiment of the present disclosure. Figure 8 As shown, the image compensation device 20 includes:
[0160] A coordinate determination unit 201, configured to determine a row coordinate and a column coordinate of each pixel in at least one pixel;
[0161] The compensation coefficient determination unit 202 is used to symmetrically map the row coordinates and column coordinates of the pixels located in the boundary area of the curved screen to obtain the target row coordinates and target column coordinates of the pixels; and determine the compensation coefficient of the pixels according to the target row coordinates or target column coordinates of the pixels;
[0162] The compensation unit 202 is used to determine a target pixel value of a pixel according to a compensation coefficient of the pixel and an original pixel value of the pixel.
[0163] It should be noted that if Figure 8 As shown, the compensation coefficient determination unit 202 is connected between the coordinate determination unit 201 and the compensation unit 203 .
[0164] The coordinate determination unit 201 sends the determined row coordinates and column coordinates to the compensation coefficient determination unit 202. After receiving the row coordinates and column coordinates, the compensation coefficient determination unit 202 determines whether the corresponding pixel is located in the boundary area. When the pixel is located in the boundary area, the row coordinates are symmetrically mapped to obtain the target row coordinates, and the column coordinates are symmetrically mapped to obtain the target column coordinates. The compensation coefficient is then calculated and sent to the compensation unit 203.
[0165] The compensation unit 203 receives the compensation coefficient and the original pixel value, and performs calculation to obtain the target pixel value.
[0166] exist Figure 8 On the basis of Fig. 9 As shown, it shows a detailed structural diagram of a compensation device provided by an embodiment of the present disclosure. Fig. 9 As shown, in some embodiments, the at least one pixel is a first number of pixels continuous in a row of an image, and the coordinate determination unit 201 includes a row counting module 2011 and a column counting module 2012, wherein:
[0167] The row counting module 2011 is used to receive the field synchronization signal and the pixel effective signal, perform row counting according to the field synchronization signal and the pixel effective signal, and determine the row coordinate of each pixel; wherein the field synchronization signal is valid within the scanning time of one frame of image, and the pixel effective signal is valid within the scanning time of one row of pixels;
[0168] The column counting module 2022 is used to receive the pixel valid signal, perform column counting according to the pixel valid signal, and determine the column coordinate of each pixel; wherein the row coordinates of the first number of pixels are the same but the column coordinates are different.
[0169] It should be noted that if Fig. 9 As shown, the row counting module 2021 and the column counting module 2022 are both connected to the compensation coefficient determination unit 202, and send the counted row coordinates and column coordinates to the compensation coefficient determination unit 202 respectively.
[0170] It should also be noted that, in combination with the description of the foregoing embodiment, the column counting module 2022 simultaneously determines the column coordinates of the multi-channel pixels, and therefore, the column counting module 2022 is also referred to as the multi-channel column counting module 2022. More specifically, the column counting module 2022 may include a first number of column counting submodules corresponding to the first number of pixel channels, which respectively receive pixel valid signals and perform column counting to determine the column coordinates of the pixels of the corresponding pixel channels.
[0171] In some embodiments, Fig. 9 As shown, the image compensation device 20 further includes a storage unit, wherein:
[0172] The register unit 204 is used to obtain the image resolution, the boundary row coordinates and the boundary column coordinates; wherein the boundary row coordinates correspond to the boundary between the first vertical boundary area or the second vertical boundary area and the non-border area of the curved screen, and the boundary column coordinates correspond to the boundary between the first horizontal boundary area or the second horizontal boundary area and the non-border area;
[0173] The compensation coefficient determination unit 202 is used to determine, according to the image resolution, the boundary row coordinates and the boundary column coordinates, symmetric boundary row coordinates symmetric to the boundary row coordinates and symmetric boundary column coordinates symmetric to the boundary column coordinates;
[0174] The compensation coefficient determination unit 202 is further used to compare the column coordinates of the pixel with the boundary column coordinates and the symmetric boundary column coordinates. If the magnitude relationship between the column coordinates of the pixel and the boundary column coordinates is a first relationship, the column coordinates of the pixel are determined as the target column coordinates; if the magnitude relationship between the column coordinates of the pixel and the symmetric boundary column coordinates is a second relationship, the column coordinates symmetrical to the column coordinates are determined as the target column coordinates; wherein the first relationship is less than and the second relationship is greater than; or the first relationship is greater than and the second relationship is less than;
[0175] The compensation coefficient determination unit 202 is also used to compare the row coordinates of the pixel with the boundary row coordinates and the symmetrical boundary row coordinates. If the size relationship between the row coordinates of the pixel and the boundary row coordinates is a first relationship, the row coordinates of the pixel are determined as the target row coordinates; if the size relationship between the row coordinates of the pixel and the symmetrical boundary row coordinates is a second relationship, the row coordinates symmetrical to the row coordinates are determined as the target row coordinates.
[0176] The register unit 204 is further used to obtain a plurality of sub-boundary column coordinates and corresponding compensation coefficients, and a plurality of sub-boundary row coordinates and corresponding compensation coefficients; wherein the plurality of sub-boundary column coordinates divide the target horizontal boundary region into a second number of sub-horizontal boundary regions, and the target horizontal boundary region is the first horizontal boundary region or the second horizontal boundary region; and the plurality of sub-boundary row coordinates divide the target vertical boundary region into a third number of sub-vertical boundary regions, and the target vertical boundary region is the first vertical boundary region or the second vertical boundary region;
[0177] The compensation coefficient determination unit 202 is also used to determine the sub-boundary area corresponding to the pixel according to the target coordinates; the target coordinates are the target row coordinates or the target column coordinates, and the sub-boundary area is the sub-horizontal boundary area or the sub-vertical boundary area; and determine the compensation coefficient of the pixel according to the sub-boundary coordinates of the sub-boundary area corresponding to the pixel and the corresponding compensation coefficient, and the target coordinates of the pixel; the sub-boundary coordinates are the sub-boundary row coordinates or the sub-boundary column coordinates.
[0178] It should be noted that the register unit 204 is also called a user module. The register unit 204 is connected to the compensation coefficient determination unit 202 and is mainly used to obtain and store some preset register configuration information, such as image resolution, boundary coordinates (boundary row coordinates and boundary column coordinates, which are used to determine the boundary area, such as Fig. 9 denoted as compensation boundary), sub-boundary coordinates and corresponding compensation coefficients (such as Fig. 9 The register configuration information is recorded as compensation point in the register), compensation mode, etc., and the register configuration information is sent to other connected units (or other units read the required register configuration from the register unit) for use by other units.
[0179] In some embodiments, Fig. 9 As shown, the compensation coefficient includes sub-compensation coefficients corresponding to a fourth number of color components;
[0180] The compensation coefficient determination unit 202 is further configured to perform linear interpolation calculation according to the sub-boundary coordinates of the sub-boundary area, the corresponding sub-compensation coefficients, and the target coordinates of the pixel to determine the sub-compensation coefficients of each color component of the pixel.
[0181] In some embodiments, the register unit 204 is also used to store the compensation mode;
[0182] The compensation unit 203 is also used to obtain the original pixel value of the pixel, perform normalization operation on the sub-compensation coefficient of each color component of the pixel according to the compensation mode, and perform weighted calculation on the original pixel value of the pixel according to the sub-compensation coefficient of each color component after the normalization operation to obtain the target pixel value of the pixel.
[0183] In some embodiments, the image compensation device 20 further includes a boundary determination unit 205 and a delay unit 206, wherein:
[0184] A boundary determination unit 205, configured to determine whether a pixel is located in a boundary area, and to generate a valid compensation flag if the pixel is located in the boundary area;
[0185] The delay unit 206 is used to perform delay processing on the compensation mark and the original pixel value respectively, so that the timing of the compensation mark and the original pixel value are consistent;
[0186] The compensation unit 203 is used to generate a target image according to the target pixel value when the compensation flag after the delay processing is valid; and to generate a target image according to the original pixel value when the compensation flag after the delay processing is invalid.
[0187] In some embodiments, the boundary determination unit 205 is used to determine whether a pixel is located in a boundary area based on the image resolution, boundary row coordinates, boundary column coordinates, row coordinates and column coordinates of the pixel; or, to determine whether a pixel is located in a boundary area based on the image resolution, boundary row coordinates, boundary column coordinates, target row coordinates and target column coordinates of the pixel.
[0188] It should be noted that if Fig. 9 As shown, the boundary determination unit 205 is connected to the row counting module 2011 and the column counting module 2012 in the coordinate determination unit 201, respectively, to receive the row coordinates and the column coordinates. The boundary determination unit can also be connected to the storage unit 204 to receive the image resolution and the boundary coordinates, and determine whether the corresponding pixel is located in the boundary area in combination with the image resolution and the boundary coordinates, and then generate a corresponding compensation mark.
[0189] Alternatively, the boundary determination unit 205 can also be connected to the compensation coefficient determination unit 202, and the compensation coefficient determination unit sends the target row coordinates and the target column coordinates to the boundary determination unit 205, so that the boundary determination unit 205 combines the image resolution and the boundary coordinates to determine whether the corresponding pixel is located in the boundary area, and then generates a corresponding compensation mark.
[0190] It should also be noted that, when there is interaction between the boundary determination unit 205 and the compensation coefficient determination unit 202, the boundary determination unit may not need to obtain the boundary coordinates from the storage unit 204, but the compensation coefficient determination unit 202 may provide the symmetric boundary row coordinates and the symmetric boundary column coordinates, which are then used to determine whether the pixel is located in the boundary area. The embodiments of the present disclosure do not specifically limit this.
[0191] In addition, if Fig. 9 As shown, the 4-channel RGB image is the original pixel value, and the 4-channel RGB boundary compensation image is the target pixel value.
[0192] It should be noted that the image compensation device 20 provided in the embodiment of the present disclosure is used to implement the image compensation method in the aforementioned embodiment. For details not disclosed in this embodiment, please refer to the description of the aforementioned embodiment for understanding, and no further details will be given here.
[0193] In summary, if Fig. 9 As shown, the image compensation device 20 (or image compensation system, etc.) provided in the embodiment of the present disclosure may include: a storage unit 204 (also called a user module), a row counting module 2021, a column counting module 2022 (also called a multi-channel column counting module), a boundary determination unit 205 (also called a compensation boundary generation module), a compensation coefficient determination unit 202 (also called a symmetric gain interpolation calculation module), a delay unit 206 (also called a delay module), and a compensation unit 203 (also called a gain compensation module).
[0194] The register unit 204 stores the boundary compensation setting information, including the image resolution, the horizontal / vertical compensation boundary pixel position (i.e., the boundary coordinates = Fig. 9 The compensation boundary in ) and the corresponding RGB gain compensation coefficient (ie, the sub-compensation coefficient of each color component = Fig. 9 compensation points in the compensation), compensation modes, etc. Fig. 9 As shown in the figure, these setting information can be configured by registers. Figure 3 See the timing diagram shown for understanding.
[0195] The row counting module 2021 uses the pixel valid signal to count the rows of the valid pixel area of the input image data stream, that is, to obtain the real-time image row coordinates.
[0196] Column counting module 2022: Counts each channel (e.g. Figure 3 4 channels in the image) for column counting, that is, the image column coordinates corresponding to each channel in real time.
[0197] Boundary determination unit 205: calculates the symmetrical boundary compensation area range (i.e., boundary area) in the horizontal and vertical directions of the image according to the maximum pixel position of the horizontal / vertical compensation boundary and the image resolution, and determines whether the row coordinates and multi-channel column coordinates obtained by real-time statistics are within the compensation range. If so, the horizontal / vertical compensation flag at the corresponding position is output as valid, otherwise it is invalid.
[0198] The compensation coefficient determination unit 202 performs symmetrical mapping processing on the row / column coordinates of the real-time image according to the maximum compensation boundary in the horizontal / vertical direction. The mapping method is as shown in the above formulas (1) to (4). One-dimensional linear interpolation calculation is performed on the target row coordinates and target column coordinates in the processed boundary area respectively to obtain the compensation coefficient at the corresponding pixel position. The specific calculation is as shown in the above formulas (5) to (7).
[0199] Delay unit 206: delays the 4-channel input image data (ie, the initial pixel value of each pixel) and the horizontal and vertical compensation flags to keep the effective pixel compensation position synchronous.
[0200] Compensation unit 203: According to different compensation modes, the corresponding compensation pixel gain is selected. According to different compensation boundary positions: when the horizontal boundary compensation function is turned on, the sub-compensation coefficients of the four channels in the horizontal direction obtained by interpolation are respectively adjusted with the 4-channel RGB original data (original pixel values) within the effective compensation boundary by weighted coefficients (such as multiplication) to obtain the target pixel value; when the vertical boundary compensation function is turned on, the sub-compensation coefficients in the vertical direction obtained by interpolation are respectively adjusted with the RGB original data (original pixel values) within the effective compensation boundary by weighted coefficients (such as multiplication) to obtain the target pixel value. The final output is the image result after compensating the pixels in the boundary area, that is Fig. 9 4-channel RGB boundary-compensated image in .
[0201] In short, combined Fig. 9 and Figure 3 As shown, the working principle of the image compensation device 20 is as follows:
[0202] (1) For the continuously input 4-channel image data stream, the pixel valid signal is first input into the row counting module 2021 and the column counting module 2022 to generate real-time image row coordinates and column coordinates. Then, the maximum pixel position of the horizontal / vertical compensation boundary (i.e., boundary coordinates) is configured through the register and input into the boundary determination unit 205. The boundary determination unit 205 generates the corresponding compensation flag in real time by judging whether the real-time row and column coordinates of the image are within the range of the boundary area, such as Figure 3 , 4-channel horizontal boundary compensation flags Comp_flag_HC1 to Comp_flag_HC4 in units of pixels and a vertical boundary compensation flag Comp_flag_VC in units of image lines are shown respectively.
[0203] (2) The compensation coefficient determination unit 202 divides the horizontal / vertical boundary area into multiple compensation areas by receiving multiple compensation positions (sub-boundary coordinates) configured by the register and the compensation coefficient corresponding to each sub-boundary coordinate. Then, by receiving the image row coordinates and 4-channel column coordinates generated in real time by the row and column counting module, the image row and column coordinates are symmetrically mapped using formulas (1) to (4) according to the maximum compensation boundary in the horizontal / vertical direction, wherein the pixel coordinates in the non-boundary area are set to the value of the boundary coordinate plus 1. The mapping result is shown in the following example: Figure 5 , to ensure that the interpolation calculation is symmetrical on both sides of the image horizontally and on the top and bottom sides of the image vertically, so that the compensation coefficient obtained by interpolation changes symmetrically with the image boundary as the center. Then, the compensation interval corresponding to the pixel is determined according to the target row coordinates and target column coordinates obtained by mapping, and the compensation coefficient on the coordinate is approximately calculated by piecewise linear interpolation. The overall interpolation method of the image is as follows: Figure 6 shown.
[0204] (3) Since the above step (2) requires multiple clock cycles to perform the regional interpolation calculation, in order to ensure that the image row first pixel, the image horizontal and vertical boundary compensation flags and the compensation gain value can be input into the compensation unit 203 for calculation at the same time, the above signals are also delayed.
[0205] (4) The compensation unit 203 is controlled by the register unit 204 and selects different compensation modes according to the degree of screen color deviation, as shown in the above embodiment and will not be described in detail here.
[0206] It can be understood that in this embodiment, a "unit" can be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional module.
[0207] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0208] Therefore, this embodiment provides a computer storage medium, which stores a computer program. When the computer program is executed by at least one processor, the steps of any image compensation method in the above embodiments are implemented.
[0209] This embodiment further provides a computer program product, which includes a computer program. When the computer program is executed by at least one processor, the steps of any image compensation method in the aforementioned embodiments are implemented.
[0210] Based on the above computer storage medium and computer program product, see Fig.10 , which shows a schematic diagram of the composition structure of an image compensation device provided by an embodiment of the present disclosure Figure 3 .like Fig.10 As shown, the image compensation device 20 may include: a communication interface 401, a memory 402 and a processor 403; each component is coupled together via a bus system 404. It is understood that the bus system 404 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 404 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 404. Among them, the communication interface 401 is used for receiving and sending signals in the process of sending and receiving information between other external network elements;
[0211] Memory 402, used to store computer programs that can be run on processor 403;
[0212] The processor 403 is configured to execute any of the aforementioned image compensation methods when running the computer program.
[0213] It can be understood that the memory 402 in the embodiment of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 402 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0214] The processor 403 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 403. The above processor 403 may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 402, and the processor 403 reads the information in the memory 402 and completes the steps of the above method in combination with its hardware.
[0215] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present disclosure, or a combination thereof.
[0216] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0217] In another embodiment of the present disclosure, see Fig.11, which shows a schematic diagram of the structure of a display driver provided by an embodiment of the present disclosure. Fig.11 As shown, the display driver 110 includes the image compensation device 20 described in any one of the aforementioned embodiments.
[0218] In another embodiment of the present disclosure, see Fig.12 , which shows a schematic diagram of the composition structure of a display provided by an embodiment of the present disclosure. Fig.12 As shown, the display 120 includes the image compensation device 20 described in any one of the aforementioned embodiments.
[0219] In another embodiment of the present disclosure, an electronic device is provided. The electronic device 30 includes the image compensation device 20 described in any one of the aforementioned embodiments, or includes the display driver 110 described in the aforementioned embodiments, or includes the display 120 described in the aforementioned embodiments.
[0220] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure.
[0221] It should be noted that in the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device 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 device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0222] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.
[0223] The methods disclosed in several method embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments.
[0224] The features disclosed in several product embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments.
[0225] The features disclosed in several method or device embodiments provided in the present disclosure may be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0226] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. An image compensation device, characterized in that: Applicable to an electronic device with a curved screen, the image compensation device comprises: a coordinate determination unit, configured to determine a row coordinate and a column coordinate of each of the at least one pixel; a compensation coefficient determination unit, configured to symmetrically map the row coordinates and the column coordinates of the pixel located in the boundary area of the curved screen to obtain the target row coordinates and the target column coordinates of the pixel; and determine the compensation coefficient of the pixel according to the target row coordinates or the target column coordinates of the pixel; The compensation unit is used to determine a target pixel value of the pixel according to the compensation coefficient of the pixel and the original pixel value of the pixel.
2. The image compensation device according to claim 1, characterized in that: The at least one pixel is a first number of pixels continuous in a row of the image, and the coordinate determination unit includes a row counting module and a column counting module, wherein: The row counting module is used to receive a field synchronization signal and a pixel valid signal, perform row counting according to the field synchronization signal and the pixel valid signal, and determine the row coordinate of each pixel; wherein the field synchronization signal is valid within the scanning time of a frame of image, and the pixel valid signal is valid within the scanning time of a row of pixels; The column counting module is used to receive the pixel valid signal, perform column counting according to the pixel valid signal, and determine the column coordinate of each pixel; wherein the row coordinates of the first number of pixels are the same but the column coordinates are different.
3. The image compensation device according to claim 1, characterized in that: The border region includes: a first horizontal border region and a second horizontal border region symmetrically distributed on two opposite sides of the curved screen along the row direction, and a first vertical border region and a second vertical border region symmetrically distributed on two opposite sides of the curved screen along the column direction; the image compensation device also includes a storage unit, wherein: The register unit is used to obtain image resolution, boundary row coordinates and boundary column coordinates; wherein the boundary row coordinates correspond to the boundary between the first vertical boundary area or the second vertical boundary area and the non-border area of the curved screen, and the boundary column coordinates correspond to the boundary between the first horizontal boundary area or the second horizontal boundary area and the non-border area; The compensation coefficient determination unit is used to determine, according to the image resolution, the boundary row coordinates and the boundary column coordinates, a symmetric boundary row coordinate that is symmetric to the boundary row coordinates and a symmetric boundary column coordinate that is symmetric to the boundary column coordinates; The compensation coefficient determination unit is further used to compare the column coordinates of the pixel with the boundary column coordinates and the symmetric boundary column coordinates, and if the magnitude relationship between the column coordinates of the pixel and the boundary column coordinates is a first relationship, the column coordinates of the pixel are determined as the target column coordinates; if the magnitude relationship between the column coordinates of the pixel and the symmetric boundary column coordinates is a second relationship, the column coordinates symmetrical to the column coordinates are determined as the target column coordinates; wherein the first relationship is less than and the second relationship is greater than; or the first relationship is greater than and the second relationship is less than; The compensation coefficient determination unit is also used to compare the row coordinates of the pixel with the boundary row coordinates and the symmetric boundary row coordinates. If the size relationship between the row coordinates of the pixel and the boundary row coordinates is the first relationship, the row coordinates of the pixel are determined as the target row coordinates; if the size relationship between the row coordinates of the pixel and the symmetric boundary row coordinates is the second relationship, the row coordinates symmetrical to the row coordinates are determined as the target row coordinates.
4. The image compensation device according to claim 3, characterized in that: The register unit is further used to obtain a plurality of sub-boundary column coordinates and corresponding compensation coefficients, and a plurality of sub-boundary row coordinates and corresponding compensation coefficients; wherein the plurality of sub-boundary column coordinates divide the target horizontal boundary area into a second number of sub-horizontal boundary areas, and the target horizontal boundary area is the first horizontal boundary area or the second horizontal boundary area; and the plurality of sub-boundary row coordinates divide the target vertical boundary area into a third number of sub-vertical boundary areas, and the target vertical boundary area is the first vertical boundary area or the second vertical boundary area; The compensation coefficient determination unit is also used to determine the sub-boundary area corresponding to the pixel according to the target coordinates; the target coordinates are the target row coordinates or the target column coordinates, and the sub-boundary area is the sub-horizontal boundary area or the sub-vertical boundary area; and determine the compensation coefficient of the pixel according to the sub-boundary coordinates of the sub-boundary area corresponding to the pixel and the corresponding compensation coefficient, and the target coordinates of the pixel; the sub-boundary coordinates are the sub-boundary row coordinates or the sub-boundary column coordinates.
5. The image compensation device according to claim 4, characterized in that: The compensation coefficient includes sub-compensation coefficients corresponding to a fourth number of color components; The compensation coefficient determination unit is further used to perform linear interpolation calculation according to the sub-boundary coordinates of the sub-boundary area and the corresponding sub-compensation coefficients, and the target coordinates of the pixel to determine the sub-compensation coefficients of each color component of the pixel.
6. The image compensation device according to claim 5, characterized in that: The storage unit is also used to store the compensation mode; The compensation unit is also used to obtain the original pixel value of the pixel, perform normalization operation on the sub-compensation coefficient of each color component of the pixel according to the compensation mode, and perform weighted calculation on the original pixel value of the pixel according to the sub-compensation coefficient of each color component after the normalization operation to obtain the target pixel value of the pixel.
7. The image compensation device according to any one of claims 2 to 6, characterized in that: The image compensation device further comprises a boundary determination unit and a delay unit, wherein: The boundary determination unit is used to determine whether the pixel is located in the boundary area, and generate a valid compensation flag if the pixel is located in the boundary area; The delay unit is used to perform delay processing on the compensation mark and the original pixel value respectively, so that the timing of the compensation mark and the original pixel value are consistent; The compensation unit is used to generate a target image according to the target pixel value when the compensation flag after the delay processing is valid; and to generate a target image according to the original pixel value when the compensation flag after the delay processing is invalid.
8. The image compensation device according to claim 7, characterized in that: The boundary determination unit is used to determine whether the pixel is located in the boundary area according to the image resolution, the boundary row coordinates, the boundary column coordinates, the row coordinates and the column coordinates of the pixel; Alternatively, whether the pixel is located in the boundary area is determined according to the image resolution, the boundary row coordinates, the boundary column coordinates, the target row coordinates and the target column coordinates of the pixel.
9. An image compensation method, characterized in that: Applicable to electronic devices with curved screens, including: determining row coordinates and column coordinates of each of the at least one pixel; Performing symmetrical mapping on the row coordinates of the pixel to obtain the target row coordinates of the pixel; and performing symmetrical mapping on the column coordinates of the pixel to obtain the target column coordinates of the pixel; Determining whether the pixel is located in a boundary area of the curved screen; When the pixel is located in the boundary area, determining a compensation coefficient of the pixel according to the target row coordinate or the target column coordinate of the pixel; A target pixel value of the pixel is determined according to the compensation coefficient of the pixel and the original pixel value of the pixel.
10. A display driver, characterized in that: The invention comprises the image compensation device as claimed in any one of claims 1 to 8.
11. A display, characterized in that: The invention comprises the image compensation device as claimed in any one of claims 1 to 8.
