Image processing method and its device, equipment, medium and product

Through image processing methods, including color space adjustment, mean and standard deviation calculation, weighted Gaussian pyramid and Laplacian pyramid processing, the problem of insufficient details and color oversaturation when SDR images are converted into HDR images is solved, and the image quality is improved.

CN114494069BActive Publication Date: 2024-10-15GUANGZHOU HUADUO NETWORK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210106712.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2024-10-15
Estimated Expiration
2042-01-28

AI Technical Summary

Technical Problem

When converting standard dynamic range (SDR) images into high dynamic range (HDR) images, the problems of insufficient image details and oversaturated colors lead to poor subjective perception.

Method used

By obtaining the target image after format conversion, color space adjustment, mean and standard deviation calculation are performed to generate an enhanced image, and enhancement processing is performed based on the weighted Gaussian pyramid and Laplacian pyramid to generate an enhanced image to improve image quality.

Benefits of technology

It overcomes the problem of insufficient image details and color faults, improves the overall quality and color fusion effect of the image, and improves the quality of image conversion from SDR to HDR.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494069B_ABST
    Figure CN114494069B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method, device, computer equipment and storage medium, including: obtaining a second target image obtained by format conversion of a first target image; adjusting the color value of the second target image in a preset first color space to generate a first enhanced image; calculating the mean and standard deviation of the first target image and the second target image in a preset second color space; generating a second enhanced image of the second target image according to the mean and standard deviation; generating a first weighted Gaussian pyramid and a second weighted Gaussian pyramid based on a preset weight calculation formula; obtaining a first image Laplacian pyramid and a second image Laplacian pyramid based on a preset Laplacian calculation formula; applying a preset enhanced image calculation formula to generate an enhanced image from each of the pyramids. In this way, a fused image that can ensure both image details and image colors can be obtained, thereby improving the quality of the obtained image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing, and in particular to an image processing method, apparatus, computer equipment, and storage medium. Background Art

[0002] With the development of electronic technology, the shooting technology of electronic devices (eg, mobile phones, tablet computers) is becoming more and more mature, and people can shoot high-definition images anytime and anywhere.

[0003] In related technologies, the imaging method used for shooting high-definition images is usually High Dynamic Range Imaging (HDR), which has greatly improved the objective perception, such as brightness range, image saturation, image color and image details, compared with the previously used Standard Dynamic Range (SDR). However, the subjective perception of HDR images is usually slightly worse than that of SDR images (for example, over-saturated colors are prone to color cast and high saturation). Therefore, in order to ensure the overall effect of the image, an algorithm can be used to process the image, and after obtaining the image using the SDR method, it can be converted into an HDR image, thereby improving the objective perception while ensuring the subjective perception.

[0004] However, in the process of using algorithms to convert SDR images into HDR images, due to insufficient detail information in the SDR images, the HDR images will also have the problem of insufficient details. Summary of the invention

[0005] The embodiments of the present application provide a lightweight image processing method, apparatus, computer device, and storage medium that can accelerate training.

[0006] In order to solve the above technical problems, a technical solution adopted by the embodiment created by the present application is: to provide an image processing method, comprising:

[0007] Acquire a second target image obtained by format conversion of the first target image, wherein the information carrying capacity of the second target image is greater than the information carrying capacity of the first target image;

[0008] In a preset first color space, adjusting the color value of the second target image to generate a first enhanced image;

[0009] In a preset second color space, calculating the mean and standard deviation of the first target image and the second target image;

[0010] generating a second enhanced image of the second target image according to the mean and the standard deviation;

[0011] Based on a preset weight calculation formula, generating a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image;

[0012] Based on a preset Laplace calculation formula, obtaining a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image;

[0013] A preset enhanced image calculation formula is applied to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid.

[0014] Optionally, the first color space includes a first color channel, a second color channel, and a third color channel, and adjusting the color value of the second target image in the preset first color space to generate the first enhanced image includes:

[0015] Reading the brightness parameter of the second target image in the first color channel;

[0016] Reading color values ​​of the first target image in the second color channel and the third color channel;

[0017] The first enhanced image is generated according to the brightness parameter and the color values ​​of the first target image in the second color channel and the third color channel.

[0018] Optionally, the second color space includes a fourth color channel, a fifth color channel, and a sixth color channel, and calculating the mean and standard deviation of the first target image and the second target image in the preset second color space includes:

[0019] In the fourth color channel, calculating a first mean and a first standard deviation of the first target image and the second target image;

[0020] In the fifth color channel, a second mean and a second standard deviation of the first target image and the second target image are calculated.

[0021] Optionally, generating a second enhanced image of the second target image according to the mean and the standard deviation includes:

[0022] Calculating a first channel color gamut value of the second target image according to the first mean value and the first standard deviation, wherein the first channel color gamut value is limited to a value range of a preset color gamut interval;

[0023] Calculating a second channel color gamut value of the second target image according to the second mean and the second standard deviation, wherein the second channel color gamut value is limited to a value range of the color gamut interval;

[0024] The first channel color gamut value and the second channel color gamut value are combined with the image of the sixth color channel to generate the second enhanced image.

[0025] Optionally, the weight calculation formula includes: a gradient weight calculation formula, a saturation weight calculation formula and an exposure weight calculation formula, and generating a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image based on the preset weight calculation formula includes:

[0026] Calculating the gradient weights of the first enhanced image and the second enhanced image respectively according to the gradient weight calculation formula;

[0027] Calculating the saturation weights of the first enhanced image and the second enhanced image respectively according to the saturation weight calculation formula;

[0028] Calculating exposure weights of the first enhanced image and the second enhanced image respectively according to the exposure weight calculation formula;

