Electronic device, gray scale compensation method, apparatus, and storage medium
By adjusting the grayscale values of the target sub-pixels in the naked-eye 3D display device, the problem of high crosstalk rate was solved, improving the viewing experience and image quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BOE TECHNOLOGY GROUP CO LTD
- Filing Date
- 2024-04-16
- Publication Date
- 2026-07-31
AI Technical Summary
In existing glasses-free 3D display technologies, crosstalk rates are high, affecting the viewing experience and are difficult to reduce effectively.
The processor in the electronic device adjusts the grayscale values of the transition region and the non-transition region according to the position of the target sub-pixel, reducing the grayscale value of the transition region and increasing the grayscale value of the non-transition region to reduce the crosstalk rate.
It effectively reduces crosstalk rate, improves the viewing experience of naked-eye 3D, avoids image brightness reduction and distortion, and enhances the user's viewing experience.
Smart Images

Figure CN121153074B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image technology, and in particular to an electronic device, a grayscale compensation method, an apparatus, and a storage medium. Background Technology
[0002] In terms of reducing crosstalk rate, naked-eye 3D technology can optimize the design of beam-splitting components such as lenses to improve their beam-splitting effect, while ensuring the accuracy of human eye tracking to improve the viewing experience and reduce crosstalk.
[0003] Traditional image arrangement algorithms typically perform black-insertion or white-insertion processing in the transition area between the left and right image regions. By removing black pixels from the transition area, crosstalk is reduced. However, completely removing black pixels from the transition area significantly reduces image brightness and may cause image distortion. Conversely, white-insertion processing in the transition area can, to some extent, amplify the impact of crosstalk. Therefore, crosstalk rate has become a key indicator for evaluating the effect of glasses-free 3D displays, and reducing crosstalk rate has become a critical technical problem that urgently needs to be solved in the field of glasses-free 3D displays. Summary of the Invention
[0004] On the one hand, an electronic device, grayscale compensation method, apparatus, and storage medium are provided, which can effectively reduce crosstalk rate and improve the viewing effect of naked-eye 3D.
[0005] The electronic device includes a display screen and a processor. The display screen has multiple cycles, each cycle containing multiple sub-pixels, and each cycle has a left region and a right region. The processor is configured to: determine the region of the center point of a target sub-pixel within the current cycle; the region of the center point of the target sub-pixel within the current cycle is determined based on the position of the center sub-pixel of the row in which the target sub-pixel is located. The processor is also configured to: determine a target grayscale value of the target sub-pixel when the center point of the target sub-pixel is in a transition region, and determine a first grayscale value of a sub-pixel in a non-transition region.
[0006] The first grayscale value is the grayscale value of the sub-pixels in the non-transition region after adjustment and enlargement, and the target grayscale value is the grayscale value of the target sub-pixels after adjustment and decrementation. The region of the current period includes transition regions and non-transition regions. The transition region is the area between the boundary line of the left and right regions of the current period; the non-transition region is the area other than the transition region.
[0007] In view of this, embodiments of this application provide an electronic device in which the processor determines the region of the center point of the target sub-pixel in a given period based on the position of the center sub-pixel in that row. When the target sub-pixel is in the transition region between the left and right regions of the given period, the grayscale value of the target sub-pixel is reduced, thus determining the target grayscale value of the sub-pixel. Simultaneously, the grayscale value of sub-pixels in non-transition regions is increased, thus determining the first grayscale value of the sub-pixels in non-transition regions. This effectively reduces crosstalk rate and improves the viewing effect of glasses-free 3D.
[0008] In some embodiments, the transition region includes a first sub-transition region and a second sub-transition region, wherein the first sub-transition region is the region adjacent to the region boundary of the current cycle, and the second sub-transition region is the region other than the first sub-transition region.
[0009] In some embodiments, when the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: determine the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel; the region proportion is used to characterize the proportion of the target sub-pixel in the current period; and determine the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0010] In some embodiments, when the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: determine a first grayscale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of a portion of the current period; and determine a target grayscale value of the target sub-pixel based on the first grayscale coefficient and the image grayscale value of the target sub-pixel.
[0011] Based on the above technical solution, the electronic device in this embodiment of the application uses a non-linear method to determine the target grayscale value. That is, by calculating the determined first grayscale coefficient and the image grayscale value of the target sub-pixel, the target grayscale value is determined more accurately. Furthermore, the current grayscale value of the target sub-pixel is adjusted to the target grayscale value, reducing the crosstalk rate of the naked-eye 3D image.
[0012] In some embodiments, when the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: perform black extraction processing on the target sub-pixel to determine the target grayscale value of the target sub-pixel.
[0013] In some embodiments, when the center point of the target sub-pixel is located in the second sub-transition region, the processor is specifically configured to: determine the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel; the region proportion is used to characterize the proportion of the target sub-pixel in the current period; and determine the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0014] Based on the above technical solution, the electronic device in this embodiment determines the target grayscale value when the center point of the target sub-pixel is in the second sub-transition region. That is, the electronic device performs transition processing in advance, rather than waiting until the center point of the target sub-pixel is in the first sub-transition region between the left and right regions before performing transition processing. This avoids adjusting the pixel only when severe crosstalk problems occur.
[0015] In some embodiments, the non-transition region includes a second sub-transition region; the processor is specifically configured to: determine a second grayscale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the current period; determine a second grayscale value of the sub-pixel in the non-transition region based on the second grayscale coefficient and the image grayscale value of the target sub-pixel; and take the minimum grayscale value between the second grayscale value and the grayscale threshold as the first grayscale value of the sub-pixel in the non-transition region.
[0016] Based on the above scheme, the electronic device in this application embodiment reduces the grayscale value of the target sub-pixel while increasing the grayscale value of the sub-pixel in the non-transition region, thereby balancing the width of the high-brightness platform and the low-brightness platform in the transition region and the non-transition region, and further effectively improving the actual viewing range of naked-eye 3D.
[0017] In some embodiments, the region proportion includes the proportion of the target sub-pixel in the left region of the current period and the proportion of the target sub-pixel in the right region of the current period.
[0018] In some embodiments, the image grayscale value includes the left image grayscale value of the target sub-pixel and the right image grayscale value of the target sub-pixel.
[0019] In some embodiments, the processor is further configured to: determine the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the grayscale value of the left image, or the grayscale value of the right image.
[0020] In some embodiments, the processor is further configured to: determine the adjusted grayscale value of the left image of the target sub-pixel based on the proportion of the left region and the grayscale value of the left image; determine the adjusted grayscale value of the right image of the target sub-pixel based on the proportion of the right region and the grayscale value of the right image; and determine the target grayscale value of the target sub-pixel based on the adjusted grayscale values of the left and right images.
[0021] In some embodiments, the electronic device includes a lens; the processor is further configured to: acquire a full period width; the full period width is a distance value between the centers of two adjacent lenses; determine a portion of the period width of the row in which the target sub-pixel is located based on the full period width and the position of the center sub-pixel; the portion of the period width is the width of the leftmost incomplete period of the row; and determine the region of the target sub-pixel in the period based on the portion of the period width.
[0022] In some embodiments, the processor is further configured to: obtain the offset of the center sub-pixel of the row; the offset is the offset between the center sub-pixel of the row and the center point of the display screen; and determine the position of the center sub-pixel of the row where the target sub-pixel is located based on the offset and the pixel width.
[0023] On another front, a grayscale compensation method is provided, which is applied to an electronic device, including a display screen and a processor. The display screen has multiple cycles, each cycle containing multiple sub-pixels, and each cycle has a left region and a right region. The method includes: determining the region of the center point of a target sub-pixel within the cycle; the region of the center point of the target sub-pixel within the cycle is determined based on the position of the center sub-pixel of the row in which the target sub-pixel is located, and the region of the cycle includes a transition region and a non-transition region, wherein the transition region is the region between the boundary line of the left and right regions of the cycle; and the non-transition region is the region other than the transition region; when the center point of the target sub-pixel is in the transition region, determining the target grayscale value of the target sub-pixel, and determining the first grayscale value of the sub-pixel in the non-transition region; the first grayscale value is the grayscale value of the sub-pixel in the non-transition region after adjustment and increase, and the target grayscale value is the grayscale value of the target sub-pixel after adjustment and decrease.
[0024] In some embodiments, the transition region includes a first sub-transition region and a second sub-transition region, wherein the first sub-transition region is the region adjacent to the region boundary of the current cycle, and the second sub-transition region is the region other than the first sub-transition region.
[0025] In some embodiments, the transition region includes a first sub-transition region; when the center point of the target sub-pixel is located in the transition region, determining the target grayscale value of the target sub-pixel includes: determining the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel; the region proportion is used to characterize the proportion of the target sub-pixel in the current period; determining the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0026] In some embodiments, the transition region includes a first sub-transition region; when the center point of the target sub-pixel is in the transition region, determining the target grayscale value of the target sub-pixel includes: determining a first grayscale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of a portion of the current period; and determining the target grayscale value of the target sub-pixel based on the first grayscale coefficient and the image grayscale value of the target sub-pixel.
[0027] In some embodiments, the transition region includes a first sub-transition region; when the center point of the target sub-pixel is in the transition region, determining the target grayscale value of the target sub-pixel includes: performing black extraction processing on the target sub-pixel to determine the target grayscale value of the target sub-pixel.
[0028] In some embodiments, the transition region includes a second sub-transition region. When the center point of the target sub-pixel is located in the transition region, determining the target grayscale value of the target sub-pixel includes: determining the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel; the region proportion is used to characterize the proportion of the target sub-pixel in the current period; and determining the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0029] In some embodiments, the non-transition region includes a second sub-transition region; determining the first grayscale value of a sub-pixel in the non-transition region includes: determining a second grayscale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the current period; determining the second grayscale value of the sub-pixel in the non-transition region based on the second grayscale coefficient and the image grayscale value of the target sub-pixel; and taking the minimum grayscale value between the second grayscale value and a grayscale threshold as the first grayscale value of the sub-pixel in the non-transition region.
[0030] In some embodiments, the region proportion includes the proportion of the target sub-pixel in the left region of the current period and the proportion of the target sub-pixel in the right region of the current period.
[0031] In some embodiments, the image grayscale value includes the left image grayscale value of the target sub-pixel and the right image grayscale value of the target sub-pixel.
[0032] In some embodiments, determining the target grayscale value of a target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel includes: determining the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the grayscale value of the left image, or the grayscale value of the right image.
[0033] In some embodiments, determining the target grayscale value of a target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel includes: determining the adjusted left image grayscale value of the target sub-pixel based on the proportion of the left region and the grayscale value of the left image; determining the adjusted right image grayscale value of the target sub-pixel based on the proportion of the right region and the grayscale value of the right image; and determining the target grayscale value of the target sub-pixel based on the adjusted left image grayscale value and the adjusted right image grayscale value.
[0034] Based on the above technical solution, when the target sub-pixel occupies a small area and has a large grayscale value, its brightness is significantly affected by the grayscale value. Similarly, when the target sub-pixel occupies a large area but has a small grayscale value, its brightness is significantly affected by the grayscale value. Therefore, by adjusting the grayscale values of the left and right images, the target grayscale value is determined, allowing for more accurate adjustment of the target sub-pixel's grayscale value.
[0035] In some embodiments, the electronic device includes a lens; determining the region of the center point of the target sub-pixel in the current period includes: the electronic device can acquire the full period width, and based on the full period width and the position of the center sub-pixel, determine a portion of the period width of the current row, and then determine the region of the target sub-pixel in the current period based on the portion of the period width.
[0036] Part of the period width is the width of the leftmost incomplete period in the row. The full period width is the distance between the centers of two adjacent lenses.
[0037] It is understandable that the starting position of each cycle does not necessarily correspond exactly to the starting position of the sub-pixel, which may result in incomplete cycles.
[0038] Based on the above technical solution, electronic devices can determine the region of the target sub-pixel in its current period, so as to determine the appropriate processing method for the target sub-pixel in the future, which is more appropriate and can better improve the user experience.
[0039] In some embodiments, the grayscale compensation method further includes: obtaining the offset of the center sub-pixel of the row; the offset being the offset between the center sub-pixel of the row and the center point of the display screen; and determining the position of the center sub-pixel of the row containing the target sub-pixel based on the offset and the pixel width.
[0040] In another aspect, a grayscale compensation device is provided, including a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run computer programs or instructions to implement the grayscale compensation method of the first aspect or any embodiment of the first aspect.
[0041] In another aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores computer program instructions that, when executed on a computer (e.g., a receiving node), cause the computer to perform the grayscale compensation method as described in any of the above embodiments.
[0042] In another aspect, a computer program product is provided. The computer program product includes computer program instructions that, when executed on a computer (e.g., a receiving node), cause the computer to perform the grayscale compensation method as described in any of the above embodiments.
[0043] In another aspect, a computer program is provided. When executed on a computer (e.g., a receiving node), the computer program causes the computer to perform the grayscale compensation method as described in any of the above embodiments. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in this disclosure, the accompanying drawings used in some embodiments of this disclosure will be briefly described below. Obviously, the drawings described below are only drawings of some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams and are not intended to limit the actual size of the product, the actual flow of the method, the actual timing of the signals, etc. involved in the embodiments of this disclosure.
[0045] Figure 1 This is a schematic diagram showing the 3D effect of a real-world scenario based on some embodiments;
[0046] Figure 2 This is a composite diagram of a left view and a right view according to some embodiments;
[0047] Figure 3 This is a schematic diagram of image ghosting phenomena according to some embodiments;
[0048] Figure 4 This is a structural diagram of an electronic device according to some embodiments;
[0049] Figure 5 Here is a flowchart of a grayscale compensation method according to some embodiments;
[0050] Figure 6 This is a schematic diagram of a periodic region according to some embodiments;
[0051] Figure 7a This is a schematic diagram of the periodic region according to some other embodiments;
[0052] Figure 7b This is a schematic diagram of the periodic region according to some other embodiments;
[0053] Figure 8 This is a scene diagram illustrating a grayscale compensation method according to some embodiments;
[0054] Figure 9 A scene diagram illustrating a grayscale compensation method according to other embodiments;
[0055] Figure 10 This is a schematic diagram of the periodic region according to some other embodiments;
[0056] Figure 11 A scene diagram illustrating a grayscale compensation method according to other embodiments;
[0057] Figure 12 This is a schematic diagram of the grayscale coefficient curve according to some embodiments;
[0058] Figure 13 A scene diagram illustrating a grayscale compensation method according to other embodiments;
[0059] Figure 14 A scene diagram illustrating a grayscale compensation method according to other embodiments;
[0060] Figure 15 A scene diagram illustrating a grayscale compensation method according to other embodiments;
[0061] Figure 16 This is a structural diagram of a grayscale compensation device according to some embodiments;
[0062] Figure 17 This is a structural diagram of a grayscale compensation device according to some embodiments. Detailed Implementation
[0063] The technical solutions in some embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments provided in this disclosure are within the scope of protection of this disclosure.
[0064] Unless the context otherwise requires, throughout the specification and claims, the term "comprise" and its other forms, such as the third-person singular "comprises" and the present participle "comprising," are interpreted as open-ended and encompassing, meaning "including, but not limited to." In the description of the specification, terms such as "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific example," or "some examples," etc., are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this disclosure. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, a particular feature, structure, material, or characteristic may be included in any suitable manner in any one or more embodiments or examples.
[0065] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.
[0066] "At least one of A, B and C" has the same meaning as "at least one of A, B or C", both including the following combinations of A, B and C: only A, only B, only C, combinations of A and B, combinations of A and C, combinations of B and C, and combinations of A, B and C.
[0067] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.
[0068] As used herein, depending on the context, the term “if” may optionally be interpreted as meaning “when”, “in the event of”, “in response to determination”, or “in response to detection”. Similarly, depending on the context, the phrase “if it is determined that…” or “if [the stated condition or event] is detected” may optionally be interpreted as meaning “in the event of determination that…”, “in response to determination that…”, “when [the stated condition or event] is detected”, or “in response to the detection of [the stated condition or event]”.
[0069] The use of “applies to” or “configured to” in this article implies an open and inclusive language that does not preclude applicability to or configuration to devices that perform additional tasks or steps.
[0070] In addition, the use of "based on" implies openness and inclusivity, because processes, steps, calculations or other actions "based on" one or more conditions or values can in practice be based on additional conditions or values beyond those conditions.
[0071] As used herein, “about,” “approximately,” or “approximately” includes the value stated and the average value within an acceptable range of deviation from the given value, wherein the acceptable range of deviation is determined by a person skilled in the art taking into account the measurement under discussion and the error associated with the measurement of the given quantity (i.e., the limitations of the measurement system).
[0072] As used herein, “equal” includes the described situation and situations that are similar to the described situation, within an acceptable range of deviation, which is determined by those skilled in the art taking into account the measurement under discussion and the error associated with the measurement of the particular quantity (i.e., the limitations of the measurement system). “Equal” includes absolute equality and approximate equality, where an acceptable range of deviation for approximate equality may be, for example, a difference between the two equal entities less than or equal to 5% of either one.
[0073] The following explanations of the terms used in the embodiments of this application are provided to facilitate the reader's understanding.
[0074] 1. Glasses-free 3D Technology. With technological advancements, this technology is expected to be widely applied in consumer electronics products such as smartphones and televisions, while also enabling further innovation in professional fields. Simultaneously, glasses-free 3D technology can provide a more immersive experience for movies, games, and virtual reality, while also creating new opportunities for advertising and professional training. However, glasses-free 3D technology still needs to overcome numerous technical barriers to provide users with a more realistic glasses-free 3D effect and a more immersive user experience, demonstrating significant market potential in entertainment, advertising, healthcare, and education.
[0075] 2. The Display Principle of Glasses-Free 3D Technology. Based on the human eye's depth perception mechanism, the human eye can observe a scene simultaneously with both eyes. Each eye sees a slightly different perspective, and this difference, after being processed by the brain, allows the brain to perceive the depth and three-dimensionality of objects in space. For example... Figure 1 As shown, in naked-eye 3D display devices, most of them use the beam-splitting principle of beam-splitting components such as lenses or gratings to transmit the different images seen by the left and right eyes to the corresponding eyes to achieve the naked-eye 3D effect.
[0076] like Figure 2 As shown, current naked-eye 3D technology mainly utilizes slit-type liquid crystal gratings and cylindrical lenses.
[0077] (1) A slit-type liquid crystal grating uses a grating added in front of the screen to block the screen light. When the image seen by the left eye is displayed on the liquid crystal screen, the opaque stripes block the right eye. Similarly, when the image that should be seen by the right eye is displayed on the liquid crystal screen, the opaque stripes block the left eye. By utilizing binocular parallax, a 3D effect can be produced. However, due to the blocking of screen light, its screen brightness is only 1 / 4 of that of a 2D screen.
[0078] (2) The cylindrical lens projects the corresponding pixels of the left and right eyes into the left and right eyes respectively through the refraction principle of the lens, so that the observer can see the 3D stereoscopic image. Compared with the slit grating technology, the biggest advantage is that the lens does not block the light, so the brightness of the picture is basically unaffected and the 3D display effect is better.
[0079] 3. Crosstalk Issues. Crosstalk in glasses-free 3D displays is mainly caused by factors such as image arrangement methods, optical component design, and manufacturing capabilities. In practical applications, lenses are usually placed at an angle so that the pixel arrangement on the 2D display device is aligned with the edge angle. However, in practice, lenses and other beam-splitting components alone cannot achieve 100% beam splitting. Furthermore, the image arrangement algorithm cannot ensure that all sub-pixels are completely allocated to either the left or right view. This inevitably results in some brightness from the image intended for the left eye entering the right eye, leading to crosstalk.
[0080] Crosstalk rate is an important evaluation indicator of the quality of naked-eye 3D effects. It measures the brightness crossover between the left and right eye images. When the crosstalk rate reaches a certain level, ghosting can be perceived. Figure 3 As shown, it is generally believed that when the crosstalk rate is greater than 2%, ghosting can be perceived, and when the crosstalk rate exceeds 10%, it will lead to obvious ghosting. Therefore, the occurrence of crosstalk will affect the actual viewing experience of naked-eye 3D.
[0081] The above provides a brief introduction to the technologies related to this application.
[0082] In terms of reducing crosstalk rate, naked-eye 3D technology can optimize the design of beam-splitting components such as lenses to improve their beam-splitting effect, while ensuring the accuracy of human eye tracking to improve the viewing experience and reduce crosstalk.
[0083] Traditional image arrangement algorithms insert black or white pixels in the transition area between the left and right image regions. This reduces crosstalk by removing black pixels from the transition area. However, completely removing black pixels from the transition area significantly reduces image brightness and can cause distortion. Inserting white pixels, on the other hand, can actually amplify the effects of crosstalk. Therefore, crosstalk rate has become a key indicator for evaluating the effect of glasses-free 3D displays, and reducing crosstalk rate has become a critical technical problem that urgently needs to be solved in the field of glasses-free 3D displays.
[0084] In view of this, embodiments of this application provide an electronic device in which the processor determines the region of the center point of the target sub-pixel in the current period based on the position of the center sub-pixel of the row in which the target sub-pixel is located. When the target sub-pixel is in the transition region between the left and right regions of the current period, the processor decreases the grayscale value of the target sub-pixel, i.e., determines the target grayscale value of the sub-pixel, and adjusts the current grayscale value of the target sub-pixel to the target grayscale value. At the same time, the processor increases the grayscale value of sub-pixels in non-transition regions, i.e., adjusts the current grayscale value of sub-pixels in non-transition regions to the first grayscale value, thereby effectively reducing crosstalk rate and improving the viewing effect of naked-eye 3D.
[0085] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0086] like Figure 4 As shown, Figure 4 This is a structural diagram of an electronic device 400 provided in an embodiment of this application. The electronic device 400 can be a terminal device with a display screen, such as a television set. The electronic device 400 may include a display screen 401, at least one processor 402, and a transceiver 403, and may also include a memory 404. The processor 402, memory 404, and transceiver 403 can be connected via communication lines.
[0087] In this embodiment of the application, the display screen 401 is used to display images. The display screen 401 corresponds to multiple cycles, each cycle includes multiple sub-pixels, and each cycle has a left region and a right region.
[0088] In this embodiment, the processor 402 can be a chip. Chips can include five main categories: logic chips, memory chips, sensor chips, power chips, and communication chips. Processors primarily handle specific computational and control tasks within the system, such as microcontroller units (MCUs), central processing units (CPUs), graphics processing units (GPUs), and neural processing units (NPUs). Memory chips primarily handle data storage within the system, as well as some memory controller chips, such as dynamic random access memory (DRAM), static random access memory (SRAM), and flash memory (Flash). Sensor chips primarily handle information acquisition, presentation, and interaction within the system, such as input / output devices and some signal processing chips. Communication chips (wired and wireless) are those that primarily perform communication functions within a system. Examples include Ethernet chips, switching chips, WAN and LAN chips, point-to-point and ad hoc network chips, as well as auxiliary communication devices such as filters, amplifiers, and power supplies. Commonly known chips in this category include wireless fidelity (WiFi), Bluetooth, 5G baseband, GPS, narrowband Internet of Things (NB-IoT), network interface cards (NICs), and switches.
[0089] The communication line may include a path for transmitting information between the aforementioned components.
[0090] The memory 404 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0091] In one possible design, the memory 404 can exist independently of the processor 402, meaning the memory 404 can be an external memory of the processor 402. In this case, the memory 404 can be connected to the processor 402 via a communication line to store execution instructions or application code, and its execution is controlled by the processor 402 to implement the network quality determination method provided in the following embodiments of this application. In another possible design, the memory 404 can also be integrated with the processor 402, meaning the memory 404 can be an internal memory of the processor 402. For example, the memory 404 can be a cache, which can be used to temporarily store some data and instruction information.
[0092] In one possible implementation, processor 402 may include one or more CPUs.
[0093] It should be noted that the electronic devices described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of electronic devices and the emergence of other electronic devices, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0094] The methods described in the following embodiments can all be implemented in the electronic device 400 having the above-described hardware structure. The methods of the embodiments of this application will be described below.
[0095] The grayscale compensation method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0096] This application embodiment can compensate for the grayscale values of sub-pixels, thereby avoiding crosstalk problems. The following, with reference to the accompanying drawings, details a grayscale compensation method provided by this application embodiment, such as... Figure 5 As shown, the grayscale compensation method may include S501-S502. S501 can also be referred to as the "determining the region where the target sub-pixel is located" process, and S502 can also be referred to as the "determining the grayscale value" process. S501-S502 are described in detail below.
[0097] S501. Determine the region of the target sub-pixel's center point within the current period based on the position of the center sub-pixel in the row where the target sub-pixel is located.
[0098] In the relevant embodiments of this application, the periodic region includes a transition region and a non-transition region. The transition region is the area between the boundary line of the left and right regions of the current period. It is understood that when the center point of the target sub-pixel is located in the transition region between the boundary line of the left and right regions, the target sub-pixel will span both the left and right regions.
[0099] The non-transition region refers to the area outside the transition region. The non-transition region is used to represent situations where all target sub-pixels are located in the left region of the current period, or all target sub-pixels are located in the right region of the current period. In other words, target sub-pixels do not span both the left and right regions of the current period.
[0100] In this embodiment, the electronic device can obtain the full cycle width and, based on the full cycle width and the position of the center sub-pixel, determine a portion of the cycle width of the current row. Furthermore, the electronic device obtains the region of the target sub-pixel within its current cycle based on this portion of the cycle width.
[0101] The full period width is used to characterize the distance between the centers of two adjacent lenses, while the partial period width is the width of the leftmost incomplete period in the row.
[0102] It should be noted that the complete cycle and the cycle in the embodiments of this application can be understood as the same concept.
[0103] For example, the distance between the human eye and the lens in the display screen is z, the distance between the lens and the display panel in the display screen is h, and the horizontal pitch of the lens is pitch. The electronic device can determine the coverage area of a lens on the display panel, i.e., the width deltax of a complete cycle, which satisfies the following formula 1:
[0104] deltax=(z+h)*pitch / z Formula 1
[0105] The electronic device substitutes the width of a complete cycle (deltax) into Formula 2 to obtain the width of the leftmost incomplete cycle in the current row:
[0106] edge_distance=(x i -deltax / 2)%deltax formula 2
[0107] Where edge_distance is a portion of the cycle width of the row, x i represents the position of the center sub-pixel in the i-th row (the position of the center sub-pixel), and % is used to characterize the modulo algorithm.
[0108] Furthermore, the electronic device determines the specific position of the target sub-pixel within its cycle based on the distance of the central sub-pixel from the leftmost edge. In other words, the electronic device sets the position of the central sub-pixel x... i Substitute the period width edge_distance of the row into the following formula 3:
[0109] position=(x i +deltax-edge_distance)%deltax formula 3
[0110] Where position is the specific position of the center point of the target sub-pixel within the cycle.
[0111] For example, the position x of the center sub-pixel i The value is 13, the full cycle width (deltax) is 5, and the width (edge_distance) of the leftmost incomplete cycle in the row is 2. The electronic device uses formula 3 to obtain (13+5-2) / 5 = 3 remainder 2. Therefore, the electronic device can determine that the center point of the target sub-pixel is located at the 2nd position of the 4th cycle based on the result 3 remainder 2. For example, the position x of the center sub-pixel... i The value is 8, the full cycle width deltax is 5, and the width edge_distance of the leftmost incomplete cycle in the row is 2. The electronic device obtains (8+5-2) / 5 = 2 remainder 1 through the above formula 3. Therefore, the electronic device can determine that the center point of the target sub-pixel is in the first position of the third cycle by using the result 2 remainder 1.
[0112] It should be noted that in the embodiments of this application, "the row" can be understood as "the row in which the target sub-pixel is located". That is, "the position of the center sub-pixel" can be understood as "the position of the center sub-pixel of the row in which the target sub-pixel is located".
[0113] It is understandable that, since a complete period width includes multiple sub-pixels, when the complete period width deltax is 5, the width of a sub-pixel can be 1, and 0-2.5 is the right region of the complete period, and 2.5-5 is the left region of the complete period.
[0114] like Figure 6 As shown, taking the center point of the target sub-pixel at the first position of the third cycle as an example. If the center point of the target sub-pixel is at the first position of the third cycle, the target sub-pixel is located between 0.5 and 1.5 of the third cycle. Therefore, it can be seen that the target sub-pixel is entirely within the right region of its current cycle and is not in the transition region. However, the sub-pixel preceding the target sub-pixel is in the transition region, specifically between 4.5 of the second cycle and 0.5 of the third cycle.
[0115] Understandably, in combination Figure 6 As shown, when the full period width deltax is 5 and the width of a sub-pixel is 1, the center point of the target sub-pixel is in the transition region if it meets any of the following conditions: less than 0.5, between 2 and 3, or greater than 4.5.
[0116] S502. When the center point of the target sub-pixel is in the transition region, determine the target grayscale value of the target sub-pixel and determine the first grayscale value of the sub-pixel in the non-transition region.
[0117] In this embodiment, the transition region includes a first sub-transition region and a second sub-transition region. The first sub-transition region is the region adjacent to the boundary of the region in the current cycle, and the second sub-transition region is the transition region excluding the first sub-transition region. The first grayscale value is the grayscale value of the sub-pixels in the non-transition region after adjustment and increase, and the target grayscale value is the grayscale value of the target sub-pixels after adjustment and decrease.
[0118] For example, such as Figure 7a As shown, a shaded area represents the width of a subpixel. When the center point of a subpixel is in region CD, the subpixel is entirely within the right region of its current period. Similarly, when the center point of a subpixel is in region HI, the subpixel is entirely within the right region of its current period. That is, AC, DH, and IK are transition regions. Since AB, EF, FG, and JK are adjacent to the boundaries of their respective period regions, they are the first sub-transition regions. Correspondingly, the transition regions BC, DE, GH, and IJ, excluding the first sub-transition regions, are the second sub-transition regions.
[0119] In one possible implementation, when the center point of the target sub-pixel is in the transition region, the electronic device sets the grayscale value of the target sub-pixel to a preset value.
[0120] For example, the preset value is 0. When the center point of the target sub-pixel is located in the AC region, DH region, or IK region, the electronic device sets the grayscale value of the target sub-pixel to 0, that is, it performs black-removal processing on sub-pixels in the transition region. In this embodiment of the application, after the electronic device performs black-removal processing, the image display effect can be as follows: Figure 8 As shown.
[0121] In the embodiments of this application, when the center point of the target sub-pixel is in the transition region, the processing method of the electronic device can be any one of the following methods (1) and (2).
[0122] Method (1): The electronic device can reduce the grayscale value of the target sub-pixel in the transition region to determine the target grayscale value.
[0123] In this embodiment of the application, when the center point of the target sub-pixel is located in the first sub-transition region, the electronic device can determine the region proportion of the target sub-pixel to characterize the proportion of the target sub-pixel in the current period based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel, and determine the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel.
[0124] Among them, the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0125] For example, combined Figure 7a As shown, since the first sub-transition region includes four different transition regions, the electronic device can obtain the region proportion of the target sub-pixel by different formulas when the target sub-pixel is in the first sub-transition region at different positions. Specifically, the electronic device can determine the region proportion of the target sub-pixel by any one of the following cases (1), (2), (3), and (4).
[0126] Case (1): When the center point of the target sub-pixel is in the first sub-transition region AB, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period by the following formula 4.
[0127] k_right=(position+subpixel / 2) / subpixel Formula 4
[0128] Here, `position` represents the specific location of the center point of the target subpixel within the cycle, and `subpixel` is the width of one subpixel. It's important to note that `position` can be understood as the distance from the center point of the target subpixel to the leftmost edge of its cycle. For example, if the center point of the target subpixel is on the line from point B, then `position` is the distance from point A to point B.
[0129] The electronic device can obtain the proportion of the target sub-pixel in the left region of the current period, k_left, based on the proportion of the target sub-pixel in the right region of the current period, k_right, i.e., k_left = 1 - k_right.
[0130] Case (2): When the center point of the target sub-pixel is in the first sub-transition region EF, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period by the following formula 5.
[0131] k_right=(deltax / 2-position+subpixel / 2) / subpixel Formula 5
[0132] Where position is the specific position of the center point of the target subpixel within the cycle, subpixel is the width of a subpixel, and deltax is the width of the complete cycle.
[0133] For example, such as Figure 7b As shown, the center point of the target sub-pixel is at point E. `deltax / 2` is the width of half a cycle, i.e., the width from A to F. `Position` is the width from A to E, and `deltax / 2 - position` gives the width from E to F. `subpixel / 2` is the width of half a sub-pixel, i.e., the width from P to E. The electronic device adds the width from E to F to the width from P to E to obtain the width from P to F. Using the width from P to F and the width of one sub-pixel, it calculates and determines the proportion of the target sub-pixel in the right region within its current cycle.
[0134] It is understood that the region proportion of the target sub-pixel in the embodiments of this application can be understood as the process of solving for the area.
[0135] The electronic device can obtain the proportion of the target sub-pixel in the left region of the current period, k_left, based on the proportion of the target sub-pixel in the right region of the current period, k_right, i.e., k_left = 1 - k_right.
[0136] Case (3): When the center point of the target sub-pixel is in the first sub-transition region FG, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period by the following formula 6.
[0137] k_left=(position-deltax / 2+subpixel / 2) / subpixel Formula 6
[0138] Where position is the specific position of the center point of the target subpixel within the cycle, subpixel is the width of a subpixel, and deltax is the width of the complete cycle.
[0139] The electronic device can obtain the proportion of the target sub-pixel in the left region of the current period, k_left, based on the proportion of the target sub-pixel in the right region of the current period, k_right, i.e., k_left = 1 - k_right.
[0140] Case (4): When the center point of the target sub-pixel is in the first sub-transition region JK, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period by the following formula 7.
[0141] k_left=(deltax-positon+subpixel / 2) / subpixel Formula 7
[0142] Where position is the specific position of the center point of the target subpixel within the cycle, subpixel is the width of a subpixel, and deltax is the width of the complete cycle.
[0143] The electronic device can obtain the proportion of the target sub-pixel in the left region of the current period, k_left, based on the proportion of the target sub-pixel in the right region of the current period, k_right, i.e., k_left = 1 - k_right.
[0144] In this embodiment of the application, after the electronic device determines the region proportion of the target sub-pixel by any of the formulas in cases (1) to (4) above, it can determine the target grayscale value of the target sub-pixel by the region proportion.
[0145] In one possible implementation, the electronic device can determine the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, as well as the grayscale value of the left image.
[0146] Optionally, the electronic device can also determine the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, as well as the grayscale value of the right image.
[0147] It should be noted that whether an electronic device uses the grayscale value of the left or right image depends on whether the first sub-transition region where the center point of the target sub-pixel is located is in the left or right region of the period. For example, if the first sub-transition region where the center point of the target sub-pixel is located is in the left region of the period, then the grayscale value of the left image is used; if the first sub-transition region where the center point of the target sub-pixel is located is in the right region of the period, then the grayscale value of the right image is used.
[0148] For example, combined Figure 7a As shown, since the first sub-transition region includes four different transition regions, the electronic device can obtain the target grayscale value using different formulas when the target sub-pixel is in the first sub-transition region at different positions. Specifically, the electronic device can determine the target grayscale value using any of the following cases (5) and (6).
[0149] Case (5): The electronic device uses the grayscale values shown in the right figure to determine the target grayscale value. Combining cases (1) and (2) above, such as... Figure 7a As shown. When the center point of the target sub-pixel is located in the first sub-transition region AB, or the first sub-transition region EF, since the first sub-transition regions AB and EF are in the right region of the cycle, the electronic device can determine the target grayscale value using the following formula 8.
[0150] value=(k_right-k_left)*value_right Formula 8
[0151] Where value_right is the right image grayscale value of the target sub-pixel.
[0152] Case (6): The electronic device uses the grayscale value in the left image to determine the target grayscale value. Combining cases (3) and (4) above, such as... Figure 7a As shown. When the center point of the target sub-pixel is located in the first sub-transition region FG, or the first sub-transition region JK, since the first sub-transition regions FG and JK are in the left region of the period, the electronic device can determine the target grayscale value using the following formula 9.
[0153] value=(k_left-k_right)* value_left Formula 9
[0154] Where value_left is the left image grayscale value of the target sub-pixel.
[0155] In this embodiment of the application, after the electronic device processes the image through situation (5) or situation (6), the display effect can be as follows: Figure 9 As shown.
[0156] It is understandable that, such as Figure 10 As shown, light emitted from pixels on the 3D display panel is split by lenses and enters the left and right eyes respectively. The image formed by the area viewed by the left eye through the lens grating is the left image. Similarly, the image formed by the area viewed by the right eye through the lens grating is the right image. The target sub-pixel corresponds to a grayscale value in the left image, i.e., the grayscale value of the left image. Correspondingly, the target sub-pixel corresponds to a grayscale value in the right image, i.e., the grayscale value of the right image.
[0157] In another possible implementation, the electronic device can determine the adjusted grayscale value of the target sub-pixel in the left image based on the proportion of the left region and the grayscale value of the left image, and determine the adjusted grayscale value of the target sub-pixel in the right image based on the proportion of the right region and the grayscale value of the right image. In the embodiments of this application, the electronic device can determine the target grayscale value of the target sub-pixel based on the adjusted grayscale values of the left and right images, thereby avoiding the problem of unsatisfactory processing results caused by a small proportion of the target sub-pixel's region but a large grayscale value.
[0158] For example, combined Figure 7a As shown, since the first sub-transition region includes four different transition regions, the electronic device can obtain the target grayscale value using different formulas when the target sub-pixel is in the first sub-transition region at different positions. Specifically, the electronic device can determine the target grayscale value using any of the following cases (7) and (8).
[0159] Case (7), combining the above cases (1) and (2), such as Figure 7a As shown. When the center point of the target sub-pixel is located in the first sub-transition region AB, or the first sub-transition region EF, since the first sub-transition regions AB and EF are in the right region of the cycle, the electronic device can determine the target grayscale value using the following formula 10.
[0160] value=k_left*value_left-k_right*value_right Formula 10
[0161] Case (8), combining the above cases (3) and (4), such as Figure 7a As shown. When the center point of the target sub-pixel is located in the first sub-transition region FG, or the first sub-transition region JK, since the first sub-transition regions FG and JK are in the left region of the period, the electronic device can determine the target grayscale value using the following formula 11.
[0162] value = k_right * value_right - k_left * value_left Formula 11
[0163] It can be understood that when the area ratio of the target sub-pixel is small and the gray-scale value of the target sub-pixel is large, the brightness of the target sub-pixel is affected by the gray-scale value and is brighter. Similarly, when the area ratio of the target sub-pixel is large but the gray-scale value of the target sub-pixel is small, the brightness of the target sub-pixel is affected by the gray-scale value and is darker. Furthermore, through the above situations (7) and (8), the gray-scale value of the target sub-pixel can be adjusted better. In the embodiments of the present application, after the electronic device processes using the above situation (7) or situation (8), the display effect of the image can be as Figure 11 shown.
[0164] In the embodiments of the present application, when the center point of the target sub-pixel is in the first sub-transition region, the electronic device can determine the first gray-scale coefficient of the target sub-pixel according to the position of the center point of the target sub-pixel in the cycle it is in and the width of a partial cycle of the cycle it is in, and determine the target gray-scale value of the target sub-pixel based on the first gray-scale coefficient and the image gray-scale value of the target sub-pixel.
[0165] Exemplarily, in combination with Figure 7a , as Figure 12 shown, when the center point of the target sub-pixel is in any one of the regions A-B, E-F, F-G, and J-K, the electronic device can reduce the gray-scale value of the left or right image corresponding to the target sub-pixel through the x^2 function. Specifically, the electronic device can determine the first gray-scale coefficient k_score of the target sub-pixel through the following Formula 12.
[0166] k_score = ((position - line_f)^2 / d^2) Formula 12
[0167] Where, line_f is the width of half a cycle, that is, the width from A to F, and d is the width of the region between two letters.
[0168] It should be noted that taking the width of the A-B or J-K region as d, the width of the E-G region is 2d, where 0 < d ≤ subpixel / 2, and the electronic device adjusts the range of the transition region by adjusting the size of d.
[0169] Taking the center point of the target sub-pixel in the first sub-transition region in the right region as an example. That is, when the center point of the target sub-pixel is in A-B or E-F region, the electronic device can substitute the first gray-scale coefficient k_score into the following Formula 13 to determine the target gray-scale value value.
[0170] value=k_score* value_right Formula 13
[0171] Where value_right is the right image grayscale value of the target sub-pixel.
[0172] In this embodiment, the electronic device determines the target grayscale value using formulas 12 and 13, then adjusts the current grayscale value of the target sub-pixel, and finally increases the grayscale value of the sub-pixels in the non-transition region. The image display effect can be as follows: Figure 13 As shown.
[0173] It is understandable that the grayscale coefficients of the target sub-pixels are different at different positions, and thus the grayscale values are also different.
[0174] In this embodiment of the application, when the center point of the target sub-pixel is located in the first sub-transition region, the electronic device sets the grayscale value of the target sub-pixel to a preset value.
[0175] For example, the preset value is 0. When the center point of the target sub-pixel is located in any one of the first sub-transition regions AB, EF, FG, and JK, the electronic device can set the grayscale value of the target sub-pixel to 0, that is, perform black-removal processing on the sub-pixels located in the transition region. In this embodiment, after the electronic device performs black-removal processing on the current grayscale value of the target sub-pixel, the electronic device increases the grayscale value of the sub-pixels in the non-transition region, and the image display effect can be as follows. Figure 14 As shown.
[0176] In this embodiment of the application, when the center point of the target sub-pixel is located in the second sub-transition region, the electronic device can determine the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel, and determine the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel.
[0177] Among them, the image grayscale value is used to represent the grayscale value of the target sub-pixel in different images. The region proportion is used to represent the proportion of the target sub-pixel in the current period.
[0178] Exemplary, exemplary, combined Figure 7a As shown, since the second sub-transition region includes four different transition regions, the electronic device can obtain the region proportion of the target sub-pixel by different formulas when the target sub-pixel is in the second sub-transition region at different positions. Specifically, the electronic device can determine the region proportion of the target sub-pixel by any one of the following cases (9), (10), (11), and (12).
[0179] Case (9): When the center point of the target sub-pixel is located in the second sub-transition region BC, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period using Formula 4 in Case (1). Correspondingly, the left region proportion k_left of the target sub-pixel in the current period is obtained, i.e., k_left = 1 - k_right.
[0180] Case (10): When the center point of the target sub-pixel is located in the second sub-transition region DE, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period using Formula 5 in Case (2) above. Correspondingly, the left region proportion k_left of the target sub-pixel in the current period is obtained, i.e., k_left = 1 - k_right.
[0181] Case (11): When the center point of the target sub-pixel is located in the second sub-transition region GH, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period using Formula 6 in Case (3) above. Correspondingly, the left region proportion k_left of the target sub-pixel in the current period is obtained, i.e., k_left = 1 - k_right.
[0182] In case (12), when the center point of the target sub-pixel is located in the second sub-transition region JK, the electronic device can determine the right region proportion k_right of the target sub-pixel in the current period using formula 7 in case (4) above. Correspondingly, the left region proportion k_left of the target sub-pixel in the current period is obtained, i.e., k_left = 1 - k_right.
[0183] In this embodiment of the application, after the electronic device determines the region proportion of the target sub-pixel by any of the formulas in cases (9) to (12) above, it can determine the target grayscale value of the target sub-pixel by the region proportion.
[0184] In one possible implementation, the electronic device can determine the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, as well as the grayscale value of the left image.
[0185] Optionally, the electronic device can also determine the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, as well as the grayscale value of the right image.
[0186] For example, combined Figure 7aAs shown, since the second sub-transition region includes four different transition regions, the electronic device can obtain the target grayscale value using different formulas when the target sub-pixel is in the second sub-transition region at different positions. Specifically, the electronic device can determine the target grayscale value in any of the following cases (13) and (14).
[0187] Case (13): The electronic device uses the grayscale values shown in the right figure to determine the target grayscale value. Combining the above cases (9) and (10), such as Figure 7a As shown. When the center point of the target sub-pixel is located in the second sub-transition region BC, or the second sub-transition region DE, since the second sub-transition region BC and the second sub-transition region DE are in the right region of the period, the electronic device can determine the target grayscale value by formula 8 in the above case (5).
[0188] Case (14): The electronic device uses the grayscale value of the left image to determine the target grayscale value. Combining cases (3) and (4) above, such as... Figure 7a As shown. When the center point of the target sub-pixel is located in the second sub-transition region GH, or the second sub-transition region IJ, since the second sub-transition region GH and the second sub-transition region IJ are in the left region of the period, the electronic device can determine the target grayscale value by formula 9 in the above case (6).
[0189] In this embodiment, when the center point of the target sub-pixel is in the second sub-transition region, the electronic device determines the target grayscale value through case (13) or case (14) and adjusts the current grayscale value of the target sub-pixel. The adjusted image display effect can be... Figure 14 As shown.
[0190] In another possible implementation, the electronic device can determine the adjusted grayscale value of the target sub-pixel in the left image based on the proportion of the left region and the grayscale value of the left image, and determine the adjusted grayscale value of the target sub-pixel in the right image based on the proportion of the right region and the grayscale value of the right image. In the embodiments of this application, the electronic device can determine the target grayscale value of the target sub-pixel based on the adjusted grayscale values of the left and right images, thereby avoiding the problem of unsatisfactory processing results caused by a small proportion of the target sub-pixel's region but a large grayscale value.
[0191] For example, combined Figure 7aAs shown, since the second sub-transition region includes four different transition regions, the electronic device can obtain the target grayscale value using different formulas when the target sub-pixel is in the second sub-transition region at different positions. Specifically, the electronic device can determine the target grayscale value using any of the following cases (15) and (16).
[0192] Case (15), combining the above cases (9) and (10), such as Figure 7a As shown. When the center point of the target sub-pixel is located in the second sub-transition region BC, or the second sub-transition region DE, since the second sub-transition region BC and the second sub-transition region DE are in the right region of the period, the electronic device can determine the target grayscale value by formula 10 in the above case (7).
[0193] Case (16), combining the above cases (11) and (12), such as Figure 7a As shown. When the center point of the target sub-pixel is located in the second sub-transition region GH, or in the case of the second sub-transition region IJ, the second sub-transition region GH and the second sub-transition region IJ are located in the left region of the period. Therefore, the electronic device can determine the target grayscale value by using formula 11 in the above case (8).
[0194] In this embodiment, when the center point of the target sub-pixel is in the second sub-transition region, the electronic device determines the target grayscale value through case (15) or case (16) and adjusts the current grayscale value of the target sub-pixel. The adjusted image display effect can be... Figure 15 As shown.
[0195] In this embodiment of the application, a 31.5 8K naked-eye 3D project sample is used as an example, along with the crosstalk test of the black and white image combination and the 3D effect of the flower. When the electronic device only uses method (1), compared with the image combination algorithm without the addition of transition processing, the method of method (1) can reduce the crosstalk rate by about 1% and significantly reduce the ghosting phenomenon, thus effectively improving the 3D effect.
[0196] Method (2): The electronic device can determine the first gray level value by decreasing the gray level value of the target sub-pixel in the transition region and increasing the gray level value of the sub-pixel in the non-transition region at the same time.
[0197] In this embodiment of the application, the electronic device can increase the grayscale value of the sub-pixels in the non-transition region by using the sin function based on the above method (1).
[0198] Optionally, the non-transition region may include a second sub-transition region. For example, combined with Figure 7a As shown, the non-transition region can be BE and GJ. The non-transition region can also be CD and HI.
[0199] In one possible implementation, when the target sub-pixel is located in a non-transition region, the electronic device can determine a second grayscale coefficient of the target sub-pixel based on the position of its center point within the current period and the width of the current period. Then, based on the second grayscale coefficient and the image grayscale value of the target sub-pixel, the electronic device determines a second grayscale value for the sub-pixel in the non-transition region. Finally, the electronic device uses the minimum grayscale value between the second grayscale value and a grayscale threshold as the first grayscale value for the sub-pixel in the non-transition region.
[0200] For example, taking non-transition regions BE and GJ as examples, the electronic device can increase the grayscale value of the left or right image corresponding to the sub-pixel in the non-transition region using the sine function. Specifically, the electronic device can determine the first grayscale coefficient k_score of the target sub-pixel using the following formula 14. 非 .
[0201] k_score 非 =k_ratio*sin(2*π(position-d) / (deltax-4*d))+1 Formula 14
[0202] If the center point of a sub-pixel in the non-transition region is located in the BE or GJ region, the electronic device can substitute the first grayscale coefficient k_score into the following formula 15 to determine the second grayscale value value of the sub-pixel in the non-transition region. 非 .
[0203] value 非 =k_score 非 * value_right 非 Formula 15
[0204] Among them, value_right 非 The right image grayscale value of the sub-pixel in the non-transition region.
[0205] In this embodiment of the application, the electronic device determines the grayscale value of the sub-pixels in the non-transition region. 非 Next, the second grayscale value of the sub-pixel is... 非 The grayscale value is compared with the grayscale threshold of 255 to determine the minimum grayscale value of the sub-pixel in the non-transition region.
[0206] It is understood that in the embodiments of this application, method (2) and method (1) can be combined. For example, when the center point of the target sub-pixel is located in any one of the regions AB, EF, FG, and JK, the electronic device can reduce the grayscale value of the left or right image at the corresponding position of the target sub-pixel using the x^2 function. That is, the electronic device can determine the target grayscale value using the methods described in formulas 12 and 13. At the same time, the electronic device uses formulas 14 and 15 to determine the first grayscale value for sub-pixels in non-transition regions.
[0207] For example, taking a 31.5 8K naked-eye 3D project sample, and using a red-green image with a pixel value of 127 for crosstalk testing and 3D flower effect photography as examples. When combining method (2) and method (1), compared with the image arrangement algorithm without transition processing, the method of combining method (2) and method (1) can reduce the crosstalk rate by about 1.3% and increase the viewing angle by about 0.3 degrees compared to the first method. Figure 13 As shown, the ghosting phenomenon in the image processed by this method is significantly reduced, and the 3D effect is effectively improved.
[0208] Based on the above scheme, the electronic device in this application embodiment reduces the grayscale value of the target sub-pixel while increasing the grayscale value of the sub-pixel in the non-transition region, thereby balancing the width of the high-brightness platform and the low-brightness platform in the transition region and the non-transition region, and further effectively improving the actual viewing range of naked-eye 3D.
[0209] It should be noted that the various embodiments of this application can be referenced or learned from each other. For example, the same or similar steps, method embodiments, system embodiments and device embodiments can be referenced from each other without limitation.
[0210] This application embodiment can divide the grayscale compensation device into functional modules or functional units according to the above method example. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0211] like Figure 16The diagram shown is a structural schematic of a grayscale compensation device provided in an embodiment of this application. This device is applied to an electronic device, which includes a display screen and a processor. The display screen has multiple cycles, each cycle including multiple sub-pixels, and each cycle has a left region and a right region. The device includes a processing unit 1601 and an acquisition unit 1602.
[0212] The processing unit 1601 is configured to: determine the region of the center point of the target sub-pixel in the current period; the region of the center point of the target sub-pixel in the current period is determined based on the position of the center sub-pixel of the row in which the target sub-pixel is located; the region of the current period includes a transition region and a non-transition region; the transition region is the region between the boundary line of the left and right regions of the current period; the non-transition region is the region other than the transition region.
[0213] The processing unit 1601 is further configured to: determine the target grayscale value of the target sub-pixel when the center point of the target sub-pixel is in the transition region, and determine the first grayscale value of the sub-pixel in the non-transition region; the first grayscale value is the grayscale value of the sub-pixel in the non-transition region after adjustment and increase, and the target grayscale value is the grayscale value of the target sub-pixel after adjustment and decrease.
[0214] In one possible implementation, the transition region includes a first sub-transition region and a second sub-transition region. The first sub-transition region is the region adjacent to the boundary of the region in the current cycle, and the second sub-transition region is the region other than the first sub-transition region.
[0215] In one possible implementation, when the center point of the target sub-pixel is located in the first sub-transition region, the processing unit 1601 is specifically configured to: determine the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel; the region proportion is used to characterize the proportion of the target sub-pixel in the current period; and determine the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0216] In one possible implementation, when the center point of the target sub-pixel is located in the first sub-transition region, the processing unit 1601 is specifically configured to: determine the first grayscale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of a portion of the current period; and determine the target grayscale value of the target sub-pixel based on the first grayscale coefficient and the image grayscale value of the target sub-pixel.
[0217] In one possible implementation, when the center point of the target sub-pixel is located in the first sub-transition region, the processing unit 1601 is specifically configured to: perform black extraction processing on the target sub-pixel to determine the target grayscale value of the target sub-pixel.
[0218] In one possible implementation, when the center point of the target sub-pixel is located in the second sub-transition region, the processing unit 1601 is specifically configured to: determine the region proportion of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel; the region proportion is used to characterize the proportion of the target sub-pixel in the current period; and determine the target grayscale value of the target sub-pixel based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
[0219] In one possible implementation, the non-transition region includes a second sub-transition region; the processing unit 1601 is specifically configured to: determine a second grayscale coefficient of the target sub-pixel based on the position of the center point of the target sub-pixel in the current period and the width of the current period; determine a second grayscale value of the sub-pixel in the non-transition region based on the second grayscale coefficient and the image grayscale value of the target sub-pixel; and take the minimum grayscale value between the second grayscale value and the grayscale threshold as the first grayscale value of the sub-pixel in the non-transition region.
[0220] In one possible implementation, the region proportion includes the proportion of the target sub-pixel in the left region of the current period and the proportion of the target sub-pixel in the right region of the current period.
[0221] In one possible implementation, the image grayscale values include the left image grayscale value of the target sub-pixel and the right image grayscale value of the target sub-pixel.
[0222] In one possible implementation, the processing unit 1601 is further configured to: determine the target grayscale value of the target sub-pixel based on the difference between the proportion of the target sub-pixel to the left region and the proportion of the target sub-pixel to the right region, and the grayscale value of the left image, or the grayscale value of the right image.
[0223] In one possible implementation, the processing unit 1601 is further configured to: determine the adjusted grayscale value of the left image of the target sub-pixel based on the proportion of the left region and the grayscale value of the left image; determine the adjusted grayscale value of the right image of the target sub-pixel based on the proportion of the right region and the grayscale value of the right image; and determine the target grayscale value of the target sub-pixel based on the adjusted grayscale values of the left and right images.
[0224] In one possible implementation, the electronic device includes a lens; the processing unit 1601 is further configured to: acquire the full period width; the full period width is the distance value between the centers of two adjacent lenses; determine a portion of the period width of the row in which the target sub-pixel is located based on the full period width and the position of the center sub-pixel; the portion of the period width is the width of the leftmost incomplete period of the row; and determine the region of the target sub-pixel in the period based on the portion of the period width.
[0225] In one possible implementation, the processing unit 1601 is further configured to: obtain the offset of the center sub-pixel of the row; the offset is the offset between the center sub-pixel of the row and the center point of the display screen; and determine the position of the center sub-pixel based on the offset and the pixel width.
[0226] When implemented in hardware, the acquisition unit 1602 in this embodiment can be integrated onto the communication interface, and the processing unit 1601 can be integrated onto the processor. Specific implementation methods are as follows: Figure 17 As shown.
[0227] Figure 17 A schematic diagram of another possible structure of the grayscale compensation device involved in the above embodiments is shown. The communication device includes a processor 1702 and a communication interface 1703. The processor 1702 is used to control and manage the operation of the device, for example, executing the steps performed by the processing unit 1601, and / or performing other processes of the technology described herein. The communication interface 1703 is used to support communication between the device and other network entities, for example, executing the steps performed by the acquisition unit 1602. The device may also include a memory 1701 and a bus 1704, the memory 1701 being used to store the device's program code and data.
[0228] The memory 1701 may be a memory in the device, and the memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory may also include a combination of the above types of memory.
[0229] The processor 1702 described above can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0230] The 1704 bus can be an Extended Industry Standard Architecture (EISA) bus, etc. The 1704 bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 17 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0231] Figure 17 The device in the middle can also be a chip. The chip includes one or more processors 1702 and a communication interface 1703.
[0232] Optionally, the chip also includes a memory 1705, which may include read-only memory and random access memory, and provides operation instructions and data to the processor 1702. A portion of the memory 1705 may also include non-volatile random access memory (NVRAM).
[0233] In some implementations, memory 1705 stores elements such as execution modules or data structures, or subsets thereof, or extended sets thereof.
[0234] In this embodiment of the application, the corresponding operation is executed by calling the operation instructions stored in the memory 1705 (the operation instructions can be stored in the operating system).
[0235] Some embodiments of this disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions that, when executed on a computer (e.g., a receiving node), cause the computer to perform a synchronization method as described in any of the above embodiments.
[0236] For example, the aforementioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., CDs (Compact Disks), DVDs (Digital Versatile Disks), etc.), smart cards, and flash memory devices (e.g., EPROMs (Erasable Programmable Read-Only Memory), cards, sticks, or key drives, etc.). The various computer-readable storage media described in this disclosure may represent one or more devices for storing information and / or other machine-readable storage media. The term "machine-readable storage media" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0237] Some embodiments of this disclosure also provide a computer program product, for example, stored on a non-transitory computer-readable storage medium. The computer program product includes computer program instructions that, when executed on a computer (e.g., a receiving node), cause the computer to perform the synchronization method as described in the above embodiments.
[0238] Some embodiments of this disclosure also provide a computer program. When executed on a computer (e.g., a receiving node), the computer program causes the computer to perform the synchronization method as described in the above embodiments.
[0239] The beneficial effects of the computer-readable storage medium, computer program product, and computer program described above are the same as the beneficial effects of the synchronization methods in some of the above embodiments, and will not be repeated here.
[0240] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0241] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0242] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0243] The above are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. An electronic device, comprising: The electronic device includes: a display screen and a processor; the display screen has multiple cycles, each cycle includes multiple sub-pixels, and each cycle has a left region and a right region; The processor is configured to: determine the region of the center point of the target sub-pixel within a given period; the region of the center point of the target sub-pixel within a given period is determined based on the position of the center sub-pixel in the row where the target sub-pixel is located, the region of the given period includes a transition region and a non-transition region, the transition region being the region between the boundary lines of the left and right regions of the given period; the non-transition region being the region other than the transition region. The processor is further configured to: when the center point of the target sub-pixel is in the transition region, determine a target grayscale value of the target sub-pixel, and determine a first grayscale value of the sub-pixel in the non-transition region; the first grayscale value is the grayscale value of the sub-pixel in the non-transition region after adjustment and increase, and the target grayscale value is the grayscale value of the target sub-pixel after adjustment and decrease.
2. The electronic device according to claim 1, wherein, The transition region includes a first sub-transition region and a second sub-transition region. The first sub-transition region is the region adjacent to the boundary of the region in the current cycle, and the second sub-transition region is the region other than the first sub-transition region.
3. The electronic device according to claim 2, wherein, When the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: Based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel, the region proportion of the target sub-pixel is determined; the region proportion is used to characterize the proportion of the target sub-pixel in the current period. The target grayscale value of the target sub-pixel is determined based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
4. The electronic device according to claim 2, wherein, When the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: The first grayscale coefficient of the target sub-pixel is determined based on the position of the center point of the target sub-pixel in the current period and the width of a portion of the current period. The target gray level value of the target sub-pixel is determined based on the first gray level coefficient and the image gray level value of the target sub-pixel.
5. The electronic device according to claim 2, wherein, When the center point of the target sub-pixel is located in the first sub-transition region, the processor is specifically configured to: The target sub-pixel is processed to extract black, and the target grayscale value of the target sub-pixel is determined.
6. The electronic device according to claim 2 or 5, wherein, When the center point of the target sub-pixel is located in the second sub-transition region, the processor is specifically configured to: Based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel, the region proportion of the target sub-pixel is determined; the region proportion is used to characterize the proportion of the target sub-pixel in the current period. The target grayscale value of the target sub-pixel is determined based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
7. The electronic device according to any one of claims 3-5, wherein, The non-transition region includes the second sub-transition region; The processor is specifically configured as follows: The second grayscale coefficient of the target sub-pixel is determined based on the position of the center point of the target sub-pixel in the current period and the width of the current period. Based on the second grayscale coefficient and the image grayscale value of the target sub-pixel, the second grayscale value of the sub-pixel in the non-transition region is determined; The minimum gray level value between the second gray level value and the gray level threshold is taken as the first gray level value of the sub-pixel in the non-transition region.
8. The electronic device according to claim 3, wherein, The region proportion includes the proportion of the target sub-pixel in the left region of the current period and the proportion of the target sub-pixel in the right region of the current period.
9. The electronic device according to claim 3, wherein, The image grayscale value includes the left image grayscale value of the target sub-pixel and the right image grayscale value of the target sub-pixel.
10. The electronic device according to claim 9, wherein, The processor is also configured to: The target grayscale value of the target sub-pixel is determined based on the difference between the proportion of the target sub-pixel in the left region and the proportion of the target sub-pixel in the right region, and the grayscale value of the left image or the grayscale value of the right image.
11. The electronic device according to claim 9, wherein, The processor is also configured to: Based on the proportion of the left region and the grayscale value of the left image, the grayscale value of the left image after the target sub-pixel is adjusted is determined; Based on the proportion of the right region and the grayscale value of the right image, the grayscale value of the right image after the target sub-pixel is adjusted is determined; The target grayscale value of the target sub-pixel is determined based on the adjusted grayscale values of the left and right images.
12. The electronic device according to claim 1, wherein, The electronic device includes a lens; The processor is also configured to: Obtain the complete period width; the complete period width is the distance between the centers of two adjacent lenses. Based on the full period width and the position of the center sub-pixel, a portion of the period width of the row containing the target sub-pixel is determined; the portion of the period width is the width of the leftmost incomplete period of the row. Based on the aforementioned period width, the region of the target sub-pixel in its current period is determined.
13. The electronic device according to claim 1, wherein, The processor is also configured to: Obtain the offset of the center sub-pixel of the row; the offset is the offset between the center sub-pixel of the row and the center point of the display screen; Based on the offset and pixel width, the position of the center sub-pixel of the row containing the target sub-pixel is determined.
14. A grayscale compensation method, wherein, The invention is applied to an electronic device, which includes a display screen and a processor; the display screen has multiple cycles, each cycle includes multiple sub-pixels, and each cycle has a left region and a right region. The method includes: The center point of the target sub-pixel is determined within the region of the current period. The region of the current period is determined based on the position of the center sub-pixel in the row where the target sub-pixel is located. The region of the current period includes a transition region and a non-transition region. The transition region is the region between the boundary line of the left and right regions of the current period. The non-transition region is the region other than the transition region. When the center point of the target sub-pixel is in the transition region, the target grayscale value of the target sub-pixel is determined, and the first grayscale value of the sub-pixel in the non-transition region is determined; the first grayscale value is the grayscale value of the sub-pixel in the non-transition region after adjustment and increase, and the target grayscale value is the grayscale value of the target sub-pixel after adjustment and decrease.
15. The method according to claim 14, wherein, The transition region includes a first sub-transition region and a second sub-transition region. The first sub-transition region is the region adjacent to the boundary of the region in the current cycle, and the second sub-transition region is the region other than the first sub-transition region.
16. The method according to claim 15, wherein, The transition region includes a first sub-transition region; Determining the target grayscale value of the target sub-pixel when the center point of the target sub-pixel is located in the transition region includes: Based on the position of the center point of the target sub-pixel in the current period and the width of the target sub-pixel, the region proportion of the target sub-pixel is determined; the region proportion is used to characterize the proportion of the target sub-pixel in the current period. The target grayscale value of the target sub-pixel is determined based on the region proportion of the target sub-pixel and the image grayscale value of the target sub-pixel; the image grayscale value is used to characterize the grayscale value of the target sub-pixel in different images.
17. The method according to claim 15, wherein, The transition region includes a first sub-transition region; Determining the target grayscale value of the target sub-pixel when the center point of the target sub-pixel is located in the transition region includes: The first grayscale coefficient of the target sub-pixel is determined based on the position of the center point of the target sub-pixel in the current period and the width of a portion of the current period. The target gray level value of the target sub-pixel is determined based on the first gray level coefficient and the image gray level value of the target sub-pixel.
18. A grayscale compensation device, wherein, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the grayscale compensation method as described in any one of claims 14-17.
19. A computer-readable storage medium, wherein, The computer-readable storage medium stores instructions, and when the computer executes the instructions, the computer performs the grayscale compensation method according to any one of claims 14-17.
20. A computer program product, wherein, The computer program product includes instructions that, when executed on a computer, enable the computer to perform the grayscale compensation method as described in any one of claims 14-17.