Brightness adjustment method, apparatus, device, storage medium and program product
By converting the brightness map from linear space to logarithmic space and performing filtering, the base layer and detail layer images are obtained. Based on configuration parameters, the images are compressed and merged, solving the problem that ACL and SRE functions cannot be activated simultaneously in OLED display technology. This achieves efficient brightness adjustment and saves hardware resources.
Patent Information
- Application Number
- CN202311452029.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2043-11-02
AI Technical Summary
In OLED display technology, ACL and SRE functions have opposite effects, leading to a waste of hardware resources, making it impossible to start them simultaneously and efficiently adjust the display brightness.
A brightness adjustment method is used to convert the brightness map from linear space to logarithmic space, perform filtering to obtain base layer and detail layer images, compress and merge them based on configuration parameters, and finally convert them back to linear space to adjust the brightness.
It enables the adjustment of display brightness using only one set of calculation logic to meet different brightness requirements, thus saving hardware resources.
Smart Images

Figure CN117456969B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technology, and in particular to a brightness adjustment method, apparatus, computer equipment, storage medium, and computer program product. Background Technology
[0002] In OLED (organic light-emitting diode) display technology, two common functions for adjusting display brightness are ACL (Automatic Current Limitation) and SRE (Sunlight Readable Enhancement). ACL reduces screen brightness, while SRE improves readability in direct sunlight or strong light conditions.
[0003] In traditional technologies, ACL and SRE functions have opposite effects and therefore cannot be activated simultaneously. Therefore, different algorithmic processes are used to implement these two functions, which are then deployed on different hardware resources.
[0004] However, since the hardware resources deployed in display devices are limited, this approach, while achieving both functions, is relatively wasteful of hardware resources. Summary of the Invention
[0005] Therefore, it is necessary to provide a brightness adjustment method, apparatus, computer device, computer-readable storage medium, and computer program product that can use a single set of computational logic to adjust the display brightness of the display page under two different brightness adjustment requirements.
[0006] Firstly, this application provides a brightness adjustment method. The method includes:
[0007] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0008] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0009] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0010] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0011] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0012] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0013] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0014] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0015] In one embodiment, obtaining the brightness adjustment requirement includes:
[0016] If the current ambient brightness value is greater than the preset ambient brightness value, then the brightness adjustment requirement is determined as the first brightness requirement;
[0017] If it is detected that the display brightness of the screen needs to be reduced, then the brightness adjustment requirement is determined to be the second brightness requirement.
[0018] In one embodiment, obtaining the luminance map corresponding to the current image based on the current image of the displayed page includes:
[0019] Get the grayscale value of the current image;
[0020] Convert the grayscale values of the current image into brightness values;
[0021] Based on the brightness value, determine the brightness map corresponding to the current image.
[0022] In one embodiment, filtering the brightness map to obtain the corresponding base layer image and detail layer image includes:
[0023] When the brightness adjustment requirement is the first brightness requirement, the brightness map converted to logarithmic space is subjected to guided filtering to obtain the first base layer image. Based on the first base layer image and the brightness map converted to logarithmic space, the first detail layer image is determined.
[0024] When the brightness adjustment requirement is the second brightness requirement, the brightness map is subjected to guided filtering to obtain the second base layer image. Based on the second base layer image and the brightness map, the second detail layer image is determined.
[0025] In one embodiment, obtaining the configuration parameters corresponding to the brightness adjustment requirement includes:
[0026] When the brightness adjustment requirement is the first brightness requirement, based on the difference between the current ambient brightness value and the ambient brightness preset value, a first configuration parameter corresponding to the first base layer image and a second configuration parameter corresponding to the first detail layer image are determined, wherein the second configuration parameter corresponding to the first detail layer image is a parameter preset value;
[0027] When the brightness adjustment requirement is the second brightness requirement, the brightness adjustment ratio in the second brightness requirement is obtained, and based on the brightness adjustment ratio, the first configuration parameter corresponding to the second base layer image and the second configuration parameter corresponding to the second detail layer image are determined.
[0028] In one embodiment, adjusting the brightness of the display page based on the brightness map and the merged image includes:
[0029] When the brightness adjustment requirement is the first brightness requirement, a first scaling factor is obtained based on the brightness map and the merged image converted to linear space, and the brightness of the display page is adjusted based on the first scaling factor;
[0030] When the brightness adjustment requirement is the second brightness requirement, a second scaling factor is obtained based on the brightness map and the merged image, and the brightness of the display page is adjusted based on the second scaling factor.
[0031] Secondly, this application also provides a brightness adjustment device. The device includes:
[0032] A brightness adjustment requirement acquisition module is used to acquire brightness adjustment requirements; the brightness adjustment requirements are either a first brightness requirement or a second brightness requirement.
[0033] The brightness map acquisition module is used to acquire the brightness map corresponding to the current image on the display page.
[0034] A brightness diagram conversion module is used to convert the brightness diagram from linear space to logarithmic space when the brightness adjustment requirement is the first brightness requirement.
[0035] The base layer and detail layer image acquisition module is used to filter the brightness map to obtain the base layer image and detail layer image corresponding to the brightness map;
[0036] The configuration parameter acquisition module is used to acquire the configuration parameters corresponding to the brightness adjustment requirements;
[0037] The image merging module is used to compress the base layer image and the detail layer image based on the configuration parameters, and then merge the compressed base layer image and detail layer image to obtain a merged image;
[0038] The merged image conversion module is used to convert the merged image from logarithmic space to linear space when the brightness adjustment requirement is the first brightness requirement;
[0039] A brightness adjustment module is used to adjust the brightness of the display page based on the brightness map and the merged image.
[0040] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0041] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0042] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0043] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0044] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0045] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0046] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0047] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0048] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0049] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0050] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0051] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0052] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0053] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0054] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0055] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0056] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0057] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0058] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0059] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0060] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0061] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0062] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0063] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0064] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0065] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0066] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0067] The aforementioned brightness adjustment method, apparatus, computer equipment, storage medium, and computer program product acquire a brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement; based on the current image of the display page, acquire the brightness map corresponding to the current image; if the brightness adjustment requirement is the first brightness requirement, convert the brightness map from linear space to logarithmic space; filter the brightness map to acquire the base layer image and detail layer image corresponding to the brightness map; acquire the configuration parameters corresponding to the brightness adjustment requirement; based on the configuration parameters, compress the base layer image and detail layer image, and merge the compressed base layer image and detail layer image to obtain a merged image; if the brightness adjustment requirement is the first brightness requirement, convert the merged image from logarithmic space to linear space; based on the brightness map and the merged image, adjust the brightness of the display page. Compared to the traditional approach that uses different algorithmic processes to achieve these two functions, this method processes the currently displayed image based on different brightness requirements, and adjusts the brightness of the display page based on the results of the image processing. By improving the brightness adjustment methods for two different brightness requirements, this method achieves the goal of adjusting the display brightness of the display page under two different brightness adjustment conditions using only one set of calculation logic, thereby saving hardware resources. Attached Figure Description
[0068] Figure 1 This is a flowchart illustrating a brightness adjustment method in one embodiment;
[0069] Figure 2 This is a flowchart illustrating the brightness adjustment method in another embodiment;
[0070] Figure 3 This is a flowchart illustrating the brightness adjustment method in yet another embodiment;
[0071] Figure 4 This is a structural block diagram of the brightness adjustment device in one embodiment;
[0072] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0073] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0074] In one embodiment, such as Figure 1 As shown, a brightness adjustment method is provided. Taking the application of this method to a terminal as an example, the method includes the following steps:
[0075] Step 102: Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0076] The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.
[0077] The first brightness requirement can be the need to increase the display brightness of the screen; the second brightness requirement can be the need to decrease the display brightness of the screen. The first brightness requirement and the second brightness requirement are two opposite brightness adjustment needs.
[0078] In practice, if the display device is a mobile phone or similar terminal device, brightness adjustment requests can be triggered based on the user's default settings. For example, the settings can be configured to adjust the display brightness according to changes in the surrounding environment. Specifically, a brightness sensor can detect ambient brightness to trigger brightness adjustment requests, thereby adjusting the brightness displayed on the device. Brightness adjustment requests can also be triggered by user-initiated brightness adjustment actions.
[0079] Step 104: Based on the current image of the displayed page, obtain the brightness map corresponding to the current image.
[0080] The current image displayed on the page includes the RGB three-channel grayscale values of each pixel in the current image. The luminance map corresponding to the current image can include the relative luminance value of each pixel in the current image.
[0081] For example, based on the current image displayed on the page, a luminance map corresponding to the current image can be obtained. Specifically, the luminance value of each pixel in the current image can be obtained using the RGB three-channel grayscale values of each pixel and an electro-optical conversion function, thus obtaining the luminance map corresponding to the current image. The electro-optical conversion function is used to convert the grayscale of the current image into luminance values.
[0082] Step 106: If the brightness adjustment requirement is the first brightness requirement, the brightness map is converted from linear space to logarithmic space.
[0083] Specifically, the brightness value of each pixel in the brightness map is transformed from linear space to logarithmic space.
[0084] For example, when the brightness adjustment requirement is identified as the primary brightness requirement, the brightness map can be transformed from linear space to logarithmic space. Specifically, the brightness value of each pixel in the brightness map can be transformed from linear space to logarithmic space.
[0085] In practice, the brightness value of each pixel in the brightness map is transformed from linear space to logarithmic space. Logarithmic operation rules need to be considered. For example, the input for logarithmic operations cannot be 0; therefore, a minimum value is added to the value corresponding to 0. Specifically, the normalized brightness value range is (0,1], which becomes (-6.93,0) after transformation to logarithmic space.
[0086] Step 108: Filter the brightness map to obtain the base layer image and detail layer image corresponding to the brightness map.
[0087] The base layer image represents low-frequency information in the luminance map. This low-frequency information refers to areas with relatively low grayscale value variation. The detail layer image represents high-frequency information in the luminance map. This high-frequency information refers to areas with high grayscale value variation. Understandably, areas with low grayscale value variation appear as gradual changes in the image. Areas with high grayscale value variation appear as distinct features in the image, such as the outlines of objects.
[0088] For example, the luminance map can be filtered to obtain the corresponding base layer image and detail layer image. Specifically, when the brightness adjustment requirement is a first brightness requirement, the luminance map converted to logarithmic space is subjected to guided filtering to obtain the corresponding first base layer image and first detail layer image. When the brightness adjustment requirement is a second brightness requirement, the luminance map is subjected to guided filtering to obtain the corresponding second base layer image and second detail layer image.
[0089] In practice, a guided filter can be used to perform guided filtering on the brightness map to obtain the base layer image, and then the detail layer image can be obtained based on the brightness map and the base layer image. Specifically, when using a guided filter for guided filtering, the guide map and the input image can be set to the same image, i.e., the brightness map, to obtain the base layer image.
[0090] Step 110: Obtain the configuration parameters corresponding to the brightness adjustment requirements.
[0091] The configuration parameters are compression parameters based on brightness adjustment requirements. These parameters can include a first configuration parameter and a second configuration parameter. The first configuration parameter is used to compress the base layer image. The second configuration parameter is used to compress the detail layer image.
[0092] For example, based on different brightness adjustment requirements, a first configuration parameter and a second configuration parameter corresponding to the brightness adjustment requirement can be obtained. Specifically, the first configuration parameter and the second configuration parameter corresponding to the brightness adjustment requirement can be obtained based on the criteria for determining the configuration parameters corresponding to different brightness adjustment requirements.
[0093] For example, when the brightness adjustment requirement is a first brightness requirement, a first configuration parameter corresponding to the first base layer image and a second configuration parameter corresponding to the first detail layer image are obtained. When the brightness adjustment requirement is a second brightness requirement, a first configuration parameter corresponding to the second base layer image and a second configuration parameter corresponding to the second detail layer image are obtained.
[0094] Step 112: Based on the configuration parameters, compress the base layer image and the detail layer image, and merge the compressed base layer image and detail layer image to obtain a merged image.
[0095] For example, when the brightness adjustment requirement is the first brightness requirement, the first base layer image is compressed using the first configuration parameters corresponding to the first base layer image, the first detail layer image is compressed using the second configuration parameters corresponding to the first detail layer image, and the compressed first base layer image and the first detail layer image are merged to obtain the first merged image.
[0096] When the brightness adjustment requirement is the second brightness requirement, the second base layer image is compressed using the first configuration parameters corresponding to the second base layer image, and the second detail layer image is compressed using the second configuration parameters corresponding to the second detail layer image. The compressed second base layer image and the second detail layer image are then merged to obtain the second merged image.
[0097] Step 114: If the brightness adjustment requirement is the first brightness requirement, the merged image is converted from logarithmic space to linear space.
[0098] For example, when the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space. Specifically, an exponential operation is performed on each pixel of the merged image, thereby transforming the data from logarithmic space to linear space.
[0099] Step 116: Adjust the brightness of the display page based on the brightness map and the merged image.
[0100] The brightness map can be obtained by converting the RGB three-channel grayscale values of each pixel in the current image.
[0101] For example, when the brightness adjustment requirement is a first brightness requirement, the brightness of the displayed page is adjusted based on the brightness map and the first merged image. When the brightness adjustment requirement is a second brightness requirement, the brightness of the displayed page is adjusted based on the brightness map and the second merged image.
[0102] In the above brightness adjustment method, the brightness adjustment requirement is obtained; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement; based on the current image of the display page, the brightness map corresponding to the current image is obtained; when the brightness adjustment requirement is the first brightness requirement, the brightness map is converted from linear space to logarithmic space; the brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map; the configuration parameters corresponding to the brightness adjustment requirement are obtained; based on the configuration parameters, the base layer image and detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image; when the brightness adjustment requirement is the first brightness requirement, the merged image is converted from logarithmic space to linear space; based on the brightness map and the merged image, the brightness of the display page is adjusted. Compared with the traditional method that uses different algorithm flows to implement these two functions, this method performs image processing on the currently displayed image based on different brightness requirements, and adjusts the brightness of the display page based on the image processing results. By improving the brightness adjustment method for two different brightness requirements, it achieves the goal of adjusting the display brightness of the display page under two different brightness adjustment requirements using only one set of calculation logic, thereby saving hardware resources.
[0103] In one embodiment, step 102 includes:
[0104] Step 1022: If the current ambient brightness value is greater than the preset ambient brightness value, then the brightness adjustment requirement is determined to be the first brightness requirement.
[0105] The first brightness requirement refers to the brightness adjustment needed when the current ambient brightness exceeds a preset ambient brightness value. The preset ambient brightness value can be set based on experience. Specifically, the brightness of the environment in which the display device is located can be detected using the display device's brightness sensor.
[0106] In practice, the primary brightness requirement triggers the SRE (Super Filtering and Refreshing) function in the display device. When users use their phones or tablets outdoors, the strong outdoor light necessitates increasing the screen brightness to improve display quality. If adjusting gamma and dimming to maximum brightness is insufficient, the SRE function will be triggered to further enhance the display.
[0107] Step 1024: If it is detected that the display brightness of the display page needs to be reduced, then the brightness adjustment requirement is determined to be the second brightness requirement.
[0108] The second brightness requirement can be the brightness adjustment requirement corresponding to the detection that the display brightness of the screen needs to be reduced.
[0109] In one example, the brightness of the environment surrounding the display device can be detected using the display device's brightness sensor. If the current display brightness of the screen is higher than a preset brightness value, it is determined that the display brightness needs to be reduced. The preset brightness value is determined based on the brightness of the environment detected by the brightness sensor. Multiple sets of preset brightness values and their correspondence with ambient brightness can be preset, thereby enabling adjustments to the display brightness when the environment changes.
[0110] In another example, the brightness of the display screen can be reduced in response to a user's command to lower the brightness of the display screen on the display device.
[0111] In practice, the second brightness requirement triggers the ACL function in the display device. When a user uses a mobile phone or tablet and lowers the current display brightness, the ACL function is triggered, thus lowering the brightness of the displayed page.
[0112] In the above embodiments, the first brightness requirement is the requirement to increase the display brightness of the display page, and the second brightness requirement is the requirement to decrease the display brightness of the display page. The two brightness requirements are opposite requirements for adjusting the display brightness. By improving the brightness adjustment method for the two different brightness requirements, it is possible to adjust the display brightness of the display page under the two different brightness adjustment requirements using only one set of calculation logic, thereby saving hardware resources.
[0113] In one embodiment, step 104 includes:
[0114] Step 1042: Obtain the grayscale value of the current image.
[0115] Step 1044: Convert the grayscale value of the current image into a brightness value.
[0116] Step 1046: Based on the brightness value, determine the brightness map corresponding to the current image.
[0117] For example, the grayscale value of the current image can be the RGB three-channel grayscale value of each pixel in the current image. Using an electro-optical conversion function, the RGB three-channel grayscale value of each pixel in the current image is converted into an overall brightness value for each pixel by looking up a table. Based on this overall brightness value, a brightness map corresponding to the current image is constructed. Specifically, using an electro-optical conversion function, the RGB three-channel grayscale value of each pixel in the current image is converted into an RGB three-channel brightness value by looking up a table. This RGB three-channel brightness value is then converted into a brightness value, which is also a relative brightness value.
[0118] In practice, when the primary brightness requirement is met, the SRE function is activated to normalize the RGB three-channel brightness values, yielding relative brightness values. Logarithmic calculations are then performed on the relative brightness values in the brightness map. Logarithmic calculations can also be implemented using lookup tables. Specifically, the formula for the logarithmic calculation of the relative brightness value for each pixel can be:
[0119] Y = log(0.2126 * R) luma +0.7152*G luma +0.0722*B luma );
[0120] Where Y represents the relative brightness value of a pixel; R luma G luma B luma 0.2126, 0.7152, and 0.0722 are the corresponding parameter values under the high-definition television standard (BT.709).
[0121] In the above embodiments, the grayscale value of the current image is obtained; by converting the grayscale value of the current image into a brightness value, the brightness map corresponding to the current image is obtained.
[0122] In one embodiment, step 108 includes:
[0123] Step 1082: When the brightness adjustment requirement is the first brightness requirement, the brightness map converted to logarithmic space is subjected to guided filtering to obtain the first base layer image. Based on the first base layer image and the brightness map converted to logarithmic space, the first detail layer image is determined.
[0124] Step 1084: When the brightness adjustment requirement is the second brightness requirement, the brightness map is subjected to guided filtering to obtain the second base layer image. Based on the second base layer image and the brightness map, the second detail layer image is determined.
[0125] Specifically, the basic assumption of the guided filter is that the filtered output is a local linear transformation of the guided image. Given the guided image and the input image, the linear coefficients can be obtained, including: when the guided image is a brightness map, a linear transformation is performed on the guided image to obtain the guided output image; the output image is q, the guided image is I, and for any position k in the image, the filtering window is w. k ,but
[0126]
[0127] Where, q i To guide the output graph, I i This is a guide diagram.
[0128] To make the output image q approximately identical to the input image p locally, there exists an optimization objective that minimizes q, p, and the mean square error, and then a... k and b k Find the partial derivative, that is:
[0129]
[0130]
[0131]
[0132] Here, ∈ is a configuration constant that serves to avoid division by zero and adjust a. k and b k Its function.
[0133] Make a k and b k Since the partial derivative of a is equal to 0, we can solve for a. k and b k ;
[0134]
[0135]
[0136] The pilot filter also includes a mean filter, for a k and b k Mean filtering is performed to obtain linear coefficients a and b. Specifically, the corresponding expressions are:
[0137] b k =f mean (p)-a k f mean (I);
[0138]
[0139]
[0140] a k (f mean (I 2 )+∈-f mean (I)·f mean (I))=f mean (I·p)-f mean (I)·f mean (p);
[0141] Based on the formulas for expectation, variance, and covariance, we can obtain:
[0142] Var I=f mean (I·I)-f mean (I)·f mean (I);
[0143] Cov Ip =f mean (I·p)-f mean (I)·f mean (P);
[0144]
[0145] b = f mean (p)-a·f mean (I);
[0146] Among them, f mean This represents mean filtering, and ∈ is the configuration constant. Since the guiding image I and the input image p are the same, both being brightness images Y, the calculation steps for the linear coefficients a and b can be simplified as follows:
[0147]
[0148] b=(1-α)·f mean (Y);
[0149] q = f mean (a)·I+f mean (b);
[0150] q = a·Ⅰ + b;
[0151] Where q is the output image, and a and b are the linear coefficients for each pixel of the image, with different linear coefficients for different pixels.
[0152] In practice, to reduce costs, the mean filter can be removed, and the output image can be calculated directly.
[0153] For example, when the brightness adjustment requirement is the first brightness requirement, triggering the SRE function will convert the brightness map to logarithmic space and perform guided filtering to obtain the first base image. The first detail layer image is obtained by subtracting the first base layer image from the brightness map converted to logarithmic space. Specifically, the brightness map converted to logarithmic space can be used as the guide image and input image of the guided filter to obtain linear coefficients a and b for the brightness map converted to logarithmic space; the guided filter uses the linear coefficients a and b for the brightness map converted to logarithmic space to obtain the first base image.
[0154] When the brightness adjustment requirement is the second brightness requirement, triggering the ACL function will cause the brightness map to undergo guided filtering processing through a guided filter to obtain the second base image. Subtracting the second base image from the brightness map yields the second detail layer image. Specifically, the brightness map can be used as both the guide image and the input image for the guided filter, thus obtaining linear coefficients a and b for the brightness map; the guided filter then uses these linear coefficients a and b to obtain the second base image.
[0155] In the above embodiments, guided filtering can enhance the edge features of the image to better obtain the edge features of the image, thereby obtaining the base layer image and detail layer image corresponding to the brightness map more accurately.
[0156] In one embodiment, step 110 includes:
[0157] Step 1102: When the brightness adjustment requirement is the first brightness requirement, based on the difference between the current ambient brightness value and the ambient brightness preset value, determine the first configuration parameter corresponding to the first base layer image and the second configuration parameter corresponding to the first detail layer image, wherein the second configuration parameter corresponding to the first detail layer image is a parameter preset value.
[0158] The current ambient brightness value is the brightness value of the environment in which the display device is located, detected by the brightness sensor in the display device. The ambient brightness preset value is a preset value of the brightness of the environment in which the display device is located, set based on empirical values. The second configuration parameter corresponding to the first detail layer image is a parameter preset value, which can be set based on empirical values, and is generally set to 1.
[0159] Specifically, when the brightness adjustment requirement is the primary brightness requirement, the parameter is preset to 1. By compressing and changing the brightness of the base layer image without altering the brightness range of the detail layer, the local contrast of the image is maintained, reducing the loss of image quality and thus improving the overall brightness of the image displayed on the page.
[0160] For example, when the brightness adjustment requirement is the first brightness requirement, the SRE function is triggered. Based on the difference between the current ambient brightness value and the preset ambient brightness value, a first configuration parameter corresponding to the first base layer image and a second configuration parameter corresponding to the first detail layer image are determined. Specifically, the first configuration parameter corresponding to the first base layer image is determined according to the magnitude of the difference between the current ambient brightness value and the preset ambient brightness value. The magnitude of the first configuration parameter corresponding to the first base layer image can be obtained based on the debugging results during actual production of display devices, resulting in multiple sets of preset differences between the current ambient brightness value and the preset ambient brightness value, and the corresponding relationship between the first configuration parameter corresponding to the first base layer image.
[0161] Step 1104: If the brightness adjustment requirement is the second brightness requirement, obtain the brightness adjustment ratio in the second brightness requirement, and based on the brightness adjustment ratio, determine the first configuration parameter corresponding to the second base layer image and the second configuration parameter corresponding to the second detail layer image.
[0162] The second brightness requirement includes a brightness adjustment ratio. The brightness adjustment ratio can be the ratio of the required brightness difference to the maximum brightness value of the display device specified in the second adjustment requirement.
[0163] In practice, when it is necessary to reduce the display brightness, the corresponding power reduction ratio of the brightness power in the display device is determined according to the brightness adjustment ratio in the brightness adjustment requirement. Specifically, the first configuration parameter corresponding to the second base layer image and the second configuration parameter corresponding to the second detail layer image are determined by the preset correspondence between the power reduction ratio and the configuration parameters. As shown in Table 1 below:
[0164] Table 1
[0165]
[0166] In the above embodiments, configuration parameters corresponding to different brightness requirements are obtained, thereby enabling compression of the corresponding base layer image and detail layer image based on the configuration parameters.
[0167] In one embodiment, step 116 includes:
[0168] Step 1162: When the brightness adjustment requirement is the first brightness requirement, obtain the first scaling factor based on the brightness map and the merged image converted to linear space, and adjust the brightness of the display page based on the first scaling factor.
[0169] Step 1164: If the brightness adjustment requirement is the second brightness requirement, obtain the second scaling factor based on the brightness map and the merged image, and adjust the brightness of the display page based on the second scaling factor.
[0170] For example, when the brightness adjustment requirement is a first brightness requirement, a first scaling factor is determined based on the brightness map and the merged image converted to linear space. Then, the brightness of the displayed page is adjusted based on the first scaling factor and each RGB linear brightness value of the brightness map. Specifically, the first scaling factor for each pixel can be calculated using the brightness value of each pixel in the brightness map and the merged image converted to linear space. Specifically, the formula for the first scaling factor for each pixel is:
[0171] f1 = Yout / Y in ;
[0172] Luma R / G / B =luma R / G / B *f1;
[0173] Where f1 is the first scaling factor for each pixel; Y out Y represents the brightness value of each pixel in the merged image, transformed to linear space. in Luma represents the brightness value of each pixel in the luminance map. R / G / B This represents the brightness value of each pixel after scaling; luma R / G / B Luma is the initial RGB linear brightness value for each pixel in the current image. R / G / B This is the adjusted RGB linear brightness value for each pixel in the current image.
[0174] For example, the calculation method for the second scaling factor can be the same as the calculation method for the first scaling factor described above.
[0175] Specifically, when the brightness adjustment requirement is the first brightness requirement, a first scaling factor is determined based on the brightness map and the merged image converted to linear space. Based on the first scaling factor, the display brightness is improved by enhancing the display effect of the image displayed on the display page.
[0176] When the brightness adjustment requirement is the second brightness requirement, a second scaling factor is determined based on the brightness map and the merged image converted to linear space. Based on the second scaling factor, the display brightness is reduced by lowering the grayscale value of the displayed content.
[0177] In the above embodiments, under different brightness requirements, the corresponding scaling factor is determined based on the brightness map and the merged image, and the current image of the display page is adjusted according to the scaling factor, thereby realizing the brightness adjustment of the display page.
[0178] In one embodiment, to better understand the brightness adjustment process in this embodiment of the invention, which aims to achieve two different brightness requirements using a single calculation process, a complete example is provided for illustration. (Refer to...) Figure 2 The diagram illustrates a flowchart of another brightness adjustment method.
[0179] Step 202: Convert the RGB three-channel grayscale values into three-channel brightness values using an electro-optical conversion function.
[0180] Step 204: Obtain the brightness map based on the brightness values of the RGB three channels.
[0181] Specifically, the brightness value of each pixel is obtained based on the brightness values of the RGB three channels of each pixel, thus obtaining a brightness map.
[0182] Step 206: Determine if the current brightness adjustment demand is the primary brightness demand. If the current brightness adjustment demand is the primary brightness adjustment demand, proceed to step 208; otherwise, proceed to step 210.
[0183] Step 208: Transform the brightness map from linear space to logarithmic space.
[0184] Specifically, the brightness value of each pixel in the brightness map is transformed from linear space to logarithmic space.
[0185] Step 210: Use a guided filter to decompose the brightness map into a base layer image and a detail layer image.
[0186] Step 212: Compress the base layer image and detail layer image according to the configuration parameters.
[0187] Step 214: Merge the compressed base layer image and detail layer image to obtain the merged image.
[0188] Step 216: Determine if the current brightness adjustment demand is the primary brightness demand. If the current brightness adjustment demand is the primary brightness demand, proceed to step 218; otherwise, proceed to step 220.
[0189] Step 218: Transform the merged image from logarithmic space to linear space.
[0190] Step 220: Determine the scaling factor for each pixel based on the luminance map and the merged image.
[0191] Step 222: Multiply the scaling factor of each pixel by the initial brightness value of the RGB three channels of each pixel to obtain the adjusted brightness value of the RGB three channels of each pixel.
[0192] Step 224: The brightness value of the RGB three channels of each pixel is adjusted to the grayscale value of the RGB three channels of each pixel through the photoelectric conversion function.
[0193] In practice, when the current brightness adjustment requirement is the primary brightness requirement, the SRE function is activated, setting the second configuration parameter for the second detail layer image to 1. This compresses the image brightness in logarithmic space, with the compression direction approaching 0 in logarithmic space and 1 in linear space, thereby improving the overall brightness of the image displayed on the page. By compressing and changing the brightness of the base layer image without altering the brightness range of the detail layer, local contrast of the image is maintained, reducing image quality loss.
[0194] In another embodiment, to better understand the brightness adjustment process in this embodiment of the invention that can achieve two different brightness requirements using a single calculation process, a complete example is provided for illustration. (Refer to...) Figure 3 This shows a flowchart of yet another brightness adjustment method.
[0195] Step 302: If the current ambient brightness value is greater than the preset ambient brightness value, then the brightness adjustment requirement is determined as the first brightness requirement; if it is detected that the display brightness of the display page needs to be reduced, then the brightness adjustment requirement is determined as the second brightness requirement.
[0196] Step 304: Obtain the grayscale value of the current image and convert the grayscale value of the current image into a brightness value; based on the brightness value, determine the brightness map corresponding to the current image.
[0197] Step 306: When the brightness adjustment requirement is the first brightness requirement, the brightness map is converted from linear space to logarithmic space; the brightness map converted to logarithmic space is subjected to guided filtering to obtain the first base layer image; based on the first base layer image and the brightness map converted to logarithmic space, the first detail layer image is determined.
[0198] Step 308: Based on the difference between the current ambient brightness value and the preset ambient brightness value, determine the first configuration parameter corresponding to the first base layer image and the second configuration parameter corresponding to the first detail layer image.
[0199] Step 310: Based on the first configuration parameters corresponding to the first base layer image and the second configuration parameters corresponding to the first detail layer image, the first base layer image and the first detail layer image are compressed, and after compression, they are merged to obtain the first merged image.
[0200] Step 312: Convert the first merged image from logarithmic space to linear space; obtain a first scaling factor based on the brightness map and the first merged image converted to linear space; and adjust the brightness of the current image on the display page based on the first scaling factor.
[0201] Step 314: When the brightness adjustment requirement is the second brightness requirement, the brightness map is subjected to guided filtering to obtain the second base layer image. Based on the second base layer image and the brightness map, the second detail layer image is determined.
[0202] Step 316: Obtain the brightness adjustment ratio in the second brightness requirement, and based on the brightness adjustment ratio, determine the first configuration parameter corresponding to the second base layer image and the second configuration parameter corresponding to the second detail layer image.
[0203] Step 318: Based on the first configuration parameters corresponding to the second base layer image and the second configuration parameters corresponding to the second detail layer image, the second base layer image and the second detail layer image are compressed, and after compression, they are merged to obtain the second merged image.
[0204] Step 320: Based on the brightness map and the second merged image, obtain the second scaling factor, and adjust the brightness of the current image on the display page based on the second scaling factor.
[0205] In this embodiment, the brightness adjustment requirement is obtained; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement; based on the current image of the display page, the brightness map corresponding to the current image is obtained; when the brightness adjustment requirement is the first brightness requirement, the brightness map is converted from linear space to logarithmic space; the brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map; the configuration parameters corresponding to the brightness adjustment requirement are obtained; based on the configuration parameters, the base layer image and detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image; when the brightness adjustment requirement is the first brightness requirement, the merged image is converted from logarithmic space to linear space; based on the brightness map and the merged image, the brightness of the display page is adjusted. Compared with the traditional method of using different algorithm flows to implement these two functions, this method performs image processing on the currently displayed image based on different brightness requirements, and adjusts the brightness of the display page based on the result of image processing. By improving the brightness adjustment method for two different brightness requirements, it achieves the goal of adjusting the display brightness of the display page under two different brightness adjustment requirements using only one set of calculation logic, thereby saving hardware resources.
[0206] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0207] Based on the same inventive concept, this application also provides a brightness adjustment device for implementing the brightness adjustment method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more brightness adjustment device embodiments provided below can be found in the limitations of the brightness adjustment method described above, and will not be repeated here.
[0208] In one embodiment, such as Figure 4 As shown, a brightness adjustment device is provided, including: a brightness adjustment requirement acquisition module 402, a brightness map acquisition module 404, a brightness map conversion module 406, a base layer and detail layer image acquisition module 408, a configuration parameter acquisition module 410, a merged image acquisition module 412, a merged image conversion module 414, and a brightness adjustment module 416, wherein:
[0209] A brightness adjustment requirement acquisition module 402 is used to acquire brightness adjustment requirements; the brightness adjustment requirements are either a first brightness requirement or a second brightness requirement.
[0210] The brightness map acquisition module 404 is used to acquire the brightness map corresponding to the current image based on the current image of the display page;
[0211] The brightness diagram conversion module 406 is used to convert the brightness diagram from linear space to logarithmic space when the brightness adjustment requirement is the first brightness requirement.
[0212] The base layer and detail layer image acquisition module 408 is used to filter the brightness map to obtain the base layer image and detail layer image corresponding to the brightness map;
[0213] The configuration parameter acquisition module 410 is used to acquire the configuration parameters corresponding to the brightness adjustment requirement;
[0214] The image merging module 412 is used to compress the base layer image and the detail layer image based on the configuration parameters, and then merge the compressed base layer image and detail layer image to obtain a merged image;
[0215] The merged image conversion module 414 is used to convert the merged image from logarithmic space to linear space when the brightness adjustment requirement is the first brightness requirement;
[0216] The brightness adjustment module 416 is used to adjust the brightness of the display page based on the brightness map and the merged image.
[0217] In some embodiments, the brightness adjustment requirement acquisition module 402 includes:
[0218] The first brightness requirement determination unit is used to determine the brightness adjustment requirement as the first brightness requirement when the current ambient brightness value is greater than the ambient brightness preset value.
[0219] The second brightness requirement determination unit is used to determine the brightness adjustment requirement as the second brightness requirement when it detects that the display brightness of the display page needs to be reduced.
[0220] In some embodiments, the luminance map acquisition module 404 includes:
[0221] Gray value acquisition unit, used to acquire the gray value of the current image;
[0222] The grayscale conversion unit converts the grayscale values of the current image into brightness values;
[0223] A luminance map acquisition unit is used to determine the luminance map corresponding to the current image based on the luminance value.
[0224] In some embodiments, the base layer and detail layer image obtaining module 408 includes:
[0225] The first base layer and detail layer image determination unit is used to perform guided filtering on the luminance map converted to logarithmic space to obtain the first base layer image when the luminance adjustment requirement is the first luminance requirement, and to determine the first detail layer image based on the first base layer image and the luminance map converted to logarithmic space.
[0226] The second base layer and detail layer image determination unit is used to perform guided filtering on the brightness map to obtain a second base layer image when the brightness adjustment requirement is the second brightness requirement, and to determine a second detail layer image based on the second base layer image and the brightness map.
[0227] In some embodiments, the configuration parameter acquisition module 410 includes:
[0228] The configuration parameter determination unit for the first base layer and the detail layer is used to determine, based on the difference between the current ambient brightness value and the ambient brightness preset value, a first configuration parameter corresponding to the first base layer image and a second configuration parameter corresponding to the first detail layer image when the brightness adjustment requirement is the first brightness requirement. The second configuration parameter corresponding to the first detail layer image is a parameter preset value.
[0229] The configuration parameter determination unit for the second base layer and detail layer is used to obtain the brightness adjustment ratio in the second brightness requirement when the brightness adjustment requirement is the second brightness requirement, and determine the first configuration parameter corresponding to the second base layer image and the second configuration parameter corresponding to the second detail layer image based on the brightness adjustment ratio.
[0230] In some embodiments, the brightness adjustment module 416 includes:
[0231] The first brightness adjustment unit is configured to, when the brightness adjustment requirement is a first brightness requirement, obtain a first scaling factor based on the brightness map and the merged image converted to linear space, and adjust the brightness of the display page based on the first scaling factor;
[0232] The second brightness adjustment unit is used to obtain a second scaling factor based on the brightness map and the merged image when the brightness adjustment requirement is the second brightness requirement, and to adjust the brightness of the display page based on the second scaling factor.
[0233] Each module in the aforementioned brightness adjustment device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0234] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a brightness adjustment method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0235] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0236] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0237] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0238] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0239] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0240] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0241] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0242] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0243] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0244] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0245] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0246] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0247] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0248] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0249] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0250] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0251] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0252] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0253] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0254] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0255] Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement.
[0256] Based on the current image displayed on the page, obtain the brightness map corresponding to the current image;
[0257] When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space;
[0258] The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map;
[0259] Obtain the configuration parameters corresponding to the brightness adjustment requirements;
[0260] Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image;
[0261] When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space;
[0262] The brightness of the display page is adjusted based on the brightness map and the merged image.
[0263] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0264] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0265] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0266] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A brightness adjustment method, characterized in that, The method includes: Obtain the brightness adjustment requirement; the brightness adjustment requirement is either a first brightness requirement or a second brightness requirement. Based on the current image displayed on the page, obtain the brightness map corresponding to the current image; When the brightness adjustment requirement is the first brightness requirement, the brightness diagram is transformed from linear space to logarithmic space; The brightness map is filtered to obtain the base layer image and detail layer image corresponding to the brightness map; Obtain the configuration parameters corresponding to the brightness adjustment requirements; Based on the configuration parameters, the base layer image and the detail layer image are compressed, and the compressed base layer image and detail layer image are merged to obtain a merged image; When the brightness adjustment requirement is the first brightness requirement, the merged image is transformed from logarithmic space to linear space; The brightness of the display page is adjusted based on the brightness map and the merged image.
2. The method according to claim 1, characterized in that, The acquisition of brightness adjustment requirements includes: If the current ambient brightness value is greater than the preset ambient brightness value, then the brightness adjustment requirement is determined as the first brightness requirement; If it is detected that the display brightness of the screen needs to be reduced, then the brightness adjustment requirement is determined to be the second brightness requirement.
3. The method according to claim 1, characterized in that, The step of obtaining the brightness map corresponding to the current image based on the displayed page includes: Get the grayscale value of the current image; Convert the grayscale values of the current image into brightness values; Based on the brightness value, determine the brightness map corresponding to the current image.
4. The method according to claim 1, characterized in that, The step of filtering the brightness map to obtain the corresponding base layer image and detail layer image includes: When the brightness adjustment requirement is the first brightness requirement, the brightness map converted to logarithmic space is subjected to guided filtering to obtain the first base layer image. Based on the first base layer image and the brightness map converted to logarithmic space, the first detail layer image is determined. When the brightness adjustment requirement is the second brightness requirement, the brightness map is subjected to guided filtering to obtain the second base layer image. Based on the second base layer image and the brightness map, the second detail layer image is determined.
5. The method according to claim 4, characterized in that, The step of obtaining the configuration parameters corresponding to the brightness adjustment requirement includes: When the brightness adjustment requirement is the first brightness requirement, based on the difference between the current ambient brightness value and the ambient brightness preset value, a first configuration parameter corresponding to the first base layer image and a second configuration parameter corresponding to the first detail layer image are determined, wherein the second configuration parameter corresponding to the first detail layer image is a parameter preset value; When the brightness adjustment requirement is the second brightness requirement, the brightness adjustment ratio in the second brightness requirement is obtained, and based on the brightness adjustment ratio, the first configuration parameter corresponding to the second base layer image and the second configuration parameter corresponding to the second detail layer image are determined.
6. The method according to claim 5, characterized in that, Adjusting the brightness of the display page based on the brightness map and the merged image includes: When the brightness adjustment requirement is the first brightness requirement, a first scaling factor is obtained based on the brightness map and the merged image converted to linear space, and the brightness of the display page is adjusted based on the first scaling factor; When the brightness adjustment requirement is the second brightness requirement, a second scaling factor is obtained based on the brightness map and the merged image, and the brightness of the display page is adjusted based on the second scaling factor.
7. A brightness adjustment device, characterized in that, The device includes: A brightness adjustment requirement acquisition module is used to acquire brightness adjustment requirements; the brightness adjustment requirements are either a first brightness requirement or a second brightness requirement. The brightness map acquisition module is used to acquire the brightness map corresponding to the current image on the display page. A brightness diagram conversion module is used to convert the brightness diagram from linear space to logarithmic space when the brightness adjustment requirement is the first brightness requirement. The base layer and detail layer image acquisition module is used to filter the brightness map to obtain the base layer image and detail layer image corresponding to the brightness map; The configuration parameter acquisition module is used to acquire the configuration parameters corresponding to the brightness adjustment requirements; The image merging module is used to compress the base layer image and the detail layer image based on the configuration parameters, and then merge the compressed base layer image and detail layer image to obtain a merged image; The merged image conversion module is used to convert the merged image from logarithmic space to linear space when the brightness adjustment requirement is the first brightness requirement; A brightness adjustment module is used to adjust the brightness of the display page based on the brightness map and the merged image.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Display brightness control circuit
CN101169921A
Field sequential color liquid crystal display based on polycrystalline silicon thin film transistor
CN102955307A