[0029] generating a first fusion weight of the first enhanced image and a second fusion weight of the second enhanced image according to the product of the gradient weight, the saturation weight and the exposure weight;

[0030] A first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image are obtained according to the first fusion weight, the second fusion weight and a Gaussian calculation formula.

[0031] Optionally, the gradient weight calculation formula is a Sobel operator, and the respectively calculating the gradient weights of the first enhanced image and the second enhanced image according to the gradient weight calculation formula comprises:

[0032] Reading grayscale images of the first enhanced image and the second enhanced image;

[0033] The first directional gradient and the second directional gradient of each grayscale image are subjected to a preset Sobel operator, and the gradient weight of each grayscale image is generated according to the first directional gradient and the second directional gradient.

[0034] Optionally, based on a preset Laplace calculation formula, a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image are obtained:

[0035] Constructing a pre-image sequence, wherein the pre-image sequence is a Gaussian pyramid;

[0036] The pre-image sequence is processed using the preset Laplace calculation formula to obtain a first image Laplace pyramid corresponding to the first enhanced image and a second image Laplace pyramid corresponding to the second enhanced image.

[0037] Optionally, applying a preset enhanced image calculation formula to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid includes:

[0038] According to a preset fused image calculation formula, the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid are processed to obtain a first fused image sequence and a second fused image sequence;

[0039] The first fused image sequence and the second fused image sequence are processed by using a preset enhanced image calculation formula to obtain the enhanced image.

[0040] In order to solve the above technical problems, the embodiment of the present application further provides an image processing device, including:

[0041] An acquisition module, used for acquiring a second target image obtained by format conversion of the first target image, wherein the information carrying capacity of the second target image is greater than the information carrying capacity of the first target image;

[0042] A generating module, used for adjusting the color value of the second target image in a preset first color space to generate a first enhanced image;

[0043] A calculation module, used to calculate the mean and standard deviation of the first target image and the second target image in a preset second color space;

[0044] The generating module is used to generate a second enhanced image of the second target image according to the mean and the standard deviation;

[0045] The generating module is configured to generate a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image based on a preset weight calculation formula;

[0046] The acquisition module is configured to acquire a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image based on a preset Laplace calculation formula;

[0047] The generating module is used to apply a preset enhanced image calculation formula to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid and the second image Laplacian pyramid.

[0048] Optionally, the first color space includes a first color channel, a second color channel and a third color channel, and the image processing device further includes:

[0049] A first reading submodule, used for reading the brightness parameter of the second target image in the first color channel;

[0050] A second reading submodule is used to read the color values ​​of the first target image in the second color channel and the third color channel;

[0051] The first generating submodule is used to generate the first enhanced image according to the brightness parameter and the color values ​​of the first target image in the second color channel and the third color channel.

[0052] Optionally, the second color space includes a fourth color channel, a fifth color channel, and a sixth color channel, and the image processing apparatus further includes:

[0053] A first calculation submodule, configured to calculate a first mean and a first standard deviation of the first target image and the second target image in the fourth color channel;

[0054] The second calculation submodule is used to calculate a second mean and a second standard deviation of the first target image and the second target image in the fifth color channel.

[0055] Optionally, the image processing device further includes:

[0056] A third calculation submodule, configured to calculate a first channel color gamut value of the second target image according to the first mean value and the first standard deviation, wherein the first channel color gamut value is limited to a value range of a preset color gamut interval;

[0057] a fourth calculation submodule, configured to calculate a second channel color gamut value of the second target image according to the second mean value and the second standard deviation, wherein the second channel color gamut value is limited to a value range of the color gamut interval;

[0058] The second generating submodule is used to merge the first channel color gamut value and the second channel color gamut value with the image of the sixth color channel to generate the second enhanced image.

[0059] Optionally, the weight calculation formula includes: a gradient weight calculation formula, a saturation weight calculation formula and an exposure weight calculation formula, and the image processing device further includes:

[0060] a fifth calculation submodule, configured to calculate the gradient weights of the first enhanced image and the second enhanced image respectively according to the gradient weight calculation formula;

[0061] a sixth calculation submodule, configured to calculate the saturation weights of the first enhanced image and the second enhanced image respectively according to the saturation weight calculation formula;

[0062] a seventh calculation submodule, configured to calculate the exposure weights of the first enhanced image and the second enhanced image respectively according to the exposure weight calculation formula;

[0063] A third generating submodule, configured to generate a first fusion weight of the first enhanced image and a second fusion weight of the second enhanced image according to the product of the gradient weight, the saturation weight and the exposure weight;

[0064] The first acquisition submodule is used to acquire a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image according to the first fusion weight, the second fusion weight and a Gaussian calculation formula.

[0065] Optionally, the gradient weight calculation formula is a Sobel operator, and the image processing device further includes:

[0066] A third reading submodule, used for reading the grayscale images of the first enhanced image and the second enhanced image;

[0067] The fourth generating submodule is used to perform a preset Sobel operator on the first directional gradient and the second directional gradient of each grayscale image, and generate a gradient weight of each grayscale image according to the first directional gradient and the second directional gradient.

[0068] Optionally, the image processing device further includes:

[0069] A first construction submodule is used to construct a pre-image sequence, wherein the pre-image sequence is a Gaussian pyramid;

[0070] The second acquisition submodule is used to process the pre-image sequence by using the preset Laplace calculation formula to acquire a first image Laplace pyramid corresponding to the first enhanced image and a second image Laplace pyramid corresponding to the second enhanced image.

[0071] Optionally, the image processing device comprises:

[0072] A third acquisition submodule is used to process the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid according to a preset fused image calculation formula to acquire a first fused image sequence and a second fused image sequence;

[0073] The fourth acquisition submodule is used to process the first fused image sequence and the second fused image sequence by using a preset enhanced image calculation formula to acquire the enhanced image.

