A multi-exposure image fusion method based on low-rank decomposition and sparse representation
Through the multi-exposure image fusion method of low-rank decomposition and sparse representation, the problem that the prior art cannot effectively retain the details of high dynamic scene images is solved, and the image detail information is retained and visual effect is improved.
Patent Information
- Application Number
- CN202311139935.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing multi-exposure image fusion method cannot effectively retain image details in overexposure and underexposure areas when processing high dynamic scenes, resulting in a degradation of imaging quality.
Using a multi-exposure image fusion method based on low-rank decomposition and sparse representation, detailed information is extracted through color space conversion, multi-level low-rank decomposition, sparse decomposition and Gabor filtering, and a variety of fusion weights are built to ensure image fusion, ensuring image detail information is retained .
Effectively retain the detailed texture information of the image, avoid color distortion, and improve the visual effect and imaging quality of the image.
Smart Images

Figure CN117291851B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital information processing, and in particular to a multi-exposure image fusion method based on low-rank decomposition and sparse representation. Background Art
[0002] With the rapid development of digital image processing technology, people have higher and higher requirements for the imaging quality of digital images. However, in the fields of deep space exploration and solar activity observation, the dynamic range of the target scene can reach up to 180dB, while the dynamic range of traditional imaging detectors can only reach up to 90dB, which leads to large areas of poor exposure in the shooting results, loss of brightness information in the scene, and inability to effectively observe and measure high dynamic scenes.
[0003] High Dynamic Range Imaging (HDRI) technology provides a solution to this problem. There are two main methods for obtaining high dynamic range images: one is to directly obtain HDR images through a professional HDR camera, but this method requires a lot of special auxiliary equipment and is expensive; the other method is to fuse low dynamic range (HDR) images with different exposure times using image processing methods to obtain HDR images.
[0004] Traditional multi-exposure image fusion methods use camera response functions to convert multi-exposure images into the radiation domain for weighted fusion, and then use tone mapping functions to map high dynamic range irradiance images to low dynamic range. The calculation is complex and requires solving the camera response function. In contrast, Multi-Exposure Fusion (MEF) technology does not require the calculation of camera response functions and can directly fuse multiple images to obtain HDR images, which has gradually become a research hotspot in the field of image fusion.
[0005] Existing multi-exposure image fusion methods are mainly divided into two types: image fusion methods based on spatial domain and image fusion methods based on transform domain. Multi-exposure image fusion methods based on spatial domain construct multiple image quality evaluation indicators and perform multi-exposure image fusion in spatial domain.
[0006] As the complexity of the target scene increases, the existing multi-exposure fusion algorithm cannot well preserve the image detail information of overexposed and underexposed areas. Summary of the invention
[0007] In view of the above problems, the present invention provides a multi-exposure image fusion method based on low-rank decomposition and sparse representation, which can improve the detail texture information of the fused image.
[0008] The present invention provides a multi-exposure image fusion method based on low-rank decomposition and sparse representation, comprising:
[0009] Step S11, obtaining an exposure image sequence;
[0010] Step S12, performing color space conversion on the exposure image sequence to obtain a brightness image sequence and a chromaticity image sequence; the brightness image sequence includes intensity information and detail information of the exposure image sequence; the chromaticity image sequence includes chromaticity information of the exposure image sequence;
[0011] Step S13, performing multi-level low-rank decomposition on the brightness image sequence to obtain a basic image sequence and a detail image sequence;
[0012] Step S14, performing sparse decomposition on the basic image sequence using the trained convolution dictionary to obtain sparse coefficients;
[0013] Step S15, determining a first fusion weight according to the L1 norm of the sparse coefficient, the exposure, contrast and brightness of the basic image sequence, and fusing the basic image sequence according to the first fusion weight to obtain a fused basic image;
[0014] Step S16, using a Gabor filter to extract detail information from the detail image sequence as a second fusion weight, and fusing the detail image sequence according to the second fusion weight to obtain a fused detail image;
[0015] Step S17, reconstructing the fused detail image and the fused basic image to obtain a fused brightness image;
[0016] Step S18, taking the absolute value of the chromaticity information as a chromaticity fusion weight, performing multi-scale fusion on the chromaticity image and the fused luminance image and performing color space conversion to obtain a fused image.
[0017] In a possible implementation, the S12 includes:
[0018] The exposure image sequence is converted to the YCbCr color space, and the brightness information and the chrominance information are weightedly fused based on the following formulas to obtain a brightness image sequence and a chrominance image sequence:
[0019]
[0020] Where R, G, B are the RGB three-channel images of the exposure image sequence, Y is the brightness information of the YCbCr color space, Cb and Cr are the chromaticity information of the YCbCr color space, Cb represents chromaticity red, and Cr represents chromaticity blue.
[0021] In a possible implementation, the S13 includes:
[0022] The brightness image sequence is decomposed into multiple levels of low rank based on the following formula:
[0023] min||Z|| * +||L|| * +λ||E||1
[0024] stY=YZ+LY+E
[0025] V d =L×P(Y)
[0026] Y b =YY d
[0027] Y d =R(V d )
[0028] Where Z is the low-rank coefficient matrix, L is the significant coefficient matrix, E is the sparse noise matrix, R() is the process of reconstructing the significant coefficient matrix into the exposure image sequence, P() is the process of decomposing the exposure image sequence into the significant coefficient matrix, Y is the brightness image sequence, and Y b and Y d are the decomposed base image and detail image respectively, λ is the regularization coefficient, V d is the image significant coefficient matrix;
[0029] Based on the following formula, the brightness image sequence after multi-level decomposition is accumulated to obtain the basic image sequence and the detail image sequence:
[0030]
[0031]
[0032]
[0033]
[0034] In the formula, r is the decomposition series, r = [1, 2, ..., R], Y B and Y D They are base image sequence and detail image sequence respectively.
[0035] In a possible implementation, the S14 includes:
[0036] The convolution dictionary is sparse according to the following formula:
[0037]
[0038]
[0039] In the formula, y is the original signal, D is the convolution dictionary, and d m is the mth atom in the convolution dictionary, x is the sparse coefficient vector of the signal, * is the two-dimensional signal convolution operator, and M is the number of channels in the dictionary.
[0040] In a possible implementation, S14 further includes:
[0041] The multi-exposure images in complex scenes are used as training data sets, and the convolution dictionary is iteratively solved based on the following formula using alternating direction multipliers:
[0042]
[0043] Where N is the number of training images, Ω() is the constraint set indicator function of the convolution dictionary D, and n is the number;
[0044] The basic image sequence is sparsely decomposed using the trained convolution dictionary to obtain sparse coefficients, and the L1 norm of the sparse coefficients is calculated based on the following formula:
[0045]
[0046]
[0047] In the formula, and S k are the L1 norms of the sparse coefficients of the k-th exposure image sequence and the k-th exposure image sequence, respectively, λ is the regularization coefficient, D is the convolution dictionary, is the base image sequence, X k,m is the sparse coefficient.
[0048] In a possible implementation, the S15 includes:
[0049] Determine an exposure weight according to the contrast of the base image sequence and the L1 norm of the sparse coefficient, determine a contrast weight according to an absolute value of a convolution of a Laplacian operator and the base image sequence, and determine a brightness weight according to a nonlinear Gaussian function of the base image sequence;
[0050] Based on the following formula, the exposure weight, the contrast weight, and the brightness weight are multiplied to obtain an initial weight map:
[0051]
[0052]
[0053]
[0054]
[0055] In the formula, μ and σ are parameters, W1 k is the exposure weight, W2 k is the contrast weight, W3 k is the brightness weight, is the initial weight map.
[0056] In a possible implementation manner, the S15 further includes:
[0057] The basic image sequence is used as a guide image, and the initial weight is optimized using guided filtering based on the following formula:
[0058]
[0059]
[0060] In the formula, G γ,ε () is the guided filter, γ and ε are the radius of the filter window and the regularization parameter, respectively. and are the weight map of the kth basic image sequence after filtering and the normalized basic fusion weight map respectively;
[0061] The basic image sequence and the basic fusion weight map are respectively subjected to Laplacian pyramid decomposition and Gaussian pyramid decomposition, and finally the pyramid is reconstructed to obtain a fused basic image. The process is as follows:
[0062]
[0063] Where l is the number of pyramid decomposition layers, is the fusion base image, F{} l is the lth level of Gaussian pyramid, L{} l is the lth level of the Laplace pyramid.
[0064] In a possible implementation manner, the S16 includes:
[0065] Based on the fusion weight of Gabor filtering, the fused detail image is obtained by using the multi-scale image fusion method based on the following formula:
[0066]
[0067]
[0068] sti'=icosθ+jsinθ,j'=-isinθ+jcosθ
[0069]
[0070] Where, mean() is the image mean solution process, (i, j) is the coordinate position of the pixel point, λ is the wavelength of Gabor filtering, θ is the direction of the filter, φ is the phase offset, α is the aspect ratio of the ellipse after Gabor filtering, σ ga is the standard deviation of the Gaussian function in Gabor filtering, and They are the weight map of the kth detail image sequence after filtering and the normalized detail fusion weight map respectively;
[0071] The detail image sequence and the detail fusion weight map are respectively subjected to Laplacian pyramid decomposition and Gaussian pyramid decomposition, and the pyramid is reconstructed based on the following formula to obtain a fused detail image:
[0072]
[0073] Where l is the number of pyramid decomposition layers, To fuse the detail images, F{} l is the lth level of Gaussian pyramid, L{} l is the lth level of the Laplace pyramid.
[0074] In a possible implementation manner, the S17 includes:
[0075] According to the fused detail image and the fused basic image, a fused brightness image is obtained by reconstructing based on the following formula:
[0076]
[0077] Where Y final To fuse the brightness image, To fuse the base images, To fuse the detail images.
[0078] In a possible implementation, the S18 includes:
[0079] The chromaticity image and the fused luminance image are multi-scale fused based on the following formula to obtain a fused chromaticity image:
[0080]
[0081]
[0082] The fused chrominance image of the YCbCr channels is converted to the RGB color space based on the following formula:
[0083]
[0084] In the formula, Cr final and Cb final is the fused chrominance image, Cr final Represents the chromaticity red in the fused chromaticity image, Cb final Indicates the chromaticity blue in the fused chromaticity image, Y final is the fused brightness image, R final , G final , B final They are the RGB three-channel images of the fused image respectively.
[0085] The multi-exposure image fusion method based on low-rank decomposition and sparse representation provided by the present invention converts the image sequence from the RGB color space to the YCbCr space in order to preserve the color information of the image as much as possible, and adopts different image fusion strategies for the brightness image and the chromaticity image; in order to preserve the image detail texture information, the brightness image is decomposed into a detail image and a base image by using low-rank decomposition, the base image is sparsely processed to extract sparse coefficients, and the detail layer image is subjected to Gabor filtering to extract detail texture information; finally, different fusion weight functions are used to perform image fusion, and the fused image is obtained by inverse transformation. Finally, the detail texture information of the image is better preserved, while the color distortion phenomenon is effectively avoided, and the visual effect of the image is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 A schematic diagram of a flow chart of a multi-exposure image fusion method provided by an embodiment of the present invention;
[0087] Figure 2 A logical schematic diagram of a multi-exposure image fusion method provided by an embodiment of the present invention;
[0088] Figure 3 (a) is an exposure image in the exposure image sequence provided by an embodiment of the present invention;
[0089] Figure 3 (b) is the Y channel image information after decomposition of the exposure image provided by the embodiment of the present invention;
[0090] Figure 3 (c) is the Cb channel image information after decomposition of the exposure image provided by the embodiment of the present invention;
[0091] Figure 3 (d) is the Cr channel image information after decomposition of the exposure image provided by the embodiment of the present invention;
[0092] Figure 3 (e) is a basic image after decomposition of the brightness image provided by an embodiment of the present invention;
[0093] Figure 3(f) is a detail image after decomposition of the brightness image provided by an embodiment of the present invention;
[0094] Figure 4 A convolution dictionary provided by an embodiment of the present invention;
[0095] Figure 5 (a) is an initial weight map provided by an embodiment of the present invention;
[0096] Figure 5 (b) is the initial fusion result provided by the embodiment of the present invention;
[0097] Figure 5 (c) is an initial partial enlarged view provided by an embodiment of the present invention;
[0098] Figure 5 (d) is a filtered initial weight map provided by an embodiment of the present invention;
[0099] Figure 5 (e) is the initial fusion result after filtering provided by the embodiment of the present invention;
[0100] Figure 5 (f) is an initial local magnified image after filtering provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0101] The following detailed description of the embodiments of the present invention is further described in detail in conjunction with the accompanying drawings and examples. The detailed description of the following embodiments and the accompanying drawings are used to exemplarily illustrate the principles of the present invention, but cannot be used to limit the scope of the present invention, that is, the present invention is not limited to the preferred embodiments described, and the scope of the present invention is defined by the claims.
[0102] In the description of the present invention, it should be noted that, unless otherwise specified, “plurality” means two or more than two; the terms “first”, “second”, etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance; for ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.
[0103] Figure 1 A schematic diagram of a process of a multi-exposure image fusion method based on low-rank decomposition and sparse representation provided by an embodiment of the present invention, Figure 2 A logical diagram of a multi-exposure image fusion method provided by an embodiment of the present invention, combined with Figure 1 and Figure 2 , a multi-exposure image fusion method based on low-rank decomposition and sparse representation, including:
[0104] Step S11, obtaining an exposure image sequence;
[0105] Step S12, performing color space conversion on the exposure image sequence to obtain a brightness image sequence and a chrominance image sequence;
[0106] The brightness image sequence includes the intensity information and detail information of the exposure image sequence, and the chrominance image sequence includes the chrominance information of the exposure image sequence.
[0107] Most image fusion algorithms process images separately from RGB channels. However, there is a close correlation between RGB channels. Multi-exposure image fusion easily destroys the correlation between channels and introduces color distortion.
[0108] The YCbCr color space adopted by the present invention utilizes brightness information Y and chromaticity information Cb and Cr to represent an image. The separation of brightness information and chromaticity information can reduce the correlation between channels and improve the color retention capability of the fused image.
[0109] In a possible implementation, the exposure image sequence is converted into the YCbCr color space based on the following formula, and the brightness information and the chrominance information are weightedly fused to obtain a brightness image sequence and a chrominance image sequence:
[0110]
[0111] Where R, G, B are the RGB three-channel images of the exposure image sequence, Y is the brightness information of the YCbCr color space, Cb and Cr are the chromaticity information of the YCbCr color space, Cb represents chromaticity red, and Cr represents chromaticity blue.
[0112] Step S13, performing multi-level low-rank decomposition on the brightness image sequence to obtain a basic image sequence and a detail image sequence;
[0113] Existing fusion algorithms often directly perform multi-exposure fusion on images. The image detail information will be disturbed by noise and external factors, resulting in the loss of detail texture information of the fused image and reducing the image quality.
[0114] As a feature extraction algorithm, the low-rank decomposition algorithm in the present invention can use the augmented Lagrangian algorithm to decompose the exposure image sequence into a detail image sequence and a basic image sequence, wherein the detail image sequence represents the detail information of the exposure image sequence and the basic image sequence represents the background information of the exposure image sequence.
[0115] In one possible implementation, a multi-level low-rank decomposition is performed on the brightness image sequence based on the following formula:
[0116] min||Z|| * +||L|| * +λ||E||1
[0117] stY=YZ+LY+E
[0118] V d =L×P(Y)
[0119] Y b =YY d
[0120] Y d =R(V d )
[0121] Where Z is the low-rank coefficient matrix, L is the significant coefficient matrix, E is the sparse noise matrix, R() is the process of reconstructing the significant coefficient matrix into the exposure image sequence, P() is the process of decomposing the exposure image sequence into the significant coefficient matrix, Y is the brightness image sequence, and Y b and Y d are the decomposed base image and detail image respectively, λ is the regularization coefficient, V d is the image saliency coefficient matrix.
[0122] In order to better preserve the image detail information and improve the robustness of the algorithm to environmental noise and external interference, the present invention performs multi-level potential low-rank decomposition on the brightness image, decomposes the basic image obtained by a single decomposition again, and accumulates the multi-level decomposed detail images to obtain the final detail image sequence.
[0123] In a possible implementation, the brightness image sequence after multi-level decomposition is accumulated based on the following formula to obtain a basic image sequence and a detail image sequence:
[0124]
[0125]
[0126]
[0127]
[0128] In the formula, r is the decomposition series, r = [1, 2, ..., R], Y B and Y D They are base image sequence and detail image sequence respectively.
[0129] Figure 3 (a) is an exposure image in the exposure image sequence provided by an embodiment of the present invention. It should be noted that: Figure 3 (a) Actual color image. Figure 3 (b) is the Y channel image information after decomposition of the exposure image provided by the embodiment of the present invention, Figure 3 (c) is the Cb channel image information after decomposition of the exposure image provided by the embodiment of the present invention, Figure 3 (d) is the Cr channel image information after decomposition of the exposure image provided by the embodiment of the present invention, Figure 3 (e) is a basic image after decomposition of the brightness image provided by an embodiment of the present invention, Figure 3 (f) is a detail image after decomposition of the brightness image provided by an embodiment of the present invention.
[0130] Step S14, using the trained convolution dictionary to perform sparse decomposition on the basic image sequence to obtain sparse coefficients;
[0131] As an image processing method, sparse representation has been widely used in the fields of signal processing and image fusion due to its fast operation speed and small amount of operation. Compared with traditional methods, the image sparse coefficients extracted by sparse representation can better reflect the imaging quality of the image. The larger the coefficient, the better the imaging quality of the pixel point and the stronger the ability to retain details. The essence of image sparse representation is to use a convolution dictionary to represent the signal as a sparse coefficient vector set. By multiplying the sparse coefficient with the convolution dictionary, the input signal is represented by a small number of elements.
[0132] In one possible implementation, the convolution dictionary is sparse according to the following formula:
[0133]
[0134]
[0135] In the formula, y is the original signal, D is the convolution dictionary, and d m is the mth atom in the convolution dictionary, x is the sparse coefficient vector of the signal, * is the two-dimensional signal convolution operator, and M is the number of channels in the dictionary.
[0136] As an important factor affecting sparse representation, the convolution dictionary directly affects the accuracy of sparse representation. However, most of the existing dictionary training is for natural images with good exposure, and there is little research on poorly exposed images. In order to improve the completeness of training convolutional dictionaries, this paper adopts an online convolutional dictionary learning method based on approximate sparse components, selects 80 multi-exposure images in complex scenes as training data sets, and uses the improved alternating direction multiplier method to iteratively solve the objective function.
[0137] In one possible implementation, multi-exposure images in complex scenes are used as training data sets, and the convolution dictionary is iteratively solved using an alternating direction multiplier based on the following formula:
[0138]
[0139] Among them, N is the number of training images, Ω() is the constraint set indicator function of the convolution dictionary D, and n is the number.
[0140] Based on the following formula, the trained convolution dictionary is used to perform sparse decomposition on the basic image sequence to obtain the sparse coefficients, and the L1 norm of the sparse coefficients is calculated according to the sparse coefficients:
[0141]
[0142]
[0143] In the formula, and S k are the L1 norms of the sparse coefficients of the k-th exposure image sequence and the k-th exposure image sequence, respectively, λ is the regularization coefficient, D is the convolution dictionary, is the base image sequence, X k,m is the sparse coefficient.
[0144] In one example, the present invention sets the convolution dictionary size to 8X8 and the number of dictionary channels to 32. Figure 4 A convolution dictionary provided by an embodiment of the present invention.
[0145] Step S15, determining a first fusion weight according to the L1 norm of the sparse coefficient, the exposure, contrast and brightness of the basic image sequence, and fusing the basic image sequence according to the first fusion weight to obtain a fused basic image;
[0146] In the multi-exposure image fusion process, the image area with good exposure has richer detail information and color information, and should be given a higher weight. At the same time, the poorly exposed area has problems such as detail loss and color loss, and should be given a lower weight. From the sparse representation, it can be seen that the richer the detail texture and color information contained in the pixel point, the higher the pixel sparse coefficient value.
[0147] In order to better evaluate the exposure degree of the image, this application uses the sparse coefficient as an evaluation index of the image exposure. The basic image sequence is sparsely decomposed using the trained convolution dictionary, and the fusion weight is constructed using the L1 norm of the sparse coefficient. At the same time, in order to reduce the impact of noise on image fusion, the "winner takes all" strategy is used to obtain the exposure weight.
[0148] In the exposed image, the image area with good local contrast often contains richer texture information. Therefore, the present invention uses contrast as a weight fusion factor when constructing the initial weight map. The Laplacian operator L is used as an edge detection operator to better extract the edge texture information of the image. Therefore, the absolute value of the convolution of the Laplacian operator and the base image is used as the contrast weight. At the same time, brightness information, as an important image parameter, directly affects the fusion result of multiple exposure images. The present invention uses a nonlinear Gaussian function as the image brightness weighting function.
[0149] In one possible implementation, the exposure weight is determined based on the contrast of the base image sequence and the L1 norm of the sparse coefficient, the contrast weight is determined based on the absolute value of the convolution of the Laplacian operator and the base image sequence, and the brightness weight is determined based on the nonlinear Gaussian function of the base image sequence.
[0150] Multiply the exposure weight, contrast weight, and brightness weight to get the initial weight map, as shown in the following formula:
[0151]
[0152]
[0153]
[0154]
[0155] In the formula, μ and σ are parameters, W1 k is the exposure weight, W2 k is the contrast weight, W3 k is the brightness weight, is the initial weight map.
[0156] In one example, the μ and σ values are 0.5 and 0.2, respectively.
[0157] Figure 5 (a) is an initial weight map provided by an embodiment of the present invention, Figure 5 (b) is the initial fusion result provided by the embodiment of the present invention, Figure 5 (c) is an initial partial enlarged view provided by an embodiment of the present invention, from Figure 5 It can be seen from (a)-(c) that there is a lot of random noise in the initial weight map, and the fusion result has artifacts in local areas, which affects the fusion result. It should be noted that Figure 5 (b) and Figure 5 (e) Actual color image.
[0158] In order to avoid the interference of random noise on image fusion, the present invention uses the basic image sequence as a guide image and optimizes the initial weights using guided filtering. Figure 5 (d) is a filtered initial weight map provided by an embodiment of the present invention, Figure 5 (e) is the initial fusion result after filtering provided by the embodiment of the present invention, Figure 5 (f) is an initial local enlarged image after filtering provided by an embodiment of the present invention, Figure 5 (d)-(f) show that the refined fusion weights are smoother overall, which removes image noise and suppresses artifacts in the fused image, thus improving the fusion quality.
[0159] In one possible implementation, the base image sequence is used as a guide image, and the initial weights are optimized using guided filtering based on the following formula:
[0160]
[0161]
[0162] In the formula, G γ,ε () is the guided filter, γ and ε are the radius of the filter window and the regularization parameter, respectively. and They are the weight map of the kth base image sequence after filtering and the normalized base fusion weight map respectively.
[0163] In one example, γ and ε are set to 3 and 0.25, respectively.
[0164] In order to avoid the slit interference caused by image fusion, a multi-scale image fusion method based on pyramid decomposition is adopted. The basic image sequence and the basic fusion weight map are decomposed by Laplacian pyramid and Gaussian pyramid respectively. Finally, the pyramid is reconstructed to obtain the fused basic image. The process is as follows:
[0165]
[0166] Where l is the number of pyramid decomposition layers, is the fusion base image, F{} l is the lth level of Gaussian pyramid, L{} l is the lth level of the Laplace pyramid.
[0167] Step S16, using a Gabor filter to extract detail information from the detail image sequence as a second fusion weight, and fusing the detail image sequence according to the second fusion weight to obtain a fused detail image;
[0168] The detail image sequence contains image texture information and brightness distribution. Gabor filtering, as a feature descriptor used to describe texture information, has good sensitivity to detail information and strong robustness to illumination changes. It can extract texture information from poorly exposed areas.
[0169] Therefore, the present application constructs a fusion weight based on Gabor filtering to retain the detailed texture information of the exposure image as much as possible.
[0170] In one possible implementation, based on the fusion weight of Gabor filtering, a multi-scale image fusion method is used to obtain a fused detail image. The process is as follows:
[0171]
[0172]
[0173] sti'=icosθ+jsinθ,j'=-isinθ+jcosθ
[0174]
[0175] Where, mean() is the image mean solution process, (i, j) is the coordinate position of the pixel point, λ is the wavelength of Gabor filtering, θ is the direction of the filter, φ is the phase offset, α is the aspect ratio of the ellipse after Gabor filtering, σ ga is the standard deviation of the Gaussian function in Gabor filtering, and They are the weight map of the kth detail image sequence after filtering and the normalized detail fusion weight map.
[0176] In one example, λ, θ, φ, α, and σ ga Set to 2, 45°, 0.5, 0° and 0.5 respectively.
[0177] The detail image sequence and detail fusion weight map are decomposed by Laplacian pyramid and Gaussian pyramid respectively, and finally the pyramid is reconstructed to obtain the fused detail image. The process is as follows:
[0178]
[0179] Where l is the number of pyramid decomposition layers, To fuse the detail images, F{} l is the lth level of Gaussian pyramid, L{} l is the lth level of the Laplace pyramid.
[0180] Step S17, reconstructing the fused detail image and the fused basic image to obtain a fused brightness image;
[0181] In a possible implementation, reconstruction is performed based on the fused detail image and the fused basic image to obtain a fused brightness image, and the process is as follows:
[0182]
[0183] Where Y final To fuse the brightness image, To fuse the base images, To fuse the detail images.
[0184] Step S18, taking the absolute value of the chromaticity information as the chromaticity fusion weight, performing multi-scale fusion on the chromaticity image and the fused luminance image and performing color space conversion to obtain a fused image.
[0185] When the image is in a well-exposed state, the image brightness information changes little, and the fusion weight based on the brightness information cannot extract the image details, while the color information can well reflect the color changes in the well-exposed area, giving higher weights to the areas with drastic color changes. The value range of the normalized image chromaticity information is [-0.5, 0.5]. The closer the chromaticity value of the pixel is to 0, the less the image color information is, and the imaging result is closer to the grayscale image. Therefore, the larger the absolute value of the chromaticity value, the richer the color information contained in the pixel point. The present invention uses the absolute value of the image chromaticity information as the fusion weight of the chromaticity image.
[0186] In one possible implementation, the chromaticity image and the fused luminance image are fused at multiple scales to obtain a fused chromaticity image. The process is as follows:
[0187]
[0188]
[0189] Convert the fused chromaticity image of the YCbCr channels to the RGB color space using the following formula:
[0190]
[0191] In the formula, Cr final and Cb final is the fused chrominance image, Cr final Represents the chromaticity red in the fused chromaticity image, Cb final Indicates the chromaticity blue in the fused chromaticity image, Y final is the fused brightness image, R final , G final , B final They are the RGB three-channel images of the fused image respectively.
[0192] according to Figure 1-Figure 5 It can be clearly seen that the fusion result of this application has a high contrast, retains the image color information, and has no artifacts or halo phenomena; the overall exposure is moderate, the color information is clearer, and the detailed information inside the desk lamp is well preserved. It can also be seen from the partial enlargement that the method of this application retains the detailed information of the high-exposure area and has a good visual effect.
[0193] The existing multi-exposure fusion algorithm cannot well preserve the image detail information when processing the over-exposure area and under-exposure area of the image, which reduces the visual effect of the fused image. The multi-exposure image fusion method based on low-rank decomposition and sparse representation of the present invention uses multi-level low-rank decomposition to extract the detail image and the basic image of the image, effectively preserving the detail information of the image; secondly, to evaluate the exposure degree of the basic image, the image is sparsely represented to extract the sparse coefficient, and the L1 norm of the sparse coefficient is used to construct the fusion weight map; to evaluate the texture information of the detail image, the Gabor filter is used to perform weighted fusion on the detail image; it can better preserve the detail information of the multi-exposure image and has a better visual effect.
[0194] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A multi-exposure image fusion method based on low-rank decomposition and sparse representation, characterized in that: include: Step S11, obtaining an exposure image sequence; Step S12, performing color space conversion on the exposure image sequence to obtain a brightness image sequence and a chromaticity image sequence; the brightness image sequence includes intensity information and detail information of the exposure image sequence; the chromaticity image sequence includes chromaticity information of the exposure image sequence; Step S13, performing multi-level low-rank decomposition on the brightness image sequence to obtain a basic image sequence and a detail image sequence; Step S14, performing sparse decomposition on the basic image sequence using the trained convolution dictionary to obtain sparse coefficients; Step S15, determining a first fusion weight according to the L1 norm of the sparse coefficient, the exposure, contrast and brightness of the basic image sequence, and fusing the basic image sequence according to the first fusion weight to obtain a fused basic image; Step S16, using a Gabor filter to extract detail information from the detail image sequence as a second fusion weight, and fusing the detail image sequence according to the second fusion weight to obtain a fused detail image; Step S17, reconstructing the fused detail image and the fused basic image to obtain a fused brightness image; Step S18, taking the absolute value of the chromaticity information as a chromaticity fusion weight, performing multi-scale fusion on the chromaticity image and the fused luminance image and performing color space conversion to obtain a fused image.
2. The multi-exposure image fusion method according to claim 1, characterized in that: The S12 includes: The exposure image sequence is converted to the YCbCr color space, and the brightness information and the chrominance information are weightedly fused based on the following formulas to obtain a brightness image sequence and a chrominance image sequence: Where R, G, B are the RGB three-channel images of the exposure image sequence, Y is the brightness information of the YCbCr color space, Cb and Cr are the chromaticity information of the YCbCr color space, Cb represents chromaticity red, and Cr represents chromaticity blue.
3. The multi-exposure image fusion method according to claim 1, characterized in that: The S13 includes: The brightness image sequence is decomposed into multiple levels of low rank based on the following formula: min||Z|| * +||L|| * +λ||E||1 stY=YZ+LY+E V d =L×P(Y) AND b =YY d s.t.Y d =R(V d ) Where Z is the low-rank coefficient matrix, L is the significant coefficient matrix, E is the sparse noise matrix, R() is the process of reconstructing the significant coefficient matrix into the exposure image sequence, P() is the process of decomposing the exposure image sequence into the significant coefficient matrix, Y is the brightness image sequence, and Y b and Y d are the decomposed base image and detail image respectively, λ is the regularization coefficient, V d is the image significant coefficient matrix; Based on the following formula, the brightness image sequence after multi-level decomposition is accumulated to obtain the basic image sequence and the detail image sequence: In the formula, r is the decomposition series, r = [1, 2, ..., R], Y B and Y D They are base image sequence and detail image sequence respectively.
4. The multi-exposure image fusion method according to claim 1, characterized in that: The S14 includes: The convolution dictionary is sparse according to the following formula: In the formula, y is the original signal, D is the convolution dictionary, and d m is the mth atom in the convolution dictionary, x is the sparse coefficient vector of the signal, * is the two-dimensional signal convolution operator, and M is the number of channels in the dictionary.
5. The multi-exposure image fusion method according to claim 4, characterized in that: The S14 also includes: The multi-exposure images in complex scenes are used as training data sets, and the convolution dictionary is iteratively solved based on the following formula using alternating direction multipliers: Where N is the number of training images, Ω() is the constraint set indicator function of the convolution dictionary D, and n is the number; The basic image sequence is sparsely decomposed using the trained convolution dictionary to obtain sparse coefficients, and the L1 norm of the sparse coefficients is calculated based on the following formula: In the formula, and S k are the L1 norms of the sparse coefficients of the k-th exposure image sequence and the k-th exposure image sequence, respectively, λ is the regularization coefficient, D is the convolution dictionary, is the base image sequence, X k,m is the sparse coefficient.
6. The multi-exposure image fusion method according to claim 5, characterized in that: The S15 includes: Determine an exposure weight according to the contrast of the base image sequence and the L1 norm of the sparse coefficient, determine a contrast weight according to an absolute value of a convolution of a Laplacian operator and the base image sequence, and determine a brightness weight according to a nonlinear Gaussian function of the base image sequence; Based on the following formula, the exposure weight, the contrast weight, and the brightness weight are multiplied to obtain an initial weight map: In the formula, μ and σ are parameters, W1 k is the exposure weight, is the contrast weight, is the brightness weight, is the initial weight map.
7. The multi-exposure image fusion method according to claim 6, characterized in that: The S15 further includes: The basic image sequence is used as a guide image, and the initial weight is optimized using guided filtering based on the following formula: In the formula, G γ,ε () is the guided filter, γ and ε are the radius of the filter window and the regularization parameter, respectively. and are the weight map of the kth basic image sequence after filtering and the normalized basic fusion weight map respectively; The basic image sequence and the basic fusion weight map are respectively subjected to Laplacian pyramid decomposition and Gaussian pyramid decomposition, and finally the pyramid is reconstructed to obtain a fused basic image. The process is as follows: Where l is the number of pyramid decomposition layers, is the fusion base image, F{} l is the lth level of Gaussian pyramid, L{} l is the lth level of the Laplace pyramid.
8. The multi-exposure image fusion method according to claim 1, characterized in that: The S16 includes: Based on the fusion weight of Gabor filtering, the fused detail image is obtained by using the multi-scale image fusion method based on the following formula: sti'=icosθ+jsinθ,j'=-isinθ+jcosθ Where, mean() is the image mean solution process, (i, j) is the coordinate position of the pixel point, λ is the wavelength of Gabor filtering, θ is the direction of the filter, φ is the phase offset, α is the aspect ratio of the ellipse after Gabor filtering, σ ga is the standard deviation of the Gaussian function in Gabor filtering, and They are the weight map of the kth detail image sequence after filtering and the normalized detail fusion weight map respectively; The detail image sequence and the detail fusion weight map are respectively subjected to Laplacian pyramid decomposition and Gaussian pyramid decomposition, and the pyramid is reconstructed based on the following formula to obtain a fused detail image: Where l is the number of pyramid decomposition layers, To fuse the detail images, F{} l is the lth level of Gaussian pyramid, L{} l is the lth level of the Laplace pyramid.
9. The multi-exposure image fusion method according to claim 1, characterized in that: The S17 includes: According to the fused detail image and the fused basic image, a fused brightness image is obtained by reconstructing based on the following formula: Where Y final To fuse the brightness image, To fuse the base images, To fuse the detail images.
10. The multi-exposure image fusion method according to claim 1, characterized in that: The S18 includes: The chromaticity image and the fused luminance image are multi-scale fused based on the following formula to obtain a fused chromaticity image: The fused chrominance image of the YCbCr channels is converted to the RGB color space based on the following formula: In the formula, Cr final and Cb final is the fused chrominance image, Cr final Represents the chromaticity red in the fused chromaticity image, Cb final Indicates the chromaticity blue in the fused chromaticity image, Y final is the fused brightness image, R final , G final , B final They are the RGB three-channel images of the fused image respectively.
Citation Information
Patent Citations
A medical image fusion method based on two-layer decomposition and improved spatial frequency
AU2020100199A4
Visible light and infrared image fusion method based on LatLRR and Retinex enhancement
CN113192049A
