A method for improving multispectral image quality based on global iterative fusion
Through the global iterative fusion method and the Gaussian kernel function constrained by meteorological parameters, the problem of inter-band differences and meteorological effects in multispectral images is solved, and better image quality improvement is achieved.
Patent Information
- Application Number
- CN202210080033.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-24
AI Technical Summary
Existing multispectral image quality improvement methods assume that the relationship between adjacent bands is consistent, cannot effectively handle the differences between different bands, and do not consider the impact of meteorological parameters on image quality.
A method based on global iterative fusion is used to preprocess, spatial filter, and iteratively fuse multispectral images, and meteorological parameters are used to constrain the Gaussian kernel function to generate the weight relationship between bands, and perform spatial and spectral fusion operations to obtain the optimal parameters to improve image quality.
By incorporating atmospheric features into the spectral image quality improvement framework, a better spectral image quality improvement effect is obtained, which significantly improves the clarity and gradient information of the image.
Smart Images

Figure CN114463206B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of multispectral image quality improvement, and in particular relates to a multispectral image quality improvement method based on global iterative fusion. Background Art
[0002] The purpose of image restoration is to restore a clear image from a degraded image. In recent years, domestic and foreign researchers have proposed a large number of methods to improve the quality of spectral images. The existing methods can be divided into three categories: methods based on the spectral domain, methods based on the spatial domain, and methods based on the spatial-spectral domain. The spectral domain-based method regards the spectral image as a collection of several spectral curves, and the quality improvement process is equivalent to operating on each spectral curve in the spectral domain. The spatial domain-based method utilizes the redundant information of the spectral image in the spatial domain and regards each band of the spectral image as a different grayscale image. The quality improvement process is equivalent to improving the quality of each band of the spectral image in the spatial domain. The spatial-spectral domain-based method considers the information of the spectral dimension and the spatial dimension of the spectral image at the same time, and can improve the image quality in both the spectral dimension and the spatial dimension.
[0003] However, a drawback of the above methods is that most of them assume that the relationship between adjacent bands is consistent, including the attribute characteristics of the bands themselves and the interference information introduced by various factors. But in the actual application process, the relationship between different bands in the spectral image and the interference conditions are different, so it is necessary to adopt different processing methods for different bands. In addition, it is not clear how meteorology affects image quality, and there is currently no image dataset containing the corresponding meteorological parameters. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a method for improving the quality of multispectral images based on global iterative fusion. The present invention incorporates the influence of atmospheric characteristics on spectral images into the overall framework of spectral image quality improvement, and uses it to characterize the relationship information between different spectral bands, thereby obtaining a better spectral image quality improvement effect.
[0005] In order to achieve the above object, the technical solution provided by the present invention is a multispectral image quality improvement method based on global iterative fusion, comprising the following steps:
[0006] Step 1, preprocessing the multispectral image;
[0007] Step 2, performing spatial filtering on the preprocessed single-band spectral image;
[0008] Step 3, performing spatial iterative fusion on the filtered single-band spectral image;
[0009] Step 4, obtaining the best parameters for improving image quality through image quality evaluation;
[0010] Step 5: Use the optimal parameters obtained in step 4 to improve the quality of the multispectral image.
[0011] Moreover, the spectral image collected by the multispectral camera in step 1 is the information of all N bands superimposed on one image, that is, the pixels in the real scene are represented in the collected image as Each pixel in the block represents the intensity information of N bands corresponding to the coordinates in the spatial dimension. In order to facilitate post-processing, the spectral image is segmented to obtain N single-band spectral images.
[0012] Moreover, in step 2, the Laplace operator is used to perform filtering operations on each band, and the Laplace operator calculation formula is as follows:
[0013]
[0014] Where f(x,y) represents the degraded image, and x and y represent the positions of pixels.
[0015] Formula (1) can be approximately expressed as:
[0016]
[0017] From this we get:
[0018]
[0019] In the formula, Represents the operation of finding the gradient, G(x,y) represents the restored clear image, f(x,y) represents the degraded image, x and y are the positions of the pixels, and c represents the mask.
[0020] Moreover, in step 3, a Gaussian kernel function is used to approximate the original clear image, and then the parameters of the Gaussian kernel function are constrained by the meteorological parameters. The parameters of the Gaussian kernel function are defined as follows:
[0021]
[0022] In the formula, σ m Represents the parameters of the Gaussian kernel function; Represents meteorological parameters, i is the number of meteorological parameters; c m is the mth row of the coefficient matrix c, c=[c1,...,c m ,...,c M ], M is the enumeration number, c m contains i elements, namely c m =[c m1,c m2 ,...,c mi ].
[0023] After obtaining the parameters of the Gaussian kernel function, the weight relationship between the multispectral image bands is generated using the parameters:
[0024] ω=Gaussian(bands,σ) (5)
[0025] In the formula, bands represents the number of bands of the multispectral image, and ω represents the weight of the Gaussian function, which is calculated as follows:
[0026]
[0027] In the formula, ω i Represents the weight of the i-th band.
[0028] After setting the weight function, calculate the single-band image after spatial fusion according to the result of spatial filtering in step 2:
[0029]
[0030] In the formula, I fusion represents the single-band image after spatial fusion, G(x,y) represents the restored clear image, Represents the gradient of the restored sharp image.
[0031] Then perform spatial iterative fusion:
[0032] I fusion,i =I fusion,i-1 +I fusion,i-1 ×ω i (8)
[0033] Where i represents the i-th band, 1≤i≤N, and N represents the total number of bands; I fusion,i represents the single-band image after the i-th iteration fusion, I fusion,0 is the single-band image after spatial fusion obtained by formula (7); ω i Represents the weight of the i-th band.
[0034] When i=N, the iteration stops, I fusion,N This is the final iteratively fused single-band image. Using formula (8), we can obtain a multispectral single-band image after multiple spatial fusions. By performing spatial filtering and spectral image fusion operations on all bands of the multispectral image, we can obtain a single-band image after iterative fusion of all bands.
[0035] Furthermore, two sets of gradient changes are defined in step 4:
[0036] img_row(x,y)=|I fusion,N (x+1,y)-I fusion,N (x,y)| (9)
[0037] img_col(x,y)=|I fusion,N (x,y+1)-I fusion,N (x,y)| (10)
[0038] In the formula, I fusion,N (x, y) represents the pixel value at (x, y) of the multispectral single-band image after iterative fusion, img_row(x, y) and img_col(x, y) represent the gradient change values in the horizontal and vertical directions at the pixel position (x, y), respectively.
[0039] Combining two different no-reference evaluation methods, the first method is:
[0040]
[0041] The second method is:
[0042]
[0043] Where W and H are the length and width of the image, n is the number of pixels contained in the single-band image, and Grad1 and Grad2 represent the image gradient information respectively.
[0044] Combining the advantages of the above two methods, we can get formula (13):
[0045] Grad=[Grad1,Grad2] (13)
[0046] Formulas (9) to (13) are used to obtain the gradient values of each single-band spectral image after iterative fusion. The gradient values of the single-band images obtained by the two methods are normalized so that they are all within the same range:
[0047]
[0048] In the formula, i is 1 or 2.
[0049] Combining the advantages of the two gradient methods, the sum operation of the two gradient methods is performed:
[0050] Γ=Grad1+Grad2 (15)
[0051] Formula (15) is used to sum the gradients of the spectral image after the quality of a single band is improved, and the gradient of the multispectral image after the quality of the entire image is improved is calculated:
[0052]
[0053] In the formula, Grad final ={(Grad final )1,(Grad final )2,...,(Grad final ) M} is the gradient sum of the entire multispectral image, M represents the enumeration number of the enumeration algorithm; N represents the number of bands.
[0054] By Grad final The maximum value of can be reversed to obtain the optimal coefficient matrix row vector
[0055] Moreover, in step 5, the row vector of the optimal coefficient matrix obtained in step 4 is Update the parameters of the best Gaussian kernel function
[0056]
[0057] In the formula, Represents meteorological parameters.
[0058] Using the obtained Gaussian kernel function parameters Update equation (6) to obtain the new Gaussian distribution weight Then use equations (3), (7) and (8) to get the new Finally, the improved single-band spectral images are obtained.
[0059] Compared with the prior art, the present invention has the following advantages: the influence of atmospheric characteristics on spectral images is incorporated into the overall framework of spectral image quality improvement, and the relationship information between different spectral bands is characterized, thereby obtaining a better spectral image quality improvement effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a flow chart of an embodiment of the present invention.
[0061] Figure 2 This is the overall algorithm framework of the embodiment of the present invention.
[0062] Figure 3 This is a flow chart of spectral dimension fusion and spatial dimension fusion in an embodiment of the present invention.
[0063] Figure 4 These are experimental results of three multispectral images of different scenes in an ablation experiment in an embodiment of the present invention. The first row is the original image, and the second row is the result obtained by the method proposed in the present invention.
[0064] Figure 5This is the visualization result of the comparative experiment between the method proposed in this invention and several other methods. DETAILED DESCRIPTION
[0065] The present invention provides a method for improving multispectral image quality based on global iterative fusion. The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0066] like Figure 1 As shown, the process of the embodiment of the present invention includes the following steps:
[0067] Step 1: preprocess the multispectral image.
[0068] The spectral image collected by the multispectral camera is the information of all 25 bands superimposed on one image, that is, the pixels in the real scene are represented as 5×5 area blocks in the collected image, and each pixel in the block represents the intensity information of the 25 bands corresponding to the coordinates in the spatial dimension. 5W×5H The multispectral image acquired in space is expressed as R according to the corresponding relationship W×H×25 The three-dimensional matrix block in the space, W and H represent the width and height of the spectral image respectively, and the number of bands of the multispectral image is 25. In order to facilitate post-processing, the spectral image is segmented to obtain 25 single-band spectral images.
[0069] Step 2: perform spatial filtering on the preprocessed single-band spectral image.
[0070] In order to improve the quality of a single band of a multispectral image, filtering operations are performed in the spatial dimension. Since the image of each band has a certain degree of degradation, the image edge enhancement method is used to enhance the edge information. The Laplace operator is used to filter each band, which can not only enhance the image edge information to obtain a clearer image, but also maintain the properties of the image itself.
[0071] The Laplace operator calculation formula is as follows:
[0072]
[0073] Where f(x,y) represents the degraded image, and x and y represent the positions of pixels.
[0074] Formula (1) can be approximately expressed as:
[0075]
[0076] From this we get:
[0077]
[0078] In the formula, Represents the operation of finding the gradient, G(x,y) represents the restored clear image, f(x,y) represents the degraded image, x and y are the positions of the pixels, and c represents the mask.
[0079] Step 3: Perform spatial iterative fusion on the filtered single-band spectral image.
[0080] A Gaussian kernel function is used to approximate the original clear image (ie, the true value), and then meteorological parameters are used to constrain the parameters of the Gaussian kernel function.
[0081] The parameters of the Gaussian kernel function are defined as follows:
[0082]
[0083] In the formula, σ m Represents the parameters of the Gaussian kernel function; Represents meteorological parameters, i is the number of meteorological parameters, which in this embodiment include six meteorological parameters: wind speed, wind direction, temperature, humidity, visibility and atmospheric pressure; c m is the mth row of the coefficient matrix c, c=[c1,...,c m ,...,c M ], M is an enumeration number, in this embodiment, M=100, c m contains i elements, namely c m =[c m1 ,c m2 ,...,c mi ].
[0084] After obtaining the parameters of the Gaussian kernel function, the weight relationship between the multispectral image bands is generated using the parameters:
[0085] ω=Gaussian(bands,σ) (5)
[0086] Wherein, bands represents the number of bands of the multispectral image, and in this embodiment, the value is 25; ω represents the weight of the Gaussian function, and the calculation method is as follows:
[0087]
[0088] In the formula, ω i Represents the weight of the i-th band.
[0089] After setting the weight function, calculate the single-band image after spatial fusion according to the result of spatial filtering in step 2:
[0090]
[0091] In the formula, I fusionrepresents the single-band image after spatial fusion, G(x,y) represents the restored clear image, Represents the gradient of the restored sharp image.
[0092] Then perform spatial iterative fusion:
[0093] I fusion,i =I fusion,i-1 +I fusion,i-1 ×ω i (8)
[0094] Wherein, i represents the i-th band, 1≤i≤N, N represents the total number of bands, and in this embodiment, N is 25; fusion,i represents the single-band image after the i-th iteration fusion, I fusion,0 is the single-band image after spatial fusion obtained by formula (7); ω i Represents the weight of the i-th band.
[0095] When i=N, the iteration stops, I fusion,N This is the final iteratively fused single-band image. Using formula (8), we can obtain a multispectral single-band image after multiple spatial fusions. By performing spatial filtering and spectral image fusion operations on all bands of the multispectral image, we can obtain a single-band image after iterative fusion of all bands.
[0096] Step 4: Obtain the best parameters for improving image quality through image quality evaluation.
[0097] A series of edge-enhanced single-band spectral images can be obtained by step 2 and step 3, and the image improvement effect needs to be evaluated to obtain the best clear image. In image processing, it is generally believed that images with better quality have sharper edges and larger gradient values. Therefore, in the quality evaluation of the reference-free image, the present invention mainly considers the richness of the image gradient information.
[0098] Define two sets of gradient changes:
[0099] img_row(x,y)=|I fusion,N (x+1,y)-I fusion,N (x,y)| (9)
[0100] img_col(x,y)=|I fusion,N (x,y+1)-I fusion,N (x,y)| (10)
[0101] In the formula, I fusion,N(x, y) represents the pixel value at (x, y) of the multispectral single-band image after iterative fusion, img_row(x, y) and img_col(x, y) represent the gradient change values in the horizontal and vertical directions at the pixel position (x, y), respectively.
[0102] Combining two different no-reference evaluation methods, the first method is:
[0103]
[0104] The second method is:
[0105]
[0106] Where W and H are the length and width of the image, n is the number of pixels contained in the single-band image, and Grad1 and Grad2 represent the image gradient information respectively.
[0107] Combining the advantages of the above two methods, we can get formula (13):
[0108] Grad=[Grad1,Grad2] (13)
[0109] Formulas (9) to (13) are used to obtain the gradient values of each single-band spectral image after iterative fusion.
[0110] The gradient values of the single-band images obtained by the two methods are normalized so that they are all within the same range:
[0111]
[0112] In the formula, i is 1 or 2.
[0113] Combining the advantages of the two gradient methods, a sum operation is performed on the two gradient methods:
[0114] Γ=Grad1+Grad2 (15)
[0115] Formula (15) is used to sum the gradients of the spectral image after the quality of a single band is improved, and the gradient of the multispectral image after the quality of the entire image is improved is calculated:
[0116]
[0117] In the formula, Grad final ={(Grad final )1,(Grad final )2,...,(Grad final ) M} is the gradient sum of the entire multispectral image, M represents the enumeration number of the enumeration algorithm, and in this embodiment, the value is 100; N represents the number of bands, and in this embodiment, the value is 25.
[0118] By Grad final The maximum value of can be reversed to obtain the optimal coefficient matrix row vector
[0119] Step 5: Use the optimal parameters obtained in step 4 to improve the quality of the multispectral image.
[0120] The row vector of the optimal coefficient matrix obtained in step 4 Update the parameters of the best Gaussian kernel function
[0121]
[0122] In the formula, Represents meteorological parameters.
[0123] Using the obtained Gaussian kernel function parameters Update equation (6) to obtain the new Gaussian distribution weight Then use equations (3), (7) and (8) to get the new Finally, the improved single-band spectral images are obtained.
[0124] In order to evaluate the effectiveness of the method proposed in the present invention, ablation experiments were first carried out by controlling the presence or absence of near-surface meteorological parameters, and then the method proposed in the present invention was compared with other six representative deblurring algorithms (including Chen et al. Pan1et al. Yan et al. Pan2 et al. Bai et al. and Wen et al.).
[0125] Table 1
[0126]
[0127] Table 1 shows the average values of BRISQUE and NIQE in three scenes. BRISQUE and NIQE are two no-reference image quality evaluation algorithms. ω / o means that no meteorological parameters are added to the algorithm, and ω means that meteorological parameters are added to the algorithm. This shows that the algorithm with meteorological parameters added has the best effect in the three scenes, that is, the method proposed in the present invention is effective.
[0128] Figure 4 The experimental results of three multispectral images in the ablation experiment, the first row is the original image, and the second row is the result obtained by the method proposed in the present invention. Figure 4The text in the image obtained by the method proposed by the present invention in (a) is clearer. Figure 4 (b) The method proposed by the present invention successfully repairs the texture of the image. Figure 4 (c) The method proposed in this invention can well restore the details of the tree and pipeline in the image.
[0129] Table 2
[0130]
[0131] Table 2 shows the BRISQUE values of each channel in scenario 1 for the method proposed by the present invention and other methods.
[0132] The results confirm that the algorithm of the present invention has the best effect in improving image quality by adding meteorological parameters.
[0133] Table 3
[0134]
[0135] Table 3 shows the average BRISQUE values of each channel of the algorithm of the present invention and other algorithms in scene 2 and scene 3. The results confirm that the algorithm of the present invention has the best effect in improving image quality by adding meteorological parameters.
[0136] Table 4
[0137]
[0138] Table 4 shows the average NIQE values of different channels in three scenes for the method of the present invention and other methods of the present invention. The results confirm that the algorithm of the present invention has the best effect in improving image quality by adding meteorological parameters.
[0139] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A method for improving multispectral image quality based on global iterative fusion, characterized in that: The steps include: Step 1, preprocessing the multispectral image; Step 2, performing spatial filtering on the preprocessed single-band spectral image; Step 3, performing spatial iterative fusion on the filtered single-band spectral image; The weight relationship between the multispectral image bands is generated by using the Gaussian kernel function with meteorological parameter constraints. The gradient of the image is subtracted from the clear image restored after spatial filtering in step 2 to obtain a single-band image after spatial fusion, namely: In the formula, I fusion represents the single-band image after spatial fusion, G(x,y) represents the clear image restored by spatial filtering, Represents the gradient of the clear image restored by spatial filtering; Then perform spatial iterative fusion on the single-band images after spatial fusion: I fusion,i =I fusion,i-1 +I fusion,i-1 ×ω i (8) Where i represents the i-th band, 1≤i≤N, and N represents the total number of bands; I fusion,i represents the single-band image after the i-th iteration fusion, I fusion,0 is the single-band image after spatial fusion obtained by formula (7); ω i represents the weight of the i-th band; When i=N, the iteration stops, I fusion,N That is the final iteratively fused single-band image. Using formula (8), we can obtain a multispectral single-band image after multiple spatial fusions. By performing spatial filtering and spectral image fusion operations on all bands of the multispectral image, we can obtain a single-band image after iterative fusion of all bands. Step 4, obtaining the best parameters for improving image quality through image quality evaluation; Step 5: Use the optimal parameters obtained in step 4 to improve the quality of the multispectral image.
2. The method for improving multispectral image quality based on global iterative fusion according to claim 1, characterized in that: The spectral image collected by the multispectral camera in step 1 is the information of all N bands superimposed on one image, that is, the pixels in the real scene are represented in the collected image as Each pixel in the regional block represents the intensity information of N bands corresponding to the coordinates in the spatial dimension. In order to facilitate post-processing, the spectral image is segmented to obtain N single-band spectral images.
3. The method for improving multispectral image quality based on global iterative fusion according to claim 1, characterized in that: In step 2, the Laplace operator is used to filter each band. The calculation formula of the Laplace operator is as follows: Where f(x,y) represents the degraded image, x and y represent the pixel positions; Formula (1) can be approximately expressed as: From this we get: In the formula, represents the operation of finding the gradient, G(x,y) represents the clear image restored by spatial filtering, f(x,y) represents the degraded image, x and y are the positions of pixels, and c represents the mask.
4. The method for improving multispectral image quality based on global iterative fusion as claimed in claim 3, characterized in that: In step 3, a Gaussian kernel function is used to approximate the original clear image, and then the parameters of the Gaussian kernel function are constrained by meteorological parameters. The parameters of the Gaussian kernel function are defined as follows: In the formula, σ m Represents the parameters of the Gaussian kernel function; Represents meteorological parameters, i is the number of meteorological parameters; c m is the mth row of the coefficient matrix c, c=[c1,...,c m ,...,c M ], M is the enumeration number, c m contains i elements, namely c m =[c m1 ,c m2 ,...,c mi ]; After obtaining the parameters of the Gaussian kernel function, the weight relationship between the multispectral image bands is generated using the parameters: ω=Gaussian(bands,σ) (5) In the formula, bands represents the number of bands of the multispectral image, and ω represents the weight of the Gaussian function, which is calculated as follows: In the formula, ω i Represents the weight of the i-th band.
5. The method for improving multispectral image quality based on global iterative fusion according to claim 4, characterized in that: In step 4, two sets of gradient changes are defined: img_row(x,y)=|I fusion,N (x+1,y)-I fusion,N (x,y)| (9) img_col(x,y)=|I fusion,N (x,y+1)-I fusion,N (x,y)| (10) In the formula, I fusion,N (x, y) represents the pixel value at (x, y) of the multispectral single-band image after iterative fusion, img_row(x, y) and img_col(x, y) represent the gradient change values in the horizontal and vertical directions at the pixel position (x, y), respectively; Combining two different no-reference evaluation methods, the first method is: The second method is: Where W and H are the length and width of the image, n is the number of pixels contained in the single-band image, and Grad1 and Grad2 represent the image gradient information respectively; Combining the advantages of the above two methods, we can get formula (13): Grad=[Grad1,Grad2] (13) Formulas (9) to (13) are used to obtain the gradient values of each single-band spectral image after iterative fusion. The gradient values of the single-band images obtained by the two methods are normalized so that they are in the same range: In the formula, i is 1 or 2; Combining the advantages of the two gradient methods, the sum operation of the two gradient methods is performed: Γ=Grad1+Grad2 (15) Formula (15) is used to sum the gradients of the spectral image after the quality of a single band is improved, and the gradient of the multispectral image after the quality of the entire image is improved is calculated: In the formula, Grad final ={(Grad final )1,(Grad final )2,...,(Grad final ) M } is the gradient sum of the entire multispectral image, M represents the enumeration number of the enumeration algorithm; N represents the number of bands; By Grad final The maximum value of can be reversed to obtain the optimal coefficient matrix row vector 6. The method for improving multispectral image quality based on global iterative fusion according to claim 5, characterized in that: In step 5, the row vector of the optimal coefficient matrix obtained in step 4 is Update the parameters of the best Gaussian kernel function In the formula, Indicates meteorological parameters; Using the obtained Gaussian kernel function parameters Update equation (6) to obtain the new Gaussian distribution weight Then use equations (3), (7) and (8) to get the new Finally, the improved single-band spectral images are obtained.