[0074] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the above-mentioned image processing method.

[0075] In order to solve the above technical problems, an embodiment of the present application further provides a storage medium storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the above-mentioned image processing method.

[0076] A computer program product provided to meet another purpose of the present application includes a computer program / instruction, which, when executed by a processor, implements the steps of the image processing method described in any embodiment of the present application.

[0077] The beneficial effects of the present application are: first, a second target image obtained by format conversion of the first target image is obtained; then, in a preset first color space, the color value of the second target image is adjusted to generate a first enhanced image; then, in a preset second color space, the mean and standard deviation of the first target image and the second target image are calculated, and a second enhanced image of the second target image is generated according to the mean and standard deviation; then, based on a preset weight calculation formula, a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image are generated; then, based on a preset Laplace calculation formula, a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image are obtained; finally, a preset enhanced image calculation formula is applied to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplace pyramid and the second image Laplace pyramid. In this way, problems such as insufficient image details and image faults can be overcome, and a fused image that can ensure both image details and image colors can be obtained, thereby improving the quality of the acquired image. Accordingly, when converting an SDR image to an HDR image, a better image conversion quality can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0079] Figure 1 This is one of the flowchart diagrams of an image processing method according to a specific embodiment of the present application;

[0080] Figure 2 This is a second flowchart of an image processing method according to a specific embodiment of the present application;

[0081] Figure 3 This is a third flowchart of an image processing method according to a specific embodiment of the present application;

[0082] Figure 4 This is a fourth flowchart of an image processing method according to a specific embodiment of the present application;

[0083] Figure 5 This is a fifth flowchart of an image processing method according to a specific embodiment of the present application;

[0084] Figure 6 This is one of the image schematic diagrams of an image processing method according to a specific embodiment of the present application;

[0085] Figure 7 Schematic diagram of the image processing method of a specific embodiment of the present application

[0086] Figure 8 FIG7 is a flowchart of an image processing method according to a specific embodiment of the present application;

[0087] Fig. 9 This is a second image schematic diagram of an image processing method according to a specific embodiment of the present application;

[0088] Fig.10 FIG8 is a flowchart of an image processing method according to a specific embodiment of the present application;

[0089] Fig.11 A schematic diagram of the basic structure of an image processing device according to a specific embodiment of the present application;

[0090] Fig.12 This is a basic structural block diagram of a computer device according to a specific embodiment of the present application. DETAILED DESCRIPTION

[0091] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0092] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0093] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0094] It will be understood by those skilled in the art that the term "terminal" as used herein includes both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of performing two-way communications over a two-way communication link. Such devices may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, Internet / intranet access, a web browser, a notepad, a calendar and / or a GPS (Global Positioning System) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "terminal" used here can be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, running at any other location on the earth and / or in space. The "terminal" used here can also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.

[0095] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0096] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.

[0097] Unless expressly specified, one or more technical features of the present application can be deployed on a server for implementation and accessed by a client through a remote call to obtain an online service interface provided by the server, or can be directly deployed and run on a client for access.

[0098] The neural network models referenced or may be referenced in this application, unless expressly specified, can be deployed on a remote server and remotely called on the client, or can be deployed and directly called on a client with sufficient device capabilities. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.

[0099] Unless explicitly specified, the various data involved in this application can be stored remotely on a server or on a local terminal device, as long as it is suitable for being called by the technical solution of this application.

[0100] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.

[0101] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.

[0102] The following are the explanations of the terms appearing in this application:

[0103] 1.HSV format

[0104] HSV (Hue, Saturation, Value) is a color space used to represent the intuitive characteristics of color, also known as the Hexcone Model. The color parameters in this model are: hue (H), saturation (S), and value (V). In image data, it can be a data format used to represent color-related data.

[0105] 2.LAB format

[0106] LAB format is a color model. It is a device-independent color model and also a color model based on physiological characteristics. LAB format consists of three elements, one of which is brightness (L), and A and B are two color channels. A includes colors ranging from dark green (low brightness value) to gray (medium brightness value) to bright pink (high brightness value); B includes colors ranging from bright blue (low brightness value) to gray (medium brightness value) to yellow (high brightness value). Therefore, the color mixture will produce a bright color.

[0107] See also Figure 1 , Figure 1 FIG. 2 is a schematic diagram of the basic flow of the image processing method of this embodiment. Figure 1 As shown, an image processing method comprises:

[0108] S1100: Acquire a second target image obtained by format conversion of the first target image.

[0109] In this implementation manner, the information carrying capacity of the second target image is greater than the information carrying capacity of the first target image.

[0110] In this implementation, the first target image may be an SDR image, and the second target image may be an HDR image.

[0111] It is understandable that in this embodiment, an HDR image corresponding to an SDR image may be obtained by artificial intelligence (AI), and a first HDR image corresponding to a first SDR image may be obtained by replacing the data content of some channels in the first SDR image, and this embodiment is not limited thereto. That is, the second target image may be obtained by using the first target image in the above manner.

[0112] It should be noted that the above-mentioned first target image may include one image or multiple images. The above-mentioned first target image corresponds to an image sequence. Correspondingly, when the first target image includes an image series, the second target image also includes an image sequence.

[0113] S1200: In a preset first color space, adjust the color value of the second target image to generate a first enhanced image.

[0114] In this implementation, the first color space may be HSV (Hue, Saturation, Value).

[0115] In this embodiment, the first enhanced image is the second target image with adjusted color parameters.

[0116] S1300: Calculate the mean and standard deviation of the first target image and the second target image in a preset second color space.

[0117] In this implementation, the second color space is LAB.

[0118] In this implementation, the above mean and standard deviation may be calculated using a preset algorithm for the mean and standard deviation, and please refer to the following description for details.

