Adaptive image enhancement method and system
By constructing a deep conversion network and an adaptive image enhancement method without reference evaluation criteria, the problem of low generalization of image enhancement in multiple complex scenarios in the prior art is solved, and high-quality images in multiple imaging environments are achieved Enhance the effect.
Patent Information
- Application Number
- CN202111406567.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The existing image enhancement methods have low generalization in many complex scenarios, especially in underwater or extreme environments, and it is difficult to effectively improve image quality. In addition, deep learning-based methods have high requirements for training data sets and poor generalization.
An adaptive image enhancement method is proposed to pre-enhance the degraded image by constructing a deep conversion network, and generate the highest image quality enhancement image using reference-free evaluation criteria, so as to realize adaptive processing of multiple image degradation scenarios. The method includes pre-enhanced, deep conversion networks and reference-free evaluation criteria, generating enhanced images using coding subnets, feature combiners, and decoding subnets, and optimizing network output by adjusting feature combination ratios.
It achieves the improvement of image enhancement effect in multiple imaging environments, improves the contrast, signal-to-noise ratio and visual experience of the image, enhances the generalization of the image, and is suitable for many types of complex scenes.
Smart Images

Figure CN114202475B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to an adaptive image enhancement method and system. Background Art
[0002] In reality, complex imaging environments can cause serious degradation of acquired images. For example, images acquired in underwater, dim, or overexposed environments will show color decay, low color contrast, and blurred details, which will increase the difficulty of post-processing processes such as target classification, detection, and tracking. Although the quality of acquired images can be improved to a certain extent with the development of high-tech imaging hardware equipment, the hardware cost is high and the imaging system is complex. Therefore, for applications that require imaging under extreme conditions, such as underwater robot surveys, target recognition and detection in low-light or overexposed environments, the image enhancement problem of degraded images is very important and needs to be solved urgently.
[0003] The main goals of image enhancement are: to improve the contrast of the image part and the whole, but not to ignore the details; to improve the signal-to-noise ratio of the image; to improve the human visual perception of the image. Classic image enhancement algorithms include: histogram equalization algorithm; Retinex image enhancement algorithm; image enhancement algorithm based on deep learning.
[0004] The main purpose of the histogram equalization algorithm is to improve the contrast of the image. The basic principle of the traditional histogram equalization algorithm is to convert a grayscale interval where the grayscale histogram of the original image is relatively concentrated into a uniform distribution in all grayscale areas. It works well for images with relatively uniform pixel value distribution, but the contrast of areas that are too bright or too dark in the image cannot be enhanced. The adaptive histogram equalization method can improve the shortcomings of the traditional method by calculating the histograms of multiple local areas and redistributing the brightness, but there is a problem of noise amplification. In 2004, Ali M. Reza proposed the restricted contrast adaptive histogram equalization algorithm. On the basis of the histogram equalization method, it restricts the histogram of each sub-block and controls the noise caused by the histogram equalization method.
[0005] Retinex consists of retina and cortex. The algorithm was proposed by American physicist Edwin H. Land in 1971. The theoretical basis of Retinex is that the original image can be decomposed into an irradiated image and a reflected image. The most important thing is to get rid of the influence of the irradiated image in order to obtain the reflection property of the image. Image enhancement methods based on Retinex include: single-scale Retinex algorithm, multi-scale Retinex algorithm, etc. When the scale is large, the single-scale Retinex algorithm has better color fidelity, but the local details of the image are not prominent enough; when the scale is small, the effect is the opposite. The essence of the multi-scale Retinex algorithm is to merge the processing results of the single-scale Retinex algorithm of different scales by weighted summation to obtain the final image, retaining the local detail information of the image, and having good color fidelity.
[0006] In recent years, due to the rise of deep learning, image enhancement methods based on deep neural learning have also become a research hotspot. Among them, convolutional neural networks are one of the most important networks in the field of deep learning. For example, Li Qiming and others from Shanghai Maritime University proposed using deep convolutional neural networks for learning to improve the quality of low-light images. Compared with traditional methods, some methods based on convolutional neural networks have greatly improved the quality of original images, but most of the current network-based methods are supervised learning, which requires a large number of original image and target image pairs to learn the mapping relationship between them to obtain enhanced images. This places high demands on the training data set, and there is no real data set for some complex scenes, such as underwater degraded images, resulting in poor network effects and generalization.
[0007] The existing image enhancement methods mainly target a single scene, and the enhancement effects on multiple types of complex scenes are not very generalizable. Summary of the invention
[0008] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0009] To this end, the first objective of the present application is to propose an adaptive image enhancement method to adaptively enhance degraded images with different degradation processes and degradation degrees, with strong generalization and high enhancement quality.
[0010] The second objective of this application is to provide an adaptive image enhancement system.
[0011] To achieve the above-mentioned purpose, the first embodiment of the present application proposes an adaptive image enhancement method, comprising: pre-enhancing a degraded image to obtain a pre-enhanced image; constructing a deep conversion network, taking the degraded image and the pre-enhanced image as input, and outputting an enhanced image group; evaluating the enhanced image group using a no-reference evaluation standard to obtain an enhanced image with the highest image quality
[0012] The adaptive image enhancement method of the embodiment of the present application constructs a universal deep conversion network, generates an enhanced image in a non-training manner, and then performs a reference-free evaluation on the generated image to obtain an enhanced image with the highest image quality, thereby adaptively processing a variety of image degradation scenarios and improving the image enhancement effect in a variety of imaging environments.
[0013] Optionally, in one embodiment of the present application, pre-enhancing the degraded image to obtain the pre-enhanced image includes:
[0014] The degraded image is normalized, color corrected and detail enhanced to obtain a pre-enhanced image.
[0015] Optionally, in one embodiment of the present application, a deep conversion network, including an encoding subnetwork, a feature combiner, and a decoding subnetwork, takes a degraded image and a pre-enhanced image as input, and outputs an enhanced image group, including:
[0016] Use the encoding sub-network to extract the encoding feature maps of the degraded image and the pre-enhanced image;
[0017] The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map;
[0018] The combined encoding feature map is input into the decoding sub-network, and the parameters of the deep conversion network are optimized. During the optimization process, the network output is made to approach the pre-enhanced image continuously until the network output converges and the optimization is stopped.
[0019] The network parameters are fixed and the combination ratio of the feature combiner is adjusted so that the deep transformation network outputs a set of enhanced image groups corresponding to different combination ratios.
[0020] Optionally, in one embodiment of the present application, the no-reference quality evaluation standard is an evaluation index that conforms to the human visual system, including: underwater color image quality evaluation, underwater image quality evaluation inspired by the human visual system, natural image quality evaluation, sorted image quality evaluation, and no-reference image space quality evaluation.
[0021] To achieve the above-mentioned purpose, the second embodiment of the present invention proposes an adaptive image enhancement system, including: a processing module, a deep conversion network module and an evaluation module, wherein:
[0022] A processing module, used for pre-enhancing the degraded image to obtain a pre-enhanced image;
[0023] A deep conversion network module, which is used to take the degraded image and the pre-enhanced image as input and output an enhanced image group;
[0024] The evaluation module is used to evaluate the enhanced image group using a no-reference evaluation standard to obtain an enhanced image with the highest image quality.
[0025] Optionally, in one embodiment of the present application, the deep conversion network module includes an encoding subnetwork, a feature combiner, and a decoding subnetwork, takes a degraded image and a pre-enhanced image as input, and outputs an enhanced image group corresponding to different combination ratios, including:
[0026] Use the encoding sub-network to extract the encoding feature maps of the degraded image and the pre-enhanced image;
[0027] The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map;
[0028] The combined encoding feature map is input into the decoding sub-network, and the parameters of the deep conversion network are optimized. During the optimization process, the network output is made to approach the pre-enhanced image continuously until the network output converges and the optimization is stopped.
[0029] The network parameters are fixed and the combination ratio of the feature combiner is adjusted so that the deep transformation network outputs a set of enhanced image groups corresponding to different combination ratios.
[0030] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] 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:
[0032] Figure 1 A schematic diagram of a flow chart of an adaptive image enhancement method provided in Embodiment 1 of the present application;
[0033] Figure 2 This is a schematic diagram of the pre-enhancement method flow chart of Example 1 of the present application;
[0034] Figure 3 This is a schematic diagram of the deep conversion network structure of the first embodiment of the present application;
[0035] Figure 4 This is an example diagram of no-reference evaluation of network enhanced images at different combination ratios in Example 1 of the present application;
[0036] Figure 5 This is a schematic diagram of the structure of the adaptive image enhancement system of the second embodiment of the present application. DETAILED DESCRIPTION
[0037] 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 intended to be used to explain the present application, and should not be construed as limiting the present application.
[0038] The adaptive image enhancement method and system of the embodiments of the present application are described below with reference to the accompanying drawings.
[0039] Figure 1 A flowchart of an adaptive image enhancement method provided in Example 1 of the present application.
[0040] like Figure 1 As shown, the adaptive image enhancement method comprises the following steps:
[0041] Step 101, pre-enhance the degraded image to obtain a pre-enhanced image;
[0042] Step 102, constructing a deep conversion network, taking the degraded image and the pre-enhanced image as input, and outputting an enhanced image group;
[0043] Step 103: Evaluate the enhanced image group using a no-reference evaluation standard to obtain an enhanced image with the highest image quality.
[0044] The adaptive image enhancement method of the embodiment of the present application constructs a universal deep conversion network, generates enhanced images in a non-training manner, and then manually evaluates the generated images to obtain enhanced images with the highest image quality, thereby adaptively processing a variety of image degradation scenarios and improving image enhancement effects in a variety of imaging environments.
[0045] Further, in the embodiments of the present application, Figure 2 As shown, the degraded image is pre-enhanced using an existing image enhancement method to obtain a pre-enhanced image. In this embodiment, the pre-enhancement method used is: normalizing, color correcting and detail enhancing the degraded image in sequence to obtain a pre-enhanced image. Among them, this embodiment uses local gamma correction and white balance for color correction, and uses unsharp masking and high lift filtering for detail enhancement.
[0046] Specifically, in the embodiments of the present application, Figure 3 As shown, the deep conversion network, including the encoding sub-network, the feature combiner, and the decoding sub-network, takes the degraded image and the pre-enhanced image as input and outputs an enhanced image group, including:
[0047] A) Using the coding sub-network to extract the coding feature map of the complex environment acquisition image and the traditional method enhanced image. In this embodiment, the first 4 convolutional layers in the pre-trained VGG network developed by the Visual Geometry Group (VGG) of the University of Oxford are used as the coding sub-network, and the degraded image and the pre-enhanced image are respectively input into the coding network to obtain the coding feature maps of the two outputted at each layer in the coding network;
[0048] B) The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image in a certain ratio to obtain a combined coding feature map. In this embodiment, an adaptive instance normalizer (Adaptive Instance Normalization, AdaIn) is used as a feature combiner. The adaptive instance normalizer combines the coding feature maps of the degraded image and the pre-enhanced image in a certain ratio to generate a combined coding feature map. The combined coding feature map can be expressed as:
[0049]
[0050] In the above formula, x, y represent the coding feature maps of the degraded image and the pre-enhanced image respectively, μ represents the average value of the coding feature map, σ represents the variance of the coding feature map, α is the combination ratio, and in this embodiment, α is set to 0.5;
[0051] C) The combined encoded feature map is input into the decoding sub-network, and the network output is made close to the pre-enhanced image by optimizing the network parameters. After the network parameter optimization is completed, the network parameters are fixed and the combination ratio α of the feature combiner is adjusted so that the deep conversion network generates a series of network output images.
[0052] Further, in an embodiment of the present application, a no-reference quality evaluation standard is used to evaluate the network output images generated by the deep conversion network respectively. The no-reference quality evaluation standard includes evaluation indicators that conform to the human visual system: such as underwater color image quality evaluation (UCIQE), underwater image quality evaluation inspired by the human visual system (UIQM), block-based contrast quality index (PCQI), natural image quality evaluation (NIQE), ranked image quality evaluation (RankIQA), no-reference image space quality evaluation (BRISQUE) and other image quality evaluation standards that do not require reference images. The network output image with the highest image quality is obtained according to the no-reference quality evaluation standard. Taking UCIQE as an example, UCIQE is a linear combination of image color concentration, image saturation and image contrast. The larger its value, the better the chroma, saturation and contrast of the image. Adjust the combination ratio α of the feature combiner. After the deep conversion network generates a series of network output images, use UCIQE to evaluate the output images, such as Figure 4As shown, we can see that when α is adjusted to a suitable value, the UCIQE value is the largest and the image quality is the highest.
[0053] In order to implement the above embodiment, the present application also proposes an adaptive image enhancement system.
[0054] Figure 5 A schematic diagram of the structure of an adaptive image enhancement system provided in an embodiment of the present application.
[0055] like Figure 5 As shown, the adaptive image enhancement device includes: a processing module, a depth conversion network module and an evaluation module, wherein:
[0056] A processing module, used for pre-enhancing the degraded image to obtain a pre-enhanced image;
[0057] A deep conversion network module, which is used to take the degraded image and the pre-enhanced image as input and output an enhanced image group;
[0058] An evaluation module is used to evaluate the enhanced image group using a no-reference evaluation standard to obtain the enhanced image with the highest image quality
[0059] Further, in the embodiment of the present application, the deep conversion network module includes an encoding subnetwork, a feature combiner, and a decoding subnetwork, takes a degraded image and a pre-enhanced image as input, and outputs an enhanced image group, including:
[0060] Use the encoding sub-network to extract the encoding feature maps of the degraded image and the pre-enhanced image;
[0061] The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map;
[0062] The combined encoding feature map is input into the decoding sub-network, and the parameters of the deep conversion network are optimized. During the optimization process, the network output is made to approach the pre-enhanced image continuously until the network output converges and the optimization is stopped.
[0063] The network parameters are fixed and the combination ratio of the feature combiner is adjusted so that the deep transformation network outputs a set of enhanced image groups corresponding to different combination ratios.
[0064] It should be noted that the above explanation of the embodiment of the adaptive image enhancement method is also applicable to the adaptive image enhancement device of this embodiment, and will not be repeated here.
[0065] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0066] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0067] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0068] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0069] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0070] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0071] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0072] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. An adaptive image enhancement method, characterized in that: The following steps are involved: Pre-enhancing the degraded image to obtain a pre-enhanced image; Constructing a deep conversion network, taking the degraded image and the pre-enhanced image as input, and outputting an enhanced image group; Evaluating the enhanced image group using a no-reference evaluation standard to obtain an enhanced image with the highest image quality; The deep conversion network includes an encoding subnetwork, a feature combiner, and a decoding subnetwork. The method takes the degraded image and the pre-enhanced image as input and outputs an enhanced image group, including: Use the encoding sub-network to extract the encoding feature maps of the degraded image and the pre-enhanced image; The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map; Inputting the combined encoding feature map into the decoding sub-network, optimizing the depth conversion network parameters, and making the network output approach the pre-enhanced image continuously during the optimization process until the network output converges and the optimization is stopped; The network parameters are fixed, and the combination ratio of the feature combiner is adjusted so that the deep transformation network outputs a set of enhanced images corresponding to different combination ratios; The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map, including: Adaptive instance normalizer is used as feature combiner. The adaptive instance normalizer combines the coded feature maps of the degraded image and the pre-enhanced image in proportion to generate a combined coded feature map. The combined coded feature map is expressed as: Among them, x and y represent the coding feature maps of the degraded image and the pre-enhanced image respectively, μ represents the average value of the coding feature map, σ represents the variance of the coding feature map, and α is the combination ratio. Adjust α to a suitable value to maximize the image quality.
2. The method according to claim 1, characterized in that The pre-enhancing the degraded image to obtain the pre-enhanced image includes: The degraded image is normalized, color corrected and detail enhanced to obtain a pre-enhanced image.
3. The method according to claim 1, characterized in that The no-reference evaluation criteria are evaluation indicators that conform to the human visual system, including: underwater color image quality evaluation, underwater image quality evaluation inspired by the human visual system, block-based contrast quality indicator, natural image quality evaluation, sorted image quality evaluation, and no-reference image space quality evaluation.
4. An adaptive image enhancement system, characterized in that: It includes a processing module, a deep conversion network module and an evaluation module, among which, The processing module is used to pre-enhance the degraded image to obtain a pre-enhanced image; The deep conversion network module is used to take the degraded image and the pre-enhanced image as input and output an enhanced image group; The evaluation module is used to evaluate the enhanced image group using a no-reference evaluation standard to obtain an enhanced image with the highest image quality; The deep conversion network module includes an encoding subnetwork, a feature combiner, and a decoding subnetwork. The method takes the degraded image and the pre-enhanced image as input and outputs an enhanced image group, including: Use the encoding sub-network to extract the encoding feature maps of the degraded image and the pre-enhanced image; The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map; Inputting the combined encoding feature map into the decoding sub-network, optimizing the depth conversion network parameters, and making the network output approach the pre-enhanced image continuously during the optimization process until the network output converges and the optimization is stopped; The network parameters are fixed, and the combination ratio of the feature combiner is adjusted so that the deep transformation network outputs a set of enhanced images corresponding to different combination ratios; The feature combiner combines the coding feature maps of the degraded image and the pre-enhanced image according to a preset ratio to obtain a combined coding feature map, including: Adaptive instance normalizer is used as feature combiner. The adaptive instance normalizer combines the coded feature maps of the degraded image and the pre-enhanced image in proportion to generate a combined coded feature map. The combined coded feature map is expressed as: Among them, x and y represent the coding feature maps of the degraded image and the pre-enhanced image respectively, μ represents the average value of the coding feature map, σ represents the variance of the coding feature map, and α is the combination ratio. Adjust α to a suitable value to maximize the image quality.
