Image brightness improvement method, device, data processing equipment and storage medium
By using a nonlinear function to adjust the brightness of the target pixel in the image brightness enhancement method, the problems of image overexposure and lack of layering in the prior art are solved, and a more uniform and beautiful image brightness effect is achieved.
Patent Information
- Application Number
- CN202010583068.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-23
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2040-06-23
AI Technical Summary
Images processed by existing image brightness enhancement methods are prone to overexposure and lack of layering.
Improve the brightness of some target pixels in the target image through a nonlinear function. The specific steps include obtaining the target image, determining the target pixel, and increasing its brightness through a preset nonlinear function to ensure that the pixels with higher brightness have less changes.
The overexposure and lack of layering are reduced, and the uniformity of image brightness and visual effects are improved.
Smart Images

Figure CN113837951B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method and device for improving image brightness, a data processing device and a storage medium. Background Art
[0002] In order to improve the visual effect of the image, it is necessary to enhance the brightness of the image so that the processed image has a whitening effect. However, the images processed by the current image brightness enhancement method sometimes have problems such as overexposure and lack of layering. Summary of the invention
[0003] In order to overcome at least one shortcoming in the prior art, one of the purposes of the embodiments of the present application is to provide a method for improving image brightness, which is applied to a data processing device, and the method includes:
[0004] Obtaining a target image to be processed;
[0005] Determining at least a portion of pixels from the target image as target pixels;
[0006] The brightness of the target pixel is increased by a nonlinear function to obtain a processed target image, wherein the higher the brightness of the target pixel, the smaller the degree of improvement of the brightness of the target pixel by the nonlinear function.
[0007] Optionally, the step of determining at least a portion of pixels from the target image as target pixels comprises:
[0008] For each pixel in the target image, the brightness of the pixel is compared with a reference brightness, and a pixel whose brightness is less than the reference brightness is determined as the target pixel.
[0009] Optionally, before comparing the brightness of the pixel with the reference brightness, the method further includes:
[0010] The average brightness of each pixel in the target image is calculated, and the average brightness is used as the reference brightness.
[0011] Optionally, the data processing device includes a central processing unit and an image processor;
[0012] The step of counting the average brightness of each pixel in the target image and taking the average brightness as the reference brightness comprises:
[0013] The central processing unit counts the average brightness of each pixel in the target image, and uses the average brightness as the reference brightness;
[0014] The step of increasing the brightness of at least a portion of target pixels in the target image by a nonlinear function to obtain processed target pixels comprises:
[0015] By means of the image processor, the brightness of the target pixel in the target image is increased according to the nonlinear function to obtain the processed target pixel.
[0016] Optionally, the data processing device pre-stores a first environment brightness when a reference image is collected, the target image is a current image in a live video, and before comparing the brightness of the pixel with the reference brightness, the method further includes:
[0017] Acquiring a second environment brightness when the image to be processed is collected, wherein the reference image appears in the live video earlier than the image to be processed appears in the live video;
[0018] Calculating a brightness difference between the first environment brightness and the second environment brightness;
[0019] If the brightness difference exceeds the brightness threshold, the image to be processed is used as a new reference image;
[0020] The average brightness of each pixel in the new reference image is calculated, and the average brightness of each pixel in the new reference image is used as the reference brightness.
[0021] Optionally, before comparing the brightness of the pixel with the reference brightness, the method further includes:
[0022] In response to a first input operation, the input reference brightness is obtained.
[0023] Optionally, the brightness of the target pixel is determined by the RGB value of the target pixel, and the nonlinear function is a quadratic function based on S, where S is a color parameter selected from the RGB value of the target pixel.
[0024] Optionally, the expression of the quadratic function is:
[0025]
[0026] Wherein, T is the processed color parameter, and e is the brightening factor that can be adjusted by the user, and the value range of the brightening factor is 0 to 1.
[0027] Optionally, the method further comprises:
[0028] In response to the second input operation, the input brightening factor is obtained.
[0029] Optionally, the method further comprises:
[0030] In response to the third input operation, the ratio of the processed color parameter to 255 is used as the iteration initial value, and iteration is performed through the following expression:
[0031] M n+1 =M n +DM n *D;
[0032] Where n is the number of iterations, D is the ratio of the color parameter selected from the RGB value of the target pixel to 255, the selected color parameter corresponds to the processed color parameter, and M n+1 is the ratio after iteration;
[0033] The iterated ratio is multiplied by 255 to obtain the iterated color parameter value.
[0034] The second object of the embodiment of the application is to provide an image brightness improvement device, which is applied to a data processing device, and the image brightness improvement device includes:
[0035] An image acquisition module, used for acquiring a target image;
[0036] a brightness enhancement module, configured to enhance the brightness of at least a portion of target pixels in the target image by using a nonlinear function to obtain processed target pixels, wherein within a preset brightness range, the rate of change of the function result decreases as the brightness increases;
[0037] The target acquisition module is used to obtain a processed target image according to the processed target pixels.
[0038] Optionally, the data processing device includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and when the machine executable instructions are executed by the processor, the image brightness improvement method is implemented.
[0039] Optionally, the storage medium stores a computer program, and when the computer program is executed by a processor, the method for improving image brightness is implemented.
[0040] Compared with the prior art, this application has the following beneficial effects:
[0041] The image brightness improvement method, device, data processing equipment and storage medium provided in the embodiments of the present application. The brightness of some target pixels in the target image is improved by a nonlinear function whose change rate of the function result decreases as the brightness increases within a preset brightness range. Since the change rate of the function result of the nonlinear function decreases as the brightness increases, pixels with higher brightness will not have too obvious changes due to the nonlinear function. At the same time, the brightness of some target pixels in the target image is selectively adjusted. Therefore, overexposure and lack of layering can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application;
[0044] Figure 2 A flowchart of the steps of the method for improving image brightness provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of the average brightness calculation steps provided in an embodiment of the present application;
[0046] Figure 4 This is a schematic diagram of the structure of the image brightness enhancement device provided in an embodiment of the present application.
[0047] Icon: 110 - image brightness enhancement device; 120 - memory; 130 - processor; 1101 - image acquisition module; 1102 - pixel determination module; 1103 - brightness enhancement module. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0049] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0050] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0051] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0052] As described in the background technology, in order to improve the visual effect of an image, it is necessary to enhance the brightness of the image so that the processed image presents a whitening effect. However, the images processed by the current image brightness enhancement method sometimes have problems such as overexposure and lack of layering.
[0053] In view of this, the embodiment of the present application provides a method for improving image brightness, which is applied to a data processing device. Figure 1 , which is a schematic diagram of the hardware structure of the data processing device provided in an embodiment of the present application.
[0054] The data processing device includes an image brightness improvement device 110, a memory 120 and a processor 130. The memory 120, the processor 130 and other components are directly or indirectly connected to each other in communication to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The image brightness improvement device 110 includes at least one software function module that can be stored in the memory 120 in the form of software or firmware or fixed in the operating system (OS) of the data processing device. The processor 130 is used to execute the executable modules stored in the memory 120, such as the software function modules and computer programs included in the image brightness improvement device 110.
[0055] The memory 120 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 120 is used to store a program, and the processor 130 executes the program after receiving an execution instruction.
[0056] The memory 120 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 120 is used to store programs, and the processor 130 executes the programs after receiving the execution instruction. The processor 130 and other possible components may access the memory 120 under the control of the storage controller.
[0057] The processor 130 may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0058] Please refer to Figure 2 , which is the same as the embodiment of the present application and is applied to Figure 1The flowchart of a method for improving image brightness of a data processing device is shown in the figure. The various steps of the method will be described in detail below.
[0059] Step S100, acquiring a target image.
[0060] Step S200: determining at least a portion of pixels from the target image as target pixels.
[0061] Step S300, improving the brightness of the target pixel by a nonlinear function to obtain a processed target image, wherein the higher the brightness of the target pixel, the smaller the degree of improvement of the brightness of the target pixel by the nonlinear function.
[0062] It should be understood that for different image encoding methods, the parameters reflecting the brightness of pixels in the image are somewhat different.
[0063] Taking an image encoded in RGB as an example, each pixel in the image includes three parameters, RGB, which together reflect the brightness of the pixel. That is, the larger the value of the three RGB parameters, the closer the color of the pixel is to white, and the corresponding brightness of the pixel is higher.
[0064] Similarly, in an image encoded in YUV mode, each pixel in the image includes three YUV parameters, among which parameter Y is used to determine the brightness of the pixel.
[0065] In the image brightness improvement method, the brightness of some target pixels in the target image is improved by a nonlinear function whose change rate of the function result decreases as the brightness increases within a preset brightness range. Since the change rate of the function result of the nonlinear function decreases as the brightness increases, pixels with higher brightness will not have too obvious changes due to the nonlinear function. At the same time, the brightness of some target pixels in the target image is selectively adjusted. Therefore, overexposure and lack of layering can be reduced.
[0066] In order to avoid enhancing the brightness of pixels whose brightness has reached a certain level, the data processing device compares the brightness of each pixel in the target image with a reference brightness and determines pixels whose brightness is less than the reference brightness as target pixels.
[0067] Since the pixels in the image are screened by the reference brightness, it is possible to avoid further brightness enhancement of pixels that have already reached a certain brightness, which would cause overexposure. At the same time, compared to only increasing the brightness of a certain area in the target image, the target image is screened globally by the reference brightness, so that the brightness of the processed target image is more uniform.
[0068] As a possible implementation method for the reference brightness, the data processing device calculates the average brightness of each pixel in the target image and uses the average brightness as the reference brightness. Of course, appropriate adjustments can also be made based on the average brightness, and the present application embodiment does not make too many restrictions.
[0069] For example, for a target image encoded in RGB mode, the average brightness of the target image can be calculated as follows:
[0070]
[0071] Where i represents the i-th pixel in the target image, r i , g i and b i Represents the RGB value of the i-th pixel, L i represents the brightness value of the i-th pixel. Furthermore, the average brightness of the target image can be expressed as:
[0072]
[0073] Where, L b represents the average brightness of the processed image, and N represents all pixels in the target image.
[0074] As another possible implementation for the reference brightness, the data processing device provides an input interface, and in response to a first input operation in the input interface, obtains the reference brightness. Of course, the data processing device can also provide the average brightness of the target image for the user's reference. The input interface can provide the user with more operating space.
[0075] In addition, in a possible application scenario, the target image is the current image in the live video. In the live broadcast scenario, in order to achieve a better on-camera effect, the anchor needs to increase the brightness of the live broadcast screen. In outdoor live broadcasts, the brightness of the live broadcast screen changes with the anchor's position. Although the average brightness of each frame is calculated, the real-time performance of the picture brightness adjustment process can be improved, but it will take up too many computing resources.
[0076] In view of this, please refer to Figure 3 In a live broadcast scene, the data processing device pre-stores the first environment brightness when capturing a reference image, the target image is the current image in the live broadcast video, and the data processing device determines the reference brightness in the following manner:
[0077] Step S500, obtaining a second environment brightness when capturing an image to be processed, wherein the reference image appears earlier in the live video than the image to be processed appears in the live video.
[0078] Step S600, calculating the brightness difference between the first environment brightness and the second environment brightness.
[0079] Step S700: If the brightness difference exceeds the brightness threshold, the image to be processed is used as a new reference image.
[0080] Step S800 , calculating the average brightness of each pixel in the new reference image, and taking the average brightness of each pixel in the new reference image as the reference brightness.
[0081] It should be understood that the data processing device can detect the brightness in the live broadcast environment through a light sensor, and when the brightness change exceeds the set brightness threshold, it means that the live broadcast environment has changed significantly, that is, the anchor may move from a brighter place to a weaker place, or the anchor may move from a weaker place to a brighter place.
[0082] Taking a live video as an example, since the data processing device pre-stores the first environment brightness when collecting a reference image, when the second environment brightness of the data processing device at time t exceeds the brightness threshold compared to the first environment brightness, the current image of the live video at time t is used as a new reference image, and the average brightness of each pixel in the new reference image is counted, and the average brightness of each pixel in the new reference image is used as the reference brightness. The images after time t of the live video are all determined by the reference brightness to determine the target pixel until the brightness change in the environment exceeds the brightness threshold again, and a new reference brightness is re-determined.
[0083] Since the reference brightness can change with the changes in the host's environment, and it is no longer necessary to calculate the average brightness for each frame of the image, it not only improves the adaptability to different environments, but also saves certain computing resources.
[0084] Among them, for the nonlinear function, as a possible implementation, the brightness of the target pixel is determined by the RGB value of the target pixel, and the nonlinear function is a quadratic function based on S, where S is a color parameter selected from the RGB value of the target pixel.
[0085] For the quadratic function, the expression of the quadratic function can be:
[0086]
[0087] In the formula, T is the processed color parameter, e is the brightening factor for users to adjust, and the value range of the brightening factor is 0 to 1. Since the brightening factor can change the shape of the nonlinear function to a certain extent, and then change the brightness enhancement effect on the target image, therefore, by providing the brightening factor, the user can fine-tune the brightness of the target image within a smaller range.
[0088] The expression of this nonlinear function can be converted into the following form:
[0089]
[0090] That is, after normalizing each RGB value by 255, Denoted as y, Expressed as a, the expression of the nonlinear function can be converted into the following form:
[0091] y=2a-ea 2 ;
[0092] Among them, since e is a brightening factor that can be adjusted by the user, once e is determined, the function y = 2a-ea 2 It is a quadratic function with an opening pointing downward, and its slope decreases as a increases, and when it approaches the maximum value of the function, the slope approaches 0.
[0093] Furthermore, since the adjustment range of the brightening factor on the target image is relatively small, the data processing device may also respond to a third operation input by the user, using the ratio of the processed color parameter to 255 as an initial value for iteration, and performing iteration through the following expression:
[0094] M n+1 =M n +DM n *D;
[0095] Wherein, n is the number of iterations, and D is the ratio of the color parameter selected from the RGB value of the target pixel to 255. The selected color parameter corresponds to the processed color parameter, that is, the processed color parameter and the selected color parameter are for the same color in the target pixel. n+1 is the ratio after iteration;
[0096] The data processing device multiplies the iterated ratio by 255 to obtain the iterated color parameter value.
[0097] Since the amount of calculation when processing the target image is positively correlated with the resolution of the target image, in order to improve the efficiency of brightness enhancement of the target image, the data processing device includes a central processing unit and an image processor. The data processing device calculates the average brightness of each pixel in the target image through the central processing unit, and uses the average brightness as the reference brightness; and increases the brightness of the target pixel in the target image according to the nonlinear function through the image processor to obtain the processed target pixel.
[0098] Since the image processor can process each pixel of the target image in parallel, it can improve the efficiency of brightness enhancement of the processed image, especially in live broadcast, it can reduce the delay of the live broadcast picture and improve the user experience.
[0099] Please refer to Figure 4 The embodiment of the present application further provides an image brightness improvement device 110, which is applied to a data processing device. The image brightness improvement device 110 includes at least one functional module that can be stored in a memory 120 in the form of software. From a functional perspective, the image brightness improvement device 110 may include:
[0100] The image acquisition module 1101 is used to acquire a target image.
[0101] In the embodiment of the present application, the image acquisition module 1101 is used to execute Figure 2 For the detailed description of the image acquisition module 1101, please refer to the detailed description of step S100.
[0102] The pixel determination module 1102 is used to determine at least a portion of pixels from the target image as target pixels.
[0103] In the embodiment of the present application, the pixel determination module 1102 is used to perform Figure 2 For the detailed description of step S200, please refer to the detailed description of step S200.
[0104] The brightness enhancement module 1103 is used to obtain a processed target image according to the processed target pixels.
[0105] In the embodiment of the present application, the brightness enhancement module 1103 is used to perform Figure 2 For a detailed description of step S300, please refer to the detailed description of step S300.
[0106] An embodiment of the present application also provides a data processing device, which includes a processor 130 and a memory 120, wherein the memory 120 stores machine executable instructions that can be executed by the processor 130, and when the machine executable instructions are executed by the processor 130, the image brightness improvement method is implemented.
[0107] The embodiment of the present application further provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor 130, the image brightness improvement method is implemented.
[0108] In summary, the image brightness improvement method, device, data processing equipment and storage medium provided in the embodiments of the present application. The brightness of some target pixels in the target image is improved by a nonlinear function whose rate of change of the function result decreases as the brightness increases within a preset brightness range. Since the rate of change of the function result of the nonlinear function decreases as the brightness increases, pixels with higher brightness will not change too obviously due to the nonlinear function. At the same time, the brightness of some target pixels in the target image is selectively adjusted. Therefore, overexposure and lack of layering can be reduced.
[0109] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0110] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0111] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0112] It should be noted that, in this article, 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 any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0113] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for improving image brightness, characterized in that: Applied to a data processing device, the method comprises: Obtaining a target image to be processed; Determining at least a portion of pixels from the target image as target pixels; The brightness of the target pixel is increased by a nonlinear function to obtain a processed target image, wherein the higher the brightness of the target pixel, the smaller the degree of improvement of the brightness of the target pixel, and the brightness of the target pixel is determined by the RGB value of the target pixel. The nonlinear function is a quadratic function based on S. When the slope of the quadratic function approaches the maximum value of the function, the slope approaches 0, wherein S is a color parameter selected from the RGB value of the target pixel.
2. The method for improving image brightness according to claim 1, characterized in that: The step of determining at least a portion of pixels from the target image as target pixels comprises: For each pixel in the target image, the brightness of the pixel is compared with a reference brightness, and a pixel whose brightness is less than the reference brightness is determined as the target pixel.
3. The method for improving image brightness according to claim 2, characterized in that: Before comparing the brightness of the pixel with the reference brightness, the method further includes: The average brightness of each pixel in the target image is calculated, and the average brightness is used as the reference brightness.
4. The method for improving image brightness according to claim 3, characterized in that: The data processing device includes a central processing unit and an image processor; The step of counting the average brightness of each pixel in the target image and taking the average brightness as the reference brightness comprises: The central processing unit counts the average brightness of each pixel in the target image, and uses the average brightness as the reference brightness; The step of increasing the brightness of at least a portion of target pixels in the target image by a nonlinear function to obtain processed target pixels comprises: By means of the image processor, the brightness of the target pixel in the target image is increased according to the nonlinear function to obtain the processed target pixel.
5. The method for improving image brightness according to claim 2, characterized in that: The data processing device pre-stores a first environment brightness when a reference image is collected, the target image is a current image in a live video, and before comparing the brightness of the pixel with the reference brightness, the method further includes: Acquiring a second environment brightness when the target image to be processed is captured, wherein the reference image appears in the live video earlier than the target image to be processed appears in the live video; Calculating a brightness difference between the first environment brightness and the second environment brightness; If the brightness difference exceeds the brightness threshold, the target image to be processed is used as a new reference image; The average brightness of each pixel in the new reference image is calculated, and the average brightness of each pixel in the new reference image is used as the reference brightness.
6. The method for improving image brightness according to claim 2, characterized in that: Before comparing the brightness of the pixel with the reference brightness, the method further includes: In response to a first input operation, the input reference brightness is obtained.
7. The method for improving image brightness according to claim 1, characterized in that: The expression of the quadratic function is: Wherein, T is the processed color parameter, and e is the brightening factor that can be adjusted by the user, and the value range of the brightening factor is 0 to 1.
8. The method for improving image brightness according to claim 7, characterized in that: The method further comprises: In response to the second input operation, the input brightening factor is obtained.
9. The method for improving image brightness according to claim 7, characterized in that: The method further comprises: In response to the third input operation, the ratio of the processed color parameter to 255 is used as the iteration initial value, and iteration is performed through the following expression: M n+1 =M n +D-M n *D; Where n is the number of iterations, D is the ratio of the color parameter selected from the RGB value of the target pixel to 255, the selected color parameter corresponds to the processed color parameter, and M n+1 is the ratio after iteration; The iterated ratio is multiplied by 255 to obtain the iterated color parameter value.
10. An image brightness enhancement device, characterized in that: Applied to data processing equipment, the image brightness enhancement device comprises: An image acquisition module, used for acquiring a target image to be processed; a brightness enhancement module, configured to enhance the brightness of at least a portion of target pixels in the target image by a nonlinear function to obtain processed target pixels, wherein within a preset brightness range, the rate of change of the function result decreases as the brightness increases, the brightness of the target pixel is determined by the RGB value of the target pixel, the nonlinear function is a quadratic function based on S, and when the slope of the quadratic function approaches the maximum value of the function, the slope approaches 0, wherein S is a color parameter selected from the RGB value of the target pixel; The target acquisition module is used to obtain a processed target image according to the processed target pixels.
11. A data processing device, characterized in that: The data processing device includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and when the machine executable instructions are executed by the processor, the image brightness improvement method according to any one of claims 1 to 9 is implemented.
12. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method for improving image brightness as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Method for adjusting brightness of multiple images
CN105976325A