[0119] S1400: Generate a second enhanced image of the second target image according to the mean and the standard deviation.

[0120] In this embodiment, since the bit range of the second target image is different from that of the first target image, the second target image obtained by direct conversion has the problem of neglected details. By using the mean and standard deviation and performing calculations to generate a second enhanced image, the above-mentioned detail problem can be compensated.

[0121] It can be understood that the enhanced image corresponding to the second target image, ie, the first enhanced image and the second enhanced image, is acquired respectively in two ways through S1200 and S1400.

[0122] S1500: Generate a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image based on a preset weight calculation formula.

[0123] In this implementation manner, the above-mentioned weight calculation formula may be preset in advance or may be user-defined, and this implementation manner does not limit this.

[0124] In this implementation manner, the weight calculation formulas used in the first weighted Gaussian pyramid and the second weighted Gaussian pyramid are the same, and the number of layers of the first weighted Gaussian pyramid and the second weighted Gaussian pyramid are the same.

[0125] S1600: Acquire a first image Laplacian pyramid of the first enhanced image and a second image Laplacian pyramid of the second enhanced image based on a preset Laplacian calculation formula.

[0126] In this implementation manner, the above-mentioned Laplace calculation formula may be preset in advance or may be user-defined, and this implementation manner does not limit this.

[0127] In this embodiment, the first image Laplacian pyramid and the second weight image Laplacian pyramid use the same Laplacian calculation formula, and the first image Laplacian pyramid and the second image Laplacian pyramid have the same number of layers.

[0128] In this embodiment, the Laplacians used in the first image Laplacian pyramid and the second weighted image Laplacian pyramid have the same number of layers as the first weighted Gaussian pyramid and the second weighted Gaussian pyramid.

[0129] In this embodiment, the first image Laplacian pyramid is obtained by the first image Gaussian pyramid, and similarly, the second image Laplacian pyramid is obtained by the second image Gaussian pyramid.

[0130] In this embodiment, the first image Gaussian pyramid is obtained by sampling and smoothing the first enhanced image. Similarly, the second image Gaussian pyramid is obtained in the same manner.

[0131] In one implementation, the second image Gaussian pyramid may be obtained by downsampling, as described below for details.

[0132] S1700: applying a preset enhanced image calculation formula to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid.

[0133] In this implementation, the above-mentioned preset enhanced image calculation formula may be preset in advance or may be user-defined, which is not limited in this implementation.

[0134] In this implementation manner, the first weighted Gaussian pyramid corresponds to the first image Laplacian pyramid, the second weighted Gaussian pyramid corresponds to the second image Laplacian pyramid, and the enhanced image is a fusion image of the first enhanced image and the second enhanced image.

[0135] In the above implementation, firstly, a second target image obtained by format conversion of the first target image is obtained; then, in a preset first color space, the color value of the second target image is adjusted to generate a first enhanced image; then, in a preset second color space, the mean and standard deviation of the first target image and the second target image are calculated, and a second enhanced image of the second target image is generated according to the mean and standard deviation; then, based on a preset weight calculation formula, a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image are generated; then, based on a preset Laplace calculation formula, a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image are obtained; finally, a preset enhanced image calculation formula is applied to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplace pyramid and the second image Laplace pyramid. In this way, problems such as insufficient image details and image faults can be overcome, and a fused image that can ensure both image details and image colors can be obtained, thereby improving the quality of the acquired image. Accordingly, when converting an SDR image to an HDR image, a better image conversion quality can be obtained.

[0136] In some embodiments, the first color space includes a first color channel, a second color channel, and a third color channel, and the method for generating the first enhanced image is as follows: Figure 2 :

[0137] In S1200, it includes:

[0138] S1201: Read the brightness parameter of the second target image in the first color channel.

[0139] S1202: Read color values ​​of the first target image in the second color channel and the third color channel.

[0140] S1203: Generate the first enhanced image according to the brightness parameter and the color values ​​of the first target image in the second color channel and the third color channel.

[0141] Exemplarily, it can be seen from the foregoing that in one embodiment, the first color space is an HSV space, wherein V is a first color channel, H is a second color channel, and S is a third color channel.

[0142] Exemplarily, the color values ​​corresponding to the second color channel and the color values ​​corresponding to the third color channel in the second target image are switched to the color values ​​corresponding to the second color channel and the color values ​​corresponding to the third color channel in the first target image, that is, the H channel data and the S channel data in the first target image are used to replace the H channel data and the S channel data in the second target image, and the V channel data in the second target image is kept unchanged, thereby generating a first enhanced image.

[0143] In some embodiments, the second color space includes a fourth color channel, a fifth color channel, and a sixth color channel, and the method for calculating the mean and standard deviation of the first target image and the second target image is as follows: Figure 3 :

[0144] In S1300, it includes:

[0145] S1301: Calculate a first mean and a first standard deviation of the first target image and the second target image in the fourth color channel.

[0146] S1302: Calculate a second mean and a second standard deviation of the first target image and the second target image in the fifth color channel.

[0147] In this implementation manner, it can be known from the above content that the second color space is a LAB space, on this basis, the fourth color channel is an A channel, and the fifth color channel is a B channel.

[0148] It should be noted that the A channel data is used to represent the data of the red color, and the B channel data is used to represent the data of the blue color.

[0149] It can be understood that since the colors represented by the A channel data and the B channel data in the first target image are more accurate than the colors represented by the second target image, in this embodiment, the A channel data and the B channel data in the first target image are used to represent the colors in the second target image.

[0150] Furthermore, in one example, by obtaining the mean and standard deviation between the first target image and the second target image in the fourth color channel and the fifth color channel, that is, the first mean and the first standard deviation of the first target image and the second target image and the second mean and the second standard deviation of the first target image and the second target image, the color difference between the first target image and the second target image is subsequently obtained, which is used to compensate for the inaccurate color of the second target image, thereby obtaining a second enhanced image.

