Image brightness value determination method, device, electronic device and storage medium
By establishing sub-pixel models of Sub Cell and Main Cell, obtaining the brightness value of each pixel and performing brightness fusion calculation, the high design cost problem in the existing technology is solved, and the brightness of the combined image is accurately calculated and the brightness error area is displayed, thereby improving design efficiency.
Patent Information
- Application Number
- CN202111570534.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2041-12-21
AI Technical Summary
During the design phase of displays based on BD Cell technology, existing technologies require combined image brightness testing on actual manufactured displays, resulting in high design costs and making it difficult to avoid brightness failures caused by unreasonable pixel structures and brightness algorithms.
By establishing the sub-pixel model of the Sub Cell and Main Cell, the brightness value of each pixel is obtained, and the brightness fusion calculation is performed based on the corresponding relationship to obtain the brightness value of the combined image, avoiding the actual display test.
It achieves accurate calculation of combined image brightness without going through the BD Cell display, reduces design costs, and can intuitively display brightness error areas, improving design efficiency.
Smart Images

Figure CN114266745B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, electronic device, and storage medium for determining image brightness values. Background Art
[0002] With the rapid development of LCD (Liquid Crystal Display) technology, high-contrast technology has also emerged. Currently, HDR (High-Dynamic Range) technology is widely used in high-contrast displays, mainly including Mini LED and BD Cell (BOE Dual Cell). Mini LED solutions are expensive, while BD Cell has certain advantages in cost, power consumption and weight. Combined with flexibility, it can achieve lightweight and thinness. Displays based on BD Cell technology adopt a dual-cell design, including Main Cell (display unit) and Sub Cell (dimming unit). Among them, Sub Cell is a monochrome panel that can more accurately control light output, thereby improving the contrast of the display.
[0003] In the related art, during the design phase of a display based on BD Cell technology, R&D personnel must design the pixel structure of the sub-cells and main cells within the display, as well as the corresponding brightness algorithm. They then produce a display that includes both sub-cells and main cells. To display an image, the designed brightness algorithm is used to calculate the main cell layer and sub-cell layers. The main cell layer is then displayed on the main cell within the display, while the sub-cell layer is displayed on the sub-cell within the display. Ultimately, the display displays a combined image.
[0004] However, during the design phase, various factors can lead to inappropriate pixel structure design or illogical brightness algorithms within displays, resulting in substandard brightness of the resulting image. Testing using actual manufactured displays significantly increases the design cost of displays based on BD Cell technology. Therefore, a method for determining composite image brightness without using BD Cell displays is urgently needed. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for determining image brightness values, so as to realize a method for obtaining the brightness of a combined image without using a BD Cell display.
[0006] The specific technical solutions are as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for determining an image brightness value, the method comprising:
[0008] Get the brightness value of each Sub Cell pixel in the Sub Cell layer and the brightness value of each Main Cell pixel in the Main Cell layer;
[0009] Establishing a sub-pixel model of the Sub Cell layer to obtain a Sub Cell sub-pixel model;
[0010] Obtaining the brightness value of each sub-cell sub-pixel in the sub-cell sub-pixel model according to the brightness value of each sub-cell pixel;
[0011] Establishing a sub-pixel model of the Main Cell layer to obtain a Main Cell sub-pixel model, wherein the Sub Cell sub-pixels in the SubCell sub-pixel model have the same shape and size as the Main Cell sub-pixels in the Main Cell sub-pixel model;
[0012] Obtaining the brightness value of each MainCell sub-pixel in the MainCell sub-pixel model according to the brightness value of each MainCell pixel;
[0013] Establishing a correspondence between sub-cell sub-pixels and main-cell sub-pixels based on the position of each sub-cell sub-pixel in the sub-cell sub-pixel model and the position of each main-cell sub-pixel in the main-cell sub-pixel model;
[0014] The brightness value of each pixel in the combined image is calculated according to the corresponding relationship, the brightness value of each sub cell sub-pixel, and the brightness value of each main cell sub-pixel.
[0015] In a possible implementation, establishing a sub-pixel model of the sub-cell layer to obtain a sub-cell sub-pixel model includes:
[0016] Divide each pixel of the sub cell layer into a plurality of sub cell sub pixels according to a preset sub pixel size to obtain each divided sub cell sub pixel;
[0017] Adjusting the positions of the segmented SubCell pixels according to the shapes of the SubCell pixels and the Main Cell pixels to obtain a SubCell sub-pixel model;
[0018] The step of establishing a sub-pixel model of the Main Cell layer to obtain the Main Cell sub-pixel model includes:
[0019] According to the preset sub-pixel size, each pixel of the Main Cell layer is divided into a plurality of Main Cell sub-pixels to obtain a Main Cell sub-pixel model.
[0020] In a possible implementation, adjusting the positions of the segmented sub-cell pixels according to the shapes of the sub-cell pixels and the main cell pixels to obtain a sub-cell sub-pixel model includes:
[0021] For each sub-cell pixel, the position of the sub-cell sub-pixels after the sub-cell pixel is divided is adjusted according to the shape of the sub-cell pixel, so that the sub-cell pixel unit formed by splicing the sub-cell sub-pixels after the sub-cell pixel is the same shape and size as the main cell pixel unit, wherein the main cell pixel unit is composed of at least two adjacent main cell pixels.
[0022] In a possible implementation, calculating the brightness value of each pixel in the combined image based on the corresponding relationship, the brightness value of each sub-cell sub-pixel, and the brightness value of each main cell sub-pixel includes:
[0023] According to the corresponding relationship, the brightness values of the corresponding sub-cell sub-pixels and the corresponding sub-cell sub-pixels are respectively subjected to brightness fusion calculation to obtain the brightness value of each pixel in the combined image.
[0024] In one possible implementation, the method further includes:
[0025] Obtaining the brightness value of each original pixel in the original image, wherein the original image is the image used to calculate the brightness value of each pixel in the Sub Cell layer and the brightness value of each pixel in the Main Cell layer;
[0026] For each pixel in the combined image, if the brightness value of the Main Cell sub-pixel corresponding to the pixel is the largest and the brightness value of the pixel is less than the brightness value of the original pixel corresponding to the pixel, it is determined that the pixel has overflow.
[0027] In one possible implementation, the method further includes:
[0028] Get the brightness value of each original pixel in the original image;
[0029] For each pixel in the combined image, if the brightness value of the Main Cell sub-pixel corresponding to the pixel is 0, the brightness value of the original pixel corresponding to the pixel is 0, and the brightness value of the Sub Cell sub-pixel corresponding to the pixel is greater than 0, it is determined that the pixel is truncation.
[0030] In one possible implementation, the method further includes:
[0031] Get the brightness value of each original pixel in the original image;
[0032] For each pixel in the combined image, if the brightness value of the pixel is not equal to the brightness value of the original pixel corresponding to the pixel, it is determined that a calculation error exists in the pixel.
[0033] In a second aspect, an embodiment of the present application provides a device for determining an image brightness value, the device comprising:
[0034] The layer brightness value acquisition module is used to obtain the brightness value of each Sub Cell pixel in the Sub Cell layer and the brightness value of each Main Cell pixel in the MainCell layer;
[0035] A first sub-pixel model building module is used to build a sub-pixel model of the Sub Cell layer to obtain a SubCell sub-pixel model;
[0036] A first sub-pixel brightness value determination module is configured to obtain the brightness value of each sub-cell sub-pixel in the sub-cell sub-pixel model according to the brightness value of each sub-cell pixel;
[0037] a second sub-pixel model establishment module, configured to establish a sub-pixel model of the Main Cell layer to obtain a MainCell sub-pixel model, wherein the sub-cell sub-pixels in the Sub-Cell sub-pixel model have the same shape and size as the main cell sub-pixels in the Main Cell sub-pixel model;
[0038] A second sub-pixel brightness value determination module is used to obtain the brightness value of each Main Cell sub-pixel in the Main Cell sub-pixel model according to the brightness value of each Main Cell pixel;
[0039] A correspondence determination module is used to establish a correspondence between sub-cell sub-pixels and main cell sub-pixels based on the position of each sub-cell sub-pixel in the sub-cell sub-pixel model and the position of each main cell sub-pixel in the main cell sub-pixel model;
[0040] The combined image brightness value calculation module is used to calculate the brightness value of each pixel in the combined image according to the corresponding relationship, the brightness value of each sub cell sub-pixel, and the brightness value of each main cell sub-pixel.
[0041] In one possible implementation, the first sub-pixel brightness value determination module is specifically configured to: divide each pixel of the sub-cell layer into a plurality of sub-cell sub-pixels according to a preset sub-pixel size to obtain each segmented sub-cell sub-pixel; and adjust the position of the segmented sub-cell sub-pixels according to the shape of the sub-cell pixels and the shape of the main cell pixel to obtain a sub-cell sub-pixel model;
[0042] The second sub-pixel model establishment module is specifically used to: divide each pixel of the MainCell layer into multiple Main Cell sub-pixels according to the preset sub-pixel size to obtain a Main Cell sub-pixel model.
[0043] In one possible implementation, the first sub-pixel brightness value determination module is specifically configured to adjust, for each sub-cell pixel, the positions of the sub-cell sub-pixels obtained by segmenting the sub-cell pixel according to the shape of the sub-cell pixel, so that a sub-cell pixel unit formed by splicing the sub-cell sub-pixels obtained by segmenting the sub-cell pixel has the same shape and size as a main cell pixel unit, wherein the main cell pixel unit is composed of at least two adjacent main cell pixels.
[0044] In one possible implementation, the root combined image brightness value calculation module is specifically used to: perform brightness fusion calculation on the brightness values of each corresponding Sub Cell sub-pixel and the brightness values of the corresponding Sub Cell sub-pixels according to the corresponding relationship to obtain the brightness value of each pixel in the combined image.
[0045] In a possible implementation, the device further includes:
[0046] An original image acquisition module, configured to obtain the brightness value of each original pixel in the original image, wherein the original image is the image used to calculate the brightness value of each pixel in the Sub Cell layer and the brightness value of each pixel in the Main Cell layer;
[0047] The overflow condition determination module is used to determine, for each pixel in the combined image, whether an overflow condition exists in the pixel when the brightness value of the Main Cell sub-pixel corresponding to the pixel is the largest and the brightness value of the pixel is less than the brightness value of the original pixel corresponding to the pixel.
[0048] In a possible implementation, the device further includes:
[0049] The original image acquisition module is used to obtain the brightness value of each original pixel in the original image;
[0050] The overflow situation determination module is used to determine, for each pixel in the combined image, whether the pixel is truncation when the brightness value of the Main Cell sub-pixel corresponding to the pixel is 0, the brightness value of the original pixel corresponding to the pixel is 0, and the brightness value of the SubCell sub-pixel corresponding to the pixel is greater than 0.
[0051] In a possible implementation, the device further includes:
[0052] The original image acquisition module is used to obtain the brightness value of each original pixel in the original image;
[0053] The overflow condition determination module is used to determine, for each pixel in the combined image, if the brightness value of the pixel is not equal to the brightness value of the original pixel corresponding to the pixel, whether the pixel has a calculation error.
[0054] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
[0055] The memory is used to store computer programs;
[0056] The processor is configured to implement any of the methods for determining image brightness values described in the present application when executing the program stored in the memory.
[0057] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any method for determining the image brightness value described in the present application.
[0058] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the methods for determining image brightness values described in the present application.
[0059] Beneficial effects of the embodiments of the present application:
[0060] The image brightness value determination method, device, electronic device and storage medium provided in the embodiments of the present application obtain the brightness value of each Sub Cell pixel in the SubCell layer and the brightness value of each Main Cell pixel in the Main Cell layer; establish a sub-pixel model of the Sub Cell layer to obtain a Sub Cell sub-pixel model; obtain the brightness value of each Sub Cell sub-pixel in the Sub Cell sub-pixel model based on the brightness value of each Sub Cell pixel; establish a sub-pixel model of the Main Cell layer to obtain a Main Cell sub-pixel model, wherein the Sub Cell sub-pixels in the Sub Cell sub-pixel model have the same shape and size as the Main Cell sub-pixels in the Main Cell sub-pixel model; obtain the brightness value of each Main Cell sub-pixel in the Main Cell sub-pixel model based on the brightness value of each Main Cell pixel; establish a correspondence between SubCell sub-pixels and Main Cell sub-pixels based on the position of each Sub Cell sub-pixel in the Sub Cell sub-pixel model and the position of each Main Cell sub-pixel in the Main Cell sub-pixel model; and calculate the brightness value of each pixel in the combined image based on the correspondence, the brightness value of each Sub Cell sub-pixel and the brightness value of each Main Cell sub-pixel. By establishing the Main Cell sub-pixel model and the Sub Cell sub-pixel model, the display alignment of the Sub Cell layer and the Main Cell layer is achieved. Therefore, the brightness values of the pixels in the combined image can be calculated using the brightness values of the corresponding Sub Cell sub-pixels and Main Cell sub-pixels. The brightness of the combined image can be obtained without going through the BD Cell display.
[0061] Of course, it is not necessary to achieve all the advantages described above at the same time when implementing any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0063] Figure 1 This is a schematic diagram of a first method for determining an image brightness value according to an embodiment of the present application;
[0064] Figure 2a A schematic diagram of a Sub Cell pixel and a Main Cell pixel according to an embodiment of the present application;
[0065] Figure 2b A schematic diagram of a Sub Cell sub-pixel model according to an embodiment of the present application;
[0066] Figure 2c A schematic diagram of a Main Cell sub-pixel model according to an embodiment of the present application;
[0067] Figure 3 This is a second schematic diagram of the method for determining the image brightness value according to an embodiment of the present application;
[0068] Figure 4 A schematic diagram of sub-cell sub-pixel position adjustment according to an embodiment of the present application;
[0069] Figure 5 A schematic diagram of a device for determining image brightness value according to an embodiment of the present application;
[0070] Figure 6 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0071] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of this application.
[0072] The BD Cell brightness algorithm calculates the grayscale image layer and RGB image layer required to be displayed in the Sub Cell layer and Main Cell layer respectively based on the original image (the image to be displayed). The Sub Cell layer and Main Cell layer generated by the algorithm serve as the input of the Sub Cell layer and Main Cell layer in the BD Cell display respectively. The grayscale of the original image is restored through the combination of the brightness of the two layers of screen, which can make the displayed image have higher contrast and better layering.
[0073] In the prior art, during the design phase of displays based on BD Cell technology, combined image brightness testing is always performed using actual manufactured displays, significantly increasing the design cost of BD Cell displays. Therefore, a method for determining combined image brightness without using BD Cell displays is urgently needed.
[0074] In view of this, the embodiment of the present application provides a method for determining the brightness value of an image, see Figure 1 , the method comprising:
[0075] S101, obtaining the brightness value of each Sub Cell pixel in the Sub Cell layer and the brightness value of each MainCell pixel in the Main Cell layer.
[0076] The image brightness value determination method of the embodiment of the present application can be implemented by an electronic device. In an example, the electronic device can be a personal computer, a smart phone, or a server.
[0077] Using the designed brightness algorithm, the original image to be displayed is calculated to obtain the subcell layer and main cell layer of the original image. Pixels in the subcell layer are called subcell pixels, and pixels in the main cell layer are called main cell pixels. The brightness value of each subcell pixel and each main cell pixel is obtained. Pixel brightness values range from 0 to 255, with values closer to 255 indicating higher brightness and values closer to 0 indicating lower brightness.
[0078] S102: Establish a sub-pixel model of the Sub Cell layer to obtain a Sub Cell sub-pixel model.
[0079] In displays based on BD Cell technology, to reduce moiré patterns caused by the superposition of sub-cells and main-cell displays, sub-cell pixels often have a different shape than main-cell pixels. To establish a correspondence between sub-cell and main-cell displays, in this embodiment, the sub-cell pixels of a sub-cell layer are divided into multiple sub-cell sub-pixels, thereby generating a sub-cell sub-pixel model.
[0080] S103: Obtain the brightness value of each SubCell sub-pixel in the SubCell sub-pixel model according to the brightness value of each SubCell pixel.
[0081] Sub Cell sub-pixels are obtained by dividing Sub Cell pixels. Therefore, for each Sub Cell pixel, the brightness value of each Sub Cell sub-pixel obtained by dividing the Sub Cell pixel can be obtained according to the brightness value of the Sub Cell pixel.
[0082] S104: Establish a sub-pixel model of the Main Cell layer to obtain a Main Cell sub-pixel model, wherein the sub-cell sub-pixels in the sub-cell sub-pixel model have the same shape and size as the main cell sub-pixels in the main cell sub-pixel model.
[0083] In order to establish the corresponding relationship between the sub cell and main cell display, corresponding to the sub cell sub-pixel model, it is also necessary to divide the main cell pixel of the main cell layer into multiple main cell sub-pixels, thereby obtaining the main cell sub-pixel model. The sub cell sub-pixels have the same shape and size as the main cell sub-pixels.
[0084] S105 , obtaining the brightness value of each Main Cell sub-pixel in the Main Cell sub-pixel model according to the brightness value of each Main Cell pixel.
[0085] Main Cell sub-pixels are obtained by dividing the Main Cell pixels. Therefore, for each Main Cell pixel, the brightness value of each Main Cell sub-pixel obtained by dividing the Main Cell pixel can be obtained according to the brightness value of the Main Cell pixel.
[0086] S106 , establishing a correspondence between sub-cell sub-pixels and main-cell sub-pixels based on the position of each sub-cell sub-pixel in the sub-cell sub-pixel model and the position of each main-cell sub-pixel in the main-cell sub-pixel model.
[0087] The sub-cell sub-pixels and the main cell sub-pixels have the same shape and size. Based on the positions of the sub-cell sub-pixels and the main cell sub-pixels, a one-to-one correspondence is established between the sub-cell sub-pixels and the main cell sub-pixels at the same position. In an example, the sub-cell pixels and the main cell pixels can be as follows Figure 2a As shown, Figure 2aThe figure shows eight rectangular Main Cell pixels and one hexagonal Sub Cell pixel; the Sub Cell sub-pixel model can be as follows Figure 2b As shown, the Main Cell sub-pixel model can be Figure 2c As shown, it can be understood that Figure 2b and Figure 2c Only partial areas of the Sub Cell sub-pixel model and the Main Cell sub-pixel model are illustrated, and the corresponding relationship between the Sub Cell sub-pixel (i, j) and the Main Cell sub-pixel (i, j) is established, wherein the Sub Cell sub-pixel (i, j) represents the Sub Cell sub-pixel with abscissa i and ordinate j, and the Main Cell sub-pixel (i, j) represents the Main Cell sub-pixel with abscissa i and ordinate j.
[0088] S107 , calculating the brightness value of each pixel in the combined image according to the corresponding relationship, the brightness value of each sub-cell sub-pixel, and the brightness value of each main cell sub-pixel.
[0089] The combined image is the image displayed by combining the sub-cell layer and the main-cell layer. In one example, each pixel in the combined image corresponds to a sub-cell / main-cell sub-pixel. Luminance fusion calculations are performed on these corresponding sub-cell and main-cell sub-pixels to obtain the luminance value of each pixel in the combined image.
[0090] In an embodiment of the present application, a Main Cell sub-pixel model and a Sub Cell sub-pixel model are established to achieve display alignment of the Sub Cell layer and the Main Cell layer. Thus, the brightness values of the pixels in the combined image can be calculated using the brightness values of the corresponding Sub Cell sub-pixels and Main Cell sub-pixels. The brightness of the combined image can be obtained without going through a BD Cell display.
[0091] In one possible implementation, see Figure 3 The step of establishing a sub-pixel model of the Sub Cell layer to obtain a Sub Cell sub-pixel model includes:
[0092] S1021 : Divide each pixel of the Sub Cell layer into a plurality of SubCell sub-pixels according to a preset sub-pixel size to obtain divided Sub Cell sub-pixels.
[0093] The size of the preset sub-pixel can be customized according to actual conditions. The smaller the preset sub-pixel, the finer the sub-cell sub-pixel model and the main-cell sub-pixel model, and the more accurate the correspondence between the sub-cell sub-pixel and the main-cell sub-pixel. As a result, the brightness value of each pixel in the obtained combined image is more accurate. The larger the preset sub-pixel, the coarser the sub-cell sub-pixel model and the main-cell sub-pixel model, and thus the smaller the amount of calculation.
[0094] S1022: Adjust the positions of the segmented sub-cell pixels according to the shapes of the sub-cell pixels and the main cell pixels to obtain a sub-cell sub-pixel model.
[0095] In order to achieve the correspondence between sub-cell pixels and main-cell pixels, the positions of the segmented sub-cell sub-pixels can be adjusted according to the shapes of the sub-cell pixels and the main-cell pixels, so that the sub-cell pixels formed by the adjusted sub-cell sub-pixels correspond to the main-cell pixels in shape and size. The correspondence here can be that the shape and size of the newly formed sub-cell pixel is the same as that of one main-cell pixel or a combination of multiple main-cell pixels.
[0096] In one possible implementation, the position of the segmented sub-cell pixels is adjusted according to the shape of the sub-cell pixels and the shape of the main cell pixels to obtain a sub-cell sub-pixel model, including: for each sub-cell pixel, according to the shape of the sub-cell pixel, adjusting the position of the sub-cell sub-pixels after the sub-cell pixel is segmented, so that the sub-cell pixel unit formed by the sub-cell sub-pixels after the sub-cell pixel is segmented has the same shape and size as the main cell pixel unit, wherein the main cell pixel unit is composed of at least two adjacent main cell pixels.
[0097] In an example, the sub cell pixels and the main cell pixels can be Figure 2a As shown, Figure 2a The figure shows eight rectangular Main Cell pixels and one hexagonal Sub Cell pixel, and divides a Sub Cell pixel into 10*10 Sub Cell sub-pixels, as shown in Figure 4As shown, the dark area in the sub cell pixel is shifted downward by 10 sub pixels, or the light area in the sub cell pixel is shifted upward by 10 sub pixels, so that the sub cell pixel unit formed by the sub cell sub pixels after the sub cell pixel segmentation is a rectangle. Figure 4 In the example, a Main Cell pixel unit is a rectangle composed of four adjacent Main Cell pixels, and a Sub Cell pixel unit has the same shape and size as the Main Cell pixel unit.
[0098] In displays based on BD Cell technology, the alignment (actual alignment) between the sub-cell layer and the main cell layer can have a certain misalignment error. For example, this misalignment error can be n pixels, meaning that n pixels may be misaligned in the four directions (up, down, left, and right), where n is determined based on the actual display settings. Because of this misalignment error, even if the sub-cell pixel positions are adjusted, as long as the misalignment error remains within the range, a reasonable composite image can still be obtained.
[0099] In one example, since the sub-cell pixels are divided into sub-cell sub-pixels, in order to make the main cell pixels correspond to them, the main cell pixels also need to be divided into main cell sub-pixels. The sub-pixel model of the main cell layer is established to obtain the main cell sub-pixel model, including:
[0100] S1041: Divide each pixel of the Main Cell layer into a plurality of MainCell sub-pixels according to a preset sub-pixel size to obtain a Main Cell sub-pixel model.
[0101] The shape and size of the Main Cell sub-pixel are the same as those of the Sub Cell sub-pixel.
[0102] In an embodiment of the present application, by adjusting the positions of the segmented Sub Cell sub-pixels, the Sub Cell pixels formed by the adjusted Sub Cell sub-pixels correspond to the Main Cell pixels in shape and size, thereby achieving alignment of the pixels of the Sub Cell layer and the Main Cell layer, which can facilitate the calculation of the brightness value of each pixel in the combined image.
[0103] In an example, a pixel in the combined image corresponds to a Sub Cell sub-pixel / Main Cell sub-pixel. In a possible implementation, the brightness value of each pixel in the combined image is calculated based on the corresponding relationship, the brightness value of each Sub Cell sub-pixel, and the brightness value of each Main Cell sub-pixel, including: according to the corresponding relationship, performing brightness fusion calculation on the brightness value of each corresponding Sub Cell sub-pixel and the brightness value of the corresponding Sub Cell sub-pixel, to obtain the brightness value of each pixel in the combined image.
[0104] The specific algorithm for brightness fusion calculation can be found in the brightness fusion algorithm in the relevant technology. In an example, one pixel in the combined image corresponds to one sub cell sub-pixel / main cell sub-pixel. For each pixel in the combined image, the brightness value of the pixel can be calculated using the following formula.
[0105]
[0106] Among them, sim represents the brightness value of pixel (i, j) in the combined image, Lmain min With Lmain max They are the minimum and maximum brightness of the MainCell pixel, Lsub min with Lsub max Lmain is the minimum and maximum brightness of the sub-cell pixel, main is the brightness value of the main cell sub-pixel (i, j), and sub is the brightness value of the sub-cell sub-pixel (i, j). min With Lmain max It can be obtained according to the Gamma curve of the Main Cell layer, Lsub min with Lsub max It can be obtained based on the Gamma curve of the SubCell layer. In an example, the Gamma curve of the Main Cell layer can be Gamma=1.0, and the Gamma curve of the SubCell layer can be Gamma=2.2.
[0107] In other possible implementations, a pixel in the combined image may correspond to a Main Cell pixel. In this case, each pixel in the combined image may be divided into multiple combined sub-pixels, with one combined sub-pixel corresponding to one Sub Cell / Main Cell sub-pixel. The brightness value of the combined sub-pixel is calculated using the above formula. In this case, sim represents the brightness value of the combined sub-pixel (i, j) in the combined image. Because the combined sub-pixels are obtained by dividing the pixels in the combined image, the brightness value of each pixel in the combined image can be obtained based on the brightness value of the combined sub-pixels obtained by dividing the pixel.
[0108] In an embodiment of the present application, the brightness values of each corresponding Sub Cell sub-pixel and the brightness values of the corresponding Sub Cell sub-pixels are respectively subjected to brightness fusion calculation to obtain the brightness value of each pixel in the combined image, thereby realizing the acquisition of the brightness value of each pixel in the combinable image.
[0109] In one possible implementation, to more subjectively observe the brightness value of each pixel in the combined image, the method further includes displaying the combined image on a display screen according to the brightness value of each pixel in the combined image. Because the combined image is a single image derived from the combination of the Sub Cell layer and the Main Cell layer, it can be displayed on a conventional display screen (not one using BD Cell technology), allowing researchers to intuitively observe the brightness value of each pixel in the combined image.
[0110] In addition to being able to observe the brightness display effect of the combined image, the embodiment of the present application also provides a method for analyzing brightness value errors.
[0111] In one possible implementation, the method further includes:
[0112] Step 1: Obtain the brightness value of each original pixel in the original image, wherein the original image is the image used to calculate the brightness value of each pixel in the Sub Cell layer and the brightness value of each pixel in the Main Cell layer.
[0113] The original image is the image to be displayed on the BD Cell display. The SubCell layer and Main Cell layer used in step S101 are calculated based on the original image using the designed brightness algorithm. The original pixels in the original image can be directly the pixels of the original image. In one example, to ensure pixel correspondence, each pixel of the original image is divided into multiple original pixels according to a predetermined sub-pixel size.
[0114] Step 2: For each pixel in the combined image, if the brightness value of the Main Cell sub-pixel corresponding to the pixel is the largest and the brightness value of the pixel is less than the brightness value of the original pixel corresponding to the pixel, determine that the pixel has overflow.
[0115] Overflow refers to the situation where the Sub Cell layer does not provide enough light. Even if the brightness value of the pixels in the Main Cell layer is the largest, the overflow cannot be compensated.
[0116] In one possible implementation, the method further includes:
[0117] Step 1: Obtain the brightness value of each original pixel in the original image;
[0118] Step 2: For each pixel in the combined image, if the brightness value of the Main Cell sub-pixel corresponding to the pixel is 0, the brightness value of the original pixel corresponding to the pixel is 0, and the brightness value of the Sub Cell sub-pixel corresponding to the pixel is greater than 0, determine that the pixel is truncation.
[0119] The area with zero brightness value in the original image is assigned a value greater than zero in the Sub Cell layer. At this time, due to light leakage from L0 of the Main Cell layer, even if the brightness value of the corresponding area in the Sub Cell layer is 0, there is still a halo, which is a truncation situation.
[0120] In one possible implementation, the method further includes:
[0121] Step 1: Obtain the brightness value of each original pixel in the original image;
[0122] Step 1: for each pixel in the combined image, if the brightness value of the pixel is not equal to the brightness value of the original pixel corresponding to the pixel, it is determined that there is a calculation error in the pixel.
[0123] Due to calculation errors caused by factors such as the screen structure or algorithm, the brightness of the pixels in the combined image is greater or less than the brightness value of the corresponding original pixels in the original image, which is a calculation error.
[0124] It is understandable that pixels / sub-pixels at the same position correspond to each other in the embodiment of the present application. In one example, different colors can be marked in the combined image for different situations, and the color of each mark can be set according to the actual situation. For example, pixels with overflow are marked as blue, pixels with truncation are marked as white, and pixels with calculation errors are marked as red or green (wherein, if the brightness value of a pixel in the combined image is greater than the brightness value of the original pixel corresponding to the pixel, it can be marked as red, and if the brightness value of a pixel in the combined image is less than the brightness value of the original pixel corresponding to the pixel, it can be marked as green), etc. The combined image marked with colors is displayed on a conventional display screen to facilitate R&D personnel to intuitively view the area with errors.
[0125] During the actual test process, it was found that there was basically no overflow in the combined image. The main causes were truncation and calculation errors, and the truncation and calculation errors mainly occurred in the area where light and dark meet. The root cause of the calculation error is related to the screen structure. The Sub Cell pixels are irregular, so some or all of the Main Cell pixels need to correspond to multiple Sub Cell pixels. When calculating the Main Cell compensation, multiple Sub Cell value weights are used to simulate mixed light. When the grayscale difference between adjacent Sub Cell pixels is large, the error of weighted mixing will be relatively large, and errors will occur at this time. When misaligned, the backlight of the bright area will darken and the backlight of the dark area will brighten. In this way, the area of the calculated error will increase, and the difference in grayscale value with the original image will be greater.
[0126] In the embodiment of the present application, the accuracy of the brightness algorithm can be evaluated by comparing the brightness values of each pixel / sub-pixel. In addition, the areas that cannot be restored can be intuitively observed in the image, which is beneficial to image defect analysis and improvement of the brightness algorithm.
[0127] The present invention provides a device for determining the brightness value of an image. Figure 5 , the device comprises:
[0128] The layer brightness value acquisition module 501 is used to obtain the brightness value of each sub cell pixel in the sub cell layer and the brightness value of each main cell pixel in the main cell layer;
[0129] A first sub-pixel model building module 502 is configured to build a sub-pixel model of the Sub Cell layer to obtain a SubCell sub-pixel model;
[0130] A first sub-pixel brightness value determination module 503 is configured to obtain the brightness value of each sub-cell sub-pixel in the sub-cell sub-pixel model according to the brightness value of each sub-cell pixel;
[0131] A second sub-pixel model building module 504 is configured to build a sub-pixel model of the Main Cell layer to obtain a Main Cell sub-pixel model, wherein the sub-cell sub-pixels in the Sub Cell sub-pixel model have the same shape and size as the main cell sub-pixels in the MainCell sub-pixel model;
[0132] The second sub-pixel brightness value determination module 505 is configured to obtain the brightness value of each Main Cell sub-pixel in the Main Cell sub-pixel model according to the brightness value of each Main Cell pixel;
[0133] a correspondence determination module 506 for establishing a correspondence between sub-cell sub-pixels and main-cell sub-pixels based on the position of each sub-cell sub-pixel in the sub-cell sub-pixel model and the position of each main-cell sub-pixel in the main-cell sub-pixel model;
[0134] The combined image brightness value calculation module 507 is used to calculate the brightness value of each pixel in the combined image according to the corresponding relationship, the brightness value of each sub-cell sub-pixel, and the brightness value of each main cell sub-pixel.
[0135] In one possible implementation, the first sub-pixel brightness value determination module is specifically configured to: divide each pixel of the sub-cell layer into a plurality of sub-cell sub-pixels according to a preset sub-pixel size to obtain each segmented sub-cell sub-pixel; and adjust the position of the segmented sub-cell sub-pixels according to the shape of the sub-cell pixels and the shape of the main cell pixel to obtain a sub-cell sub-pixel model;
[0136] The second sub-pixel model establishment module is specifically used to: divide each pixel of the MainCell layer into multiple Main Cell sub-pixels according to the preset sub-pixel size to obtain a Main Cell sub-pixel model.
[0137] In one possible implementation, the first sub-pixel brightness value determination module is specifically configured to adjust, for each sub-cell pixel, the positions of the sub-cell sub-pixels obtained by segmenting the sub-cell pixel according to the shape of the sub-cell pixel, so that a sub-cell pixel unit formed by splicing the sub-cell sub-pixels obtained by segmenting the sub-cell pixel has the same shape and size as a main cell pixel unit, wherein the main cell pixel unit is composed of at least two adjacent main cell pixels.
[0138] In one possible implementation, the root combined image brightness value calculation module is specifically used to: perform brightness fusion calculation on the brightness values of each corresponding Sub Cell sub-pixel and the brightness values of the corresponding Sub Cell sub-pixels according to the corresponding relationship to obtain the brightness value of each pixel in the combined image.
[0139] In a possible implementation, the device further includes:
[0140] An original image acquisition module, configured to obtain the brightness value of each original pixel in the original image, wherein the original image is the image used to calculate the brightness value of each pixel in the Sub Cell layer and the brightness value of each pixel in the Main Cell layer;
[0141] The overflow condition determination module is used to determine, for each pixel in the combined image, whether an overflow condition exists in the pixel when the brightness value of the Main Cell sub-pixel corresponding to the pixel is the largest and the brightness value of the pixel is less than the brightness value of the original pixel corresponding to the pixel.
[0142] In a possible implementation, the device further includes:
[0143] The original image acquisition module is used to obtain the brightness value of each original pixel in the original image;
[0144] The overflow situation determination module is used to determine, for each pixel in the combined image, whether the pixel is truncation when the brightness value of the Main Cell sub-pixel corresponding to the pixel is 0, the brightness value of the original pixel corresponding to the pixel is 0, and the brightness value of the SubCell sub-pixel corresponding to the pixel is greater than 0.
[0145] In a possible implementation, the device further includes:
[0146] The original image acquisition module is used to obtain the brightness value of each original pixel in the original image;
[0147] The overflow condition determination module is used to determine, for each pixel in the combined image, if the brightness value of the pixel is not equal to the brightness value of the original pixel corresponding to the pixel, whether the pixel has a calculation error.
[0148] An embodiment of the present application further provides an electronic device, comprising: a processor and a memory;
[0149] The aforementioned memory is used to store computer programs;
[0150] When the processor is used to execute the computer program stored in the memory, any one of the methods for determining the image brightness value described in the present application is implemented.
[0151] In one possible implementation, see Figure 6 The electronic device of the embodiment of the present application further includes a communication interface 602 and a communication bus 604 , wherein the processor 601 , the communication interface 602 , and the memory 603 communicate with each other via the communication bus 604 .
[0152] The communication bus mentioned in the electronic device mentioned above may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the figure shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0153] The communication interface is used for communication between the above electronic device and other devices.
[0154] The memory may include RAM (Random Access Memory) or NVM (Non-Volatile Memory), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0155] The above-mentioned processor can be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), etc.; it can also be a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0156] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the methods for determining the image brightness value described in the present application is implemented.
[0157] In another embodiment provided in the present application, a computer program product including instructions is further provided, which, when executed on a computer, enables the computer to execute any of the methods for determining image brightness values described in the present application.
[0158] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive SolidState Disk (SSD)).
[0159] It should be noted that, in this article, the technical features in each optional solution can be combined to form a solution as long as there is no contradiction, and these solutions are all within the scope disclosed in this application. Relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "comprise", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only include those elements, but also include other elements not clearly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "comprising a..." do not exclude the presence of other identical elements in the process, method, article or equipment including the elements.
[0160] Each embodiment in this specification is described in a related manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences between the other embodiments. In particular, the embodiments of the apparatus, electronic device, computer program product, and storage medium are generally similar to the method embodiments, so their descriptions are relatively simple. For relevant portions, reference can be made to the descriptions of the method embodiments.
[0161] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.
Claims
1. A method for determining image brightness value, characterized in that: The method comprises: Use the designed brightness algorithm to calculate the original image to be displayed to obtain the Sub Cell layer and Main Cell layer of the original image; Get the brightness value of each Sub Cell pixel in the Sub Cell layer and the brightness value of each Main Cell pixel in the Main Cell layer; Divide each pixel of the sub cell layer into a plurality of sub cell sub pixels according to a preset sub pixel size to obtain each divided sub cell sub pixel; Adjusting the positions of the segmented sub-cell pixels according to the shapes of the sub-cell pixels and the main cell pixels to obtain a sub-cell sub-pixel model; Obtaining the brightness value of each sub-cell sub-pixel in the sub-cell sub-pixel model according to the brightness value of each sub-cell pixel; Dividing each pixel of the main cell layer into a plurality of main cell sub-pixels according to the preset sub-pixel size to obtain a main cell sub-pixel model; wherein the sub cell sub-pixels in the sub cell sub-pixel model have the same shape and size as the main cell sub-pixels in the main cell sub-pixel model; Obtaining the brightness value of each Main Cell sub-pixel in the Main Cell sub-pixel model according to the brightness value of each Main Cell pixel; Establishing a correspondence between sub-cell sub-pixels and main-cell sub-pixels based on the position of each sub-cell sub-pixel in the sub-cell sub-pixel model and the position of each main-cell sub-pixel in the main-cell sub-pixel model; The brightness value of each pixel in the combined image is calculated according to the corresponding relationship, the brightness value of each sub cell sub-pixel, and the brightness value of each main cell sub-pixel.
2. The method according to claim 1, characterized in that The adjusting the positions of the segmented sub-cell pixels according to the shapes of the sub-cell pixels and the main cell pixels to obtain a sub-cell sub-pixel model includes: For each sub-cell pixel, the positions of the sub-cell sub-pixels after the sub-cell pixel is divided are adjusted according to the shape of the sub-cell pixel, so that the sub-cell pixel unit formed by splicing the sub-cell sub-pixels after the sub-cell pixel is the same shape and size as the main cell pixel unit, wherein the main cell pixel unit is composed of at least two adjacent main cell pixels.
3. The method according to claim 1, characterized in that Calculating the brightness value of each pixel in the combined image based on the corresponding relationship, the brightness value of each sub-cell sub-pixel, and the brightness value of each main cell sub-pixel includes: According to the corresponding relationship, the brightness values of the corresponding sub-cell sub-pixels and the corresponding sub-cell sub-pixels are respectively subjected to brightness fusion calculation to obtain the brightness value of each pixel in the combined image.
4. The method according to claim 1, wherein The method further comprises: Obtaining the brightness value of each original pixel in the original image, wherein the original image is the image used to calculate the brightness value of each pixel in the Sub Cell layer and the brightness value of each pixel in the Main Cell layer; For each pixel in the combined image, if the brightness value of the Main Cell sub-pixel corresponding to the pixel is the largest and the brightness value of the pixel is less than the brightness value of the original pixel corresponding to the pixel, it is determined that the pixel has overflow.
5. The method according to claim 1, characterized in that The method further comprises: Get the brightness value of each original pixel in the original image; For each pixel in the combined image, if the brightness value of the Main Cell sub-pixel corresponding to the pixel is 0, the brightness value of the original pixel corresponding to the pixel is 0, and the brightness value of the Sub Cell sub-pixel corresponding to the pixel is greater than 0, it is determined that the pixel is truncation.
6. The method according to claim 1, wherein The method further comprises: Get the brightness value of each original pixel in the original image; For each pixel in the combined image, if the brightness value of the pixel is not equal to the brightness value of the original pixel corresponding to the pixel, it is determined that a calculation error exists in the pixel.
7. A device for determining image brightness value, characterized in that: The device comprises: The layer brightness value acquisition module is used to calculate the original image to be displayed using the designed brightness algorithm to obtain the sub cell layer and main cell layer of the original image, and obtain the brightness value of each sub cell pixel in the sub cell layer and the brightness value of each main cell pixel in the main cell layer; A first sub-pixel model building module is configured to divide each pixel of the sub-cell layer into a plurality of sub-cell sub-pixels according to a preset sub-pixel size and a preset sub-pixel shape, thereby obtaining each segmented sub-cell sub-pixel; and adjust the position of the segmented sub-cell sub-pixels according to the shape of the sub-cell pixel and the shape of the main cell pixel, thereby obtaining a sub-cell sub-pixel model. A first sub-pixel brightness value determination module is configured to obtain the brightness value of each sub-cell sub-pixel in the sub-cell sub-pixel model according to the brightness value of each sub-cell pixel; a second sub-pixel model establishment module, configured to divide each pixel of the main cell layer into a plurality of main cell sub-pixels according to the preset sub-pixel size and the preset sub-pixel shape, to obtain a main cell sub-pixel model, wherein the sub cell sub-pixels in the sub cell sub-pixel model have the same shape and size as the main cell sub-pixels in the main cell sub-pixel model; A second sub-pixel brightness value determination module is used to obtain the brightness value of each Main Cell sub-pixel in the MainCell sub-pixel model according to the brightness value of each Main Cell pixel; A correspondence determination module is used to establish a correspondence between sub-cell sub-pixels and main cell sub-pixels based on the position of each sub-cell sub-pixel in the sub-cell sub-pixel model and the position of each main cell sub-pixel in the main cell sub-pixel model; The combined image brightness value calculation module is used to calculate the brightness value of each pixel in the combined image according to the corresponding relationship, the brightness value of each sub cell sub-pixel, and the brightness value of each main cell sub-pixel.
8. An electronic device, characterized in that: including processor and memory; The memory is used to store computer programs; The processor is configured to implement the method for determining the image brightness value according to any one of claims 1 to 6 when executing the program stored in the memory.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for determining the image brightness value according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Double-layer liquid crystal screen, backlight brightness control method and device and electronic device
CN108877694A
Method of enhancing contrast and a dual-cell display apparatus
US20200320941A1