[0151] In some embodiments, the method of generating the second enhanced image of the second target image is as follows: Figure 4 :

[0152] In S1400, it includes:

[0153] S1401: Calculate a first channel color gamut value of the second target image according to the first mean value and the first standard deviation.

[0154] S1402: Calculate a second channel color gamut value of the second target image according to the second mean and the second standard deviation.

[0155] S1403: Merge the first channel color gamut value and the second channel color gamut value with the image of the sixth color channel to generate the second enhanced image.

[0156] Exemplarily, the first channel color gamut value and the second channel color gamut value may be obtained by a preset color gamut value formula.

[0157] Exemplarily, the color gamut value formula may be preset in advance or may be user-defined, which is not limited in this embodiment.

[0158] Furthermore, the color gamut value formula includes a preset compensation value, which may be preset in advance or user-defined, and this is not limited in the present embodiment.

[0159] It should be noted that, generally, since the bit range of SDR images is lower than the bit range of HDR images, if the conversion between SDR images and HDR images is performed directly, there may be a problem that some information cannot be accurately converted. Therefore, by increasing the preset compensation value, the above-mentioned inaccurate information can be compensated.

[0160] In one embodiment, the first preset algorithm is as follows:

[0161]

[0162] HDR mean With HDR stdis the mean and standard deviation of the second target image, SDR mean With SDR std is the mean and standard deviation of the first target image, σ is the standard deviation compensation, that is, the above-mentioned preset compensation value, which is set to 0.05 in this embodiment.

[0163] Exemplarily, it can be known from the above content that the first channel is the A channel, the second channel is the B channel, the calculation processes of the A channel data and the B channel data are independent of each other, and the above formula 1 is respectively applicable to the calculation of the A channel data and the calculation of the B channel data. Taking the calculation of the A channel data as an example, first obtain the mean and standard deviation between the SDR image data and the HDR image data in the A channel data, then use the above formula 1 to calculate the color conversion value of the A channel data, and then intercept the data that exceeds the data range, and the data range is [-128,127].

[0164] In this embodiment, by presetting the compensation value, the inaccurate part of the HDR image converted from the SDR image can be compensated, thereby improving the accuracy of the subsequent acquisition of the fused image sequence, thereby improving the image quality.

[0165] In some embodiments, the weight calculation formula includes: a gradient weight calculation formula, a saturation weight calculation formula and an exposure weight calculation formula, and the method of generating the first weighted Gaussian pyramid of the first enhanced image and the second weighted Gaussian pyramid of the second enhanced image refers to Figure 5 :

[0166] In S1500, including

[0167] S1501: Calculate the gradient weights of the first enhanced image and the second enhanced image respectively according to the gradient weight calculation formula.

[0168] S1502: Calculate the saturation weights of the first enhanced image and the second enhanced image respectively according to the saturation weight calculation formula.

[0169] S1503: Calculate the exposure weights of the first enhanced image and the second enhanced image respectively according to the exposure weight calculation formula.

[0170] S1504: Generate a first fusion weight of the first enhanced image and a second fusion weight of the second enhanced image according to the product of the gradient weight, the saturation weight and the exposure weight.

[0171] S1505: Obtain a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image according to the first fusion weight, the second fusion weight, and a Gaussian calculation formula.

[0172] For example, in the case of calculating the gradient weight, it is necessary to convert each image in the image sequence corresponding to the first enhanced image and each image in the image sequence corresponding to the second enhanced image into a grayscale image, and use the Sobel operator to calculate the image gradients in the x and y directions based on the grayscale image, and calculate the square roots of the gradients in the two directions as the gradient weight.

[0173] It should be noted that in this embodiment, a smoothing coefficient is added, that is, the above gradient weight needs to be added with a constant λ g , this application is set to 0.01.

[0174] It can be understood that the smoothing coefficient helps to reduce the discontinuity caused by the large difference in grayscale values ​​in multi-frame fusion, and ensures that the image weight can be weighted. The gradient weight calculation formula is shown in the following formula 2:

[0175] W g =|gray*K sobel |(x)+λ g (Formula 2)

[0176] The SOBEL gradient operator is as follows:

[0177] Gradient in x direction: Gradient in y direction: Total gradient:

[0178] Exemplarily, the present embodiment uses the following formula 3 to calculate the saturation weight, and obtains the saturation weight by obtaining the standard deviation in the channel direction of each image in the image sequence corresponding to the first enhanced image and each image in the image sequence corresponding to the second enhanced image:

[0179]

[0180] This embodiment uses the following formula 4 to calculate the exposure weight, and a smoothing coefficient λ is added to the formula 4: e , set to 0.1. In addition, this embodiment uses the three channels of the first enhanced image and the second enhanced image to calculate the results of multiplication, σ is the weight difference variance, σ is 0.2, as shown in the following formula 4:

[0181]

[0182] In this implementation, the first fusion weight may be the comprehensive weight corresponding to the grayscale gradient weight, color saturation weight, and exposure weight. For example, when the first target weight includes the grayscale gradient weight, color saturation weight, and exposure weight, the first fusion weight includes the grayscale gradient weight, color saturation weight, and the comprehensive weight corresponding to the exposure weight. Similarly, the second fusion weight is the comprehensive weight corresponding to the second target weight.

[0183] In one embodiment, the first fusion weight may be obtained by multiplying the first target weights that have been obtained, as shown in Formula 5:

[0184] W=W g *W s *W e (Formula 5)

[0185] Furthermore, the second fusion weight may also be obtained using the formula 5, which will not be described in detail here.

[0186] In this implementation, the first weighted Gaussian pyramid is a weighted Gaussian pyramid obtained by sampling and smoothing according to the first fusion weight. Similarly, the second weighted Gaussian pyramid is also obtained in the same way as the first weighted Gaussian pyramid.

[0187] In one implementation, the first weighted Gaussian pyramid may be obtained by downsampling, as described below for details.

[0188] Similarly, the second weighted Gaussian pyramid is obtained in the same manner as the first weighted Gaussian pyramid.

[0189] In one embodiment, the first preset algorithm may be a sampling smoothing algorithm. Specifically, the algorithm for obtaining the weighted Gaussian pyramid is to first perform Gaussian smoothing on each image in the image sequence, and then perform downsampling to obtain the image of the next layer. The higher the number of layers, the smaller the image size. For example, N=4. Figure 6 As shown, this figure is the image corresponding to the weighted Gaussian pyramid.

[0190] Furthermore, in this embodiment, the Gaussian calculation formula is as shown in the following formula 6, where i represents the number of layers, downsampling uses 2 times, and K gaussian The size of is 5x5, and the variance in the x and y directions is 0.5.

[0191]

[0192] In some embodiments, the gradient weight calculation formula is a Sobel operator, and the method for calculating the gradient weights of the first enhanced image and the second enhanced image is referred to as Figure 7:

[0193] In S1501, it includes:

[0194] S1501a: Reading grayscale images of the first enhanced image and the second enhanced image;

[0195] S1501b: Perform a preset Sobel operator on the first directional gradient and the second directional gradient of each grayscale image, and generate a gradient weight of each grayscale image according to the first directional gradient and the second directional gradient.

[0196] For example, reference may be made to the related description of S1501 above, which will not be repeated here.

[0197] In some embodiments, the method of obtaining the first image Laplacian pyramid of the first enhanced image and the second image Laplacian pyramid of the second enhanced image can be found in Figure 8 :

[0198] In S1600, it includes:

[0199] S1601: construct a pre-image sequence, where the pre-image sequence is a Gaussian pyramid;

[0200] S1602: Process the pre-image sequence using the preset Laplacian calculation formula to obtain a first image Laplacian pyramid corresponding to the first enhanced image and a second image Laplacian pyramid corresponding to the second enhanced image.

[0201] Exemplarily, the above-mentioned pre-image sequence is a Gaussian pyramid.

[0202] Exemplarily, the acquisition algorithm of the above-mentioned pre-image sequence is the same as the aforementioned formula six.

[0203] Furthermore, by inputting the sequence data corresponding to the first enhanced image and the sequence data corresponding to the second enhanced image into Formula 6, the first image Gaussian pyramid and the second image Gaussian pyramid, that is, the pre-image sequence, are obtained.

[0204] Furthermore, the first enhanced image and the second enhanced image correspond to different pre-image sequences, namely, a first image Gaussian pyramid and a second image Gaussian pyramid.

[0205] It should be noted that, in this embodiment, the number of layers of the above-mentioned pre-image sequence is the same as the number of layers of the first weighted Gaussian pyramid and the second weighted Gaussian pyramid.

[0206] Exemplarily, the first image Latulas pyramid includes N first image Latulas pyramid data, and the second image Latulas pyramid includes N second image Latulas pyramid data.

[0207] Exemplarily, after obtaining the above-mentioned pre-image sequence, the pre-image sequence is used in combination with the Laplace calculation formula to obtain the image Laplace pyramid. Taking the first enhanced image as an example, Figure 7 As shown, after obtaining the first image Gaussian pyramid corresponding to the first enhanced image, the topmost layer (i.e., the fourth layer) of the first image Gaussian pyramid is used as the topmost layer of the Laplacian pyramid, and the image of the first image Gaussian pyramid of the next layer is subtracted from the up-sampling of the image of the first image Gaussian pyramid of the previous layer, thereby obtaining the first image Laplacian pyramid of the current layer, as shown in the following formula 7. G represents the Gaussian pyramid image, L represents the Laplacian pyramid image, and i represents the number of layers.

[0208]

[0209] Furthermore, since the present embodiment adopts an upsampling method to obtain the image Laplace pyramid, the method for obtaining the Laplace data of the highest layer can refer to the following formula 8:

[0210] L i-1 =G i-1 -upsqmple(G i ) (Formula 8)

[0211] In one example, the Laplacian sequence has 4 layers and upsampling is performed by a factor of 2.

[0212] In some embodiments, the method of generating an enhanced image is referred to as Fig.10 :

[0213] In S1700, it includes:

[0214] S1701: According to a preset fused image calculation formula, the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid are processed to obtain a first fused image sequence and a second fused image sequence.

[0215] S1702: Using a preset enhanced image calculation formula, process the first fused image sequence and the second fused image sequence to obtain the enhanced image.

[0216] Exemplarily, in this implementation, the first image Latulas pyramid and the first weighted Gaussian pyramid have the same number of layers, and the layers correspond to each other. Therefore, the fused image calculation formula is to obtain the first fused image sequence by multiplying the data corresponding to each layer of the first image Latulas pyramid and the first weighted Gaussian pyramid, as shown in Formula 8, where n represents the number of icon sequences, i represents the number of layers, and F represents the weighted image:

[0217]

[0218] Furthermore, the preset enhanced image calculation formula is to start the calculation from the top layer of the first fused image sequence and the second fused image sequence to obtain the target fused image sequence of each layer, and finally obtain the target fused image sequence. Among them, the fused image sequence of the current layer is equal to the upsampled fused image sequence of the previous layer plus the fused image sequence of the current layer, until the calculation is terminated at the bottom layer, as shown in the following formula 9:

[0219] LF i-1 =F i-1 +upsqmple(LF i ) (Formula 9)

[0220] Please refer to Fig.11 , Fig.11 FIG. 2 is a schematic diagram of the basic structure of the image processing device of this embodiment.

[0221] like Fig.11 As shown, an image processing device includes: an acquisition module 3100, used to acquire a second target image obtained by format conversion of a first target image, wherein the information carrying capacity of the second target image is greater than that of the first target image; a generation module 3200, used to adjust the color value of the second target image in a preset first color space to generate a first enhanced image; a calculation module 3300, used to calculate the mean and standard deviation of the first target image and the second target image in a preset second color space; the generation module 3200 is used to generate a second enhanced image of the second target image according to the mean and standard deviation ; The generating module 3200 is used to generate a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image based on a preset weight calculation formula; the acquiring module 3100 is used to acquire a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image based on a preset Laplace calculation formula; the generating module 3200 is used to apply a preset enhanced image calculation formula to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplace pyramid and the second image Laplace pyramid.

[0222] The image processing device first obtains a second target image obtained by format conversion of the first target image; then, in a preset first color space, the color value of the second target image is adjusted to generate a first enhanced image; then, in a preset second color space, the mean and standard deviation of the first target image and the second target image are calculated, and a second enhanced image of the second target image is generated according to the mean and standard deviation; then, based on a preset weight calculation formula, a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image are generated; then, based on a preset Laplace calculation formula, a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image are obtained; finally, a preset enhanced image calculation formula is applied to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplace pyramid and the second image Laplace pyramid. In this way, the problems of insufficient image details and image faults can be overcome, and a fused image that can ensure both image details and image colors can be obtained, thereby improving the quality of the acquired image.

[0223] Optionally, the first color space includes a first color channel, a second color channel and a third color channel, and the image processing device further includes: a first reading submodule, used to read the brightness parameter of the second target image in the first color channel; a second reading submodule, used to read the color value of the first target image in the second color channel and the third color channel; and a first generating submodule, used to generate the first enhanced image according to the brightness parameter and the color value of the first target image in the second color channel and the third color channel.

[0224] Optionally, the second color space includes a fourth color channel, a fifth color channel and a sixth color channel, and the image processing device further includes: a first calculation submodule, used to calculate the first mean and the first standard deviation of the first target image and the second target image in the fourth color channel; and a second calculation submodule, used to calculate the second mean and the second standard deviation of the first target image and the second target image in the fifth color channel.

[0225] Optionally, the image processing device also includes: a third calculation submodule, used to calculate the first channel color gamut value of the second target image according to the first mean and the first standard deviation, wherein the first channel color gamut value is limited to a value range of a preset color gamut interval; a fourth calculation submodule, used to calculate the second channel color gamut value of the second target image according to the second mean and the second standard deviation, wherein the second channel color gamut value is limited to a value range of the color gamut interval; and a second generation submodule, used to merge the first channel color gamut value and the second channel color gamut value with the image of the sixth color channel to generate the second enhanced image.

[0226] Optionally, the weight calculation formula includes: a gradient weight calculation formula, a saturation weight calculation formula and an exposure weight calculation formula, and the image processing device also includes: a fifth calculation submodule, used to calculate the gradient weights of the first enhanced image and the second enhanced image respectively according to the gradient weight calculation formula; a sixth calculation submodule, used to calculate the saturation weights of the first enhanced image and the second enhanced image respectively according to the saturation weight calculation formula; a seventh calculation submodule, used to calculate the exposure weights of the first enhanced image and the second enhanced image respectively according to the exposure weight calculation formula; a third generation submodule, used to generate a first fusion weight of the first enhanced image and a second fusion weight of the second enhanced image according to the product of the gradient weight, the saturation weight and the exposure weight; a first acquisition submodule, used to acquire a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image according to the first fusion weight, the second fusion weight and the Gaussian calculation formula.

[0227] Optionally, the gradient weight calculation formula is a Sobel operator, and the image processing device also includes: a third reading submodule, used to read the grayscale image of the first enhanced image and the second enhanced image; a fourth generating submodule, used to use a preset Sobel operator to perform a first directional gradient and a second directional gradient on each of the grayscale images, and generate a gradient weight of each of the grayscale images based on the first directional gradient and the second directional gradient.

[0228] Optionally, the image processing device also includes: a first construction submodule, used to construct a pre-image sequence, the pre-image sequence is a Gaussian pyramid; a second acquisition submodule, used to process the pre-image sequence using the preset Laplace calculation formula to obtain a first image Laplace pyramid corresponding to the first enhanced image and a second image Laplace pyramid corresponding to the second enhanced image.

[0229] Optionally, the image processing device includes: a third acquisition submodule, used to process the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid according to a preset fused image calculation formula to obtain a first fused image sequence and a second fused image sequence; a fourth acquisition submodule, used to process the first fused image sequence and the second fused image sequence using a preset enhanced image calculation formula to obtain the enhanced image.

[0230] To solve the above technical problems, the present application also provides a computer device. Fig.12 , Fig.12 This is a basic structural block diagram of the computer device in this embodiment.

[0231] like Fig.12 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected via a system bus. Among them, the non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a text entity recognition method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute a text entity recognition method. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0232] In this embodiment, the processor is used to execute Fig.12 The memory stores the program codes and various data required to execute the above modules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program codes and data required to execute all sub-modules in the image processing device, and the server can call the program codes and data of the server to execute the functions of all sub-modules.

[0233] The computer device first obtains a second target image obtained by format conversion of the first target image; then, in a preset first color space, the color value of the second target image is adjusted to generate a first enhanced image; then, in a preset second color space, the mean and standard deviation of the first target image and the second target image are calculated, and a second enhanced image of the second target image is generated according to the mean and standard deviation; then, based on a preset weight calculation formula, a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image are generated; then, based on a preset Laplace calculation formula, a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image are obtained; finally, a preset enhanced image calculation formula is applied to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplace pyramid and the second image Laplace pyramid. In this way, the problems of insufficient image details and image faults can be overcome, and a fused image that can ensure both image details and image colors can be obtained, thereby improving the quality of the acquired image.

[0234] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the image processing method of any of the above embodiments.

[0235] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0236] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.

[0237] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An image processing method, characterized in that: include: Acquire a second target image obtained by format conversion of the first target image, wherein the information carrying capacity of the second target image is greater than the information carrying capacity of the first target image; In a preset first color space, adjusting the color value of the second target image to generate a first enhanced image; In a preset second color space, calculating the mean and standard deviation of the first target image and the second target image; generating a second enhanced image of the second target image according to the mean and the standard deviation; Based on a preset weight calculation formula, generating a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image; Based on a preset Laplace calculation formula, obtaining a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image; A preset enhanced image calculation formula is applied to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid.

2. The image processing method according to claim 1, characterized in that: The first color space includes a first color channel, a second color channel, and a third color channel, and adjusting the color value of the second target image in the preset first color space to generate a first enhanced image includes: Reading the brightness parameter of the second target image in the first color channel; Reading color values ​​of the first target image in the second color channel and the third color channel; The first enhanced image is generated according to the brightness parameter and the color values ​​of the first target image in the second color channel and the third color channel.

3. The image processing method according to claim 1, characterized in that: The second color space includes a fourth color channel, a fifth color channel, and a sixth color channel, and calculating the mean and standard deviation of the first target image and the second target image in the preset second color space includes: In the fourth color channel, calculating a first mean and a first standard deviation of the first target image and the second target image; In the fifth color channel, a second mean and a second standard deviation of the first target image and the second target image are calculated.

4. The image processing method according to claim 3, characterized in that: Generating a second enhanced image of the second target image according to the mean and the standard deviation comprises: Calculating a first channel color gamut value of the second target image according to the first mean value and the first standard deviation, wherein the first channel color gamut value is limited to a value range of a preset color gamut interval; Calculating a second channel color gamut value of the second target image according to the second mean and the second standard deviation, wherein the second channel color gamut value is limited to a value range of the color gamut interval; The first channel color gamut value and the second channel color gamut value are combined with the image of the sixth color channel to generate the second enhanced image.

5. The image processing method according to claim 1, characterized in that: The weight calculation formula includes: a gradient weight calculation formula, a saturation weight calculation formula and an exposure weight calculation formula. The first weighted Gaussian pyramid of the first enhanced image and the second weighted Gaussian pyramid of the second enhanced image are generated based on the preset weight calculation formula, including: Calculating the gradient weights of the first enhanced image and the second enhanced image respectively according to the gradient weight calculation formula; Calculating the saturation weights of the first enhanced image and the second enhanced image respectively according to the saturation weight calculation formula; Calculating exposure weights of the first enhanced image and the second enhanced image respectively according to the exposure weight calculation formula; generating a first fusion weight of the first enhanced image and a second fusion weight of the second enhanced image according to the product of the gradient weight, the saturation weight and the exposure weight; A first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image are obtained according to the first fusion weight, the second fusion weight and a Gaussian calculation formula.

6. The image processing method according to claim 5, characterized in that: The gradient weight calculation formula is a Sobel operator, and the step of respectively calculating the gradient weights of the first enhanced image and the second enhanced image according to the gradient weight calculation formula includes: Reading grayscale images of the first enhanced image and the second enhanced image; The first directional gradient and the second directional gradient of each grayscale image are subjected to a preset Sobel operator, and the gradient weight of each grayscale image is generated according to the first directional gradient and the second directional gradient.

7. The image processing method according to claim 1, characterized in that: The first image Laplacian pyramid of the first enhanced image and the second image Laplacian pyramid of the second enhanced image are obtained based on a preset Laplacian calculation formula: Constructing a pre-image sequence, wherein the pre-image sequence is a Gaussian pyramid; The pre-image sequence is processed using the preset Laplace calculation formula to obtain a first image Laplace pyramid corresponding to the first enhanced image and a second image Laplace pyramid corresponding to the second enhanced image.

8. The image processing method according to claim 1, characterized in that: The applying a preset enhanced image calculation formula to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid includes: According to a preset fused image calculation formula, the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid, and the second image Laplacian pyramid are processed to obtain a first fused image sequence and a second fused image sequence; The first fused image sequence and the second fused image sequence are processed by using a preset enhanced image calculation formula to obtain the enhanced image.

9. An image processing device, characterized in that: include: An acquisition module, used for acquiring a second target image obtained by format conversion of the first target image, wherein the information carrying capacity of the second target image is greater than the information carrying capacity of the first target image; A generating module, used for adjusting the color value of the second target image in a preset first color space to generate a first enhanced image; A calculation module, used to calculate the mean and standard deviation of the first target image and the second target image in a preset second color space; The generating module is used to generate a second enhanced image of the second target image according to the mean and the standard deviation; The generating module is configured to generate a first weighted Gaussian pyramid of the first enhanced image and a second weighted Gaussian pyramid of the second enhanced image based on a preset weight calculation formula; The acquisition module is configured to acquire a first image Laplace pyramid of the first enhanced image and a second image Laplace pyramid of the second enhanced image based on a preset Laplace calculation formula; The generating module is used to apply a preset enhanced image calculation formula to generate an enhanced image according to the first weighted Gaussian pyramid, the second weighted Gaussian pyramid, the first image Laplacian pyramid and the second image Laplacian pyramid.

10. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, characterized in that: When the computer-readable instructions are executed by the processor, the processor performs the steps of the image processing method according to any one of claims 1 to 8.