Hyperspectral image restoration method based on dual gradient constraints
By introducing a dual gradient constraint restoration method in hyperspectral images, using pseudo l1,0 norm and improved SSTV regularization term, combined with the ALM algorithm, the problems of blocky artifacts and detail loss in the denoising process in the existing technology are solved. problem, achieving better denoising effect and robustness.
Patent Information
- Application Number
- CN202111473098.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-02
AI Technical Summary
Existing hyperspectral image denoising methods are prone to block artifacts when removing noise, cannot effectively retain image details, especially edge structures, and have high computational costs.
A hyperspectral image restoration method based on dual gradient constraints is used to construct a spatial spectral L0 gradient model and an improved L1-2SSTV regular term through the pseudo-l1,0 norm definition, combined with the ALM algorithm to impose sparse constraints in the spatial and spectral gradient domains of the image. Reduce computational burden, avoid decomposition steps, and achieve denoising effects.
Effectively suppress block artifacts, retain more image details, especially edge structures, reduce computational costs, and improve the robustness and universality of denoising effects.
Smart Images

Figure CN114359064B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image restoration, in particular to a hyperspectral image restoration method based on dual gradient constraints. Background Art
[0002] Hyperspectral images are generated by connecting images obtained by high spectral resolution sensors at the same position in series. They can reflect rich information in real scenes and have been widely used in agriculture, military, environmental monitoring, food and other fields. However, due to various limitations of imaging systems and environments, the obtained hyperspectral images are always inevitably contaminated by various types of noise, such as Gaussian noise, impulse noise, dead line noise and stripe noise. Therefore, most applications require denoising as an important preprocessing step.
[0003] In recent years, scholars at home and abroad have proposed many different hyperspectral image denoising methods. The most direct way is to treat each band of the hyperspectral image as an independent gray image and apply a two-dimensional gray image denoising method. For example: wavelet transform algorithm, non-local mean algorithm, principal component analysis algorithm, etc. However, this type of method has a major flaw in that it ignores the consistency between adjacent bands or pixels and cannot guarantee complete spectral information.
[0004] In order to better adapt to the complex mixed noise in real situations, some scholars consider making full use of the internal information of hyperspectral images and encoding their prior knowledge to obtain a denoising model with better performance. For example, the denoising algorithm based on the total variation (TV) model can effectively retain the edge details of the hyperspectral image. Patent CN112950500ACN proposes a hyperspectral denoising method based on a low-rank total variation model based on edge detection; Patent CN108133465A uses local image information to propose a spatial spectral weighted total variation model; Patent CN109191404A improves the original total variation model and proposes a denoising model based on E3DTV. Although the above method can effectively retain the edge of the image, it is limited by the l1 norm, and the denoising result often produces blocky artifacts. In order to avoid the limitations of the total variation model based on the l1 norm, the present invention introduces a denoising model based on l1 norm. 1-2 The three-dimensional total variation weighted difference model of the TV model imposes more powerful sparse constraints on the image space and spectral gradient domains, effectively suppressing the generation of artifacts.
[0005] Low-rank prior models have also been widely used in hyperspectral denoising in recent years. Low-rank-based methods mainly represent hyperspectral images by constructing a set of bases and expression coefficients under the bases, sparsely expressing the main information of the hyperspectral image, thereby achieving the purpose of separating noise and clean data. Patent CN111598795A uses the low-rank information in the image to propose a hyperspectral denoising method based on tensor ring decomposition; Patent CN111951181A uses the weighted truncated nuclear norm to approximate the low-rank prior of the hyperspectral image, thereby achieving better denoising effect. Although these methods can achieve good denoising effects, high-cost calculations such as singular value decomposition are usually involved in the decomposition process. In order to reduce the computational burden of the denoising algorithm and avoid the decomposition step, this patent proposes a method of combining the total variation model with the L0 gradient model, fully considering the internal structural information of the hyperspectral image, and realizing the dual constraints on the image gradient domain.
[0006] Although the current existing technology constructs models based on prior knowledge of hyperspectral images, the denoising effect still has certain limitations. Therefore, finding prior knowledge and its encoding method that fully expresses the hyperspectral image information is very important for promoting the performance of hyperspectral image restoration methods. Summary of the invention
[0007] The purpose of the present invention is to provide a hyperspectral image restoration method based on dual gradient constraints which has stronger constraints on the sparsity of the spatial spectral gradient domain, can effectively suppress block artifacts in the denoising process, and retain more image details.
[0008] To achieve the above object, the present invention adopts the following technical solution: a hyperspectral image restoration method based on dual gradient constraints, the method comprising the following steps in order:
[0009] (1) Input the noise-contaminated hyperspectral image T∈R mn×d , the hyperspectral image T is decomposed into T = X + S + N, where X∈R mn×d is the original clean hyperspectral image not contaminated by noise, S∈R mn×d is sparse noise, N∈R mn×d is a Gaussian noise image, R represents the real number domain space, m and n are the spatial dimensions, and d is the spectral number;
[0010] (2) Using pseudo l 1,0 The norm definition constructs a pseudo-l-based model that is mathematically equivalent to the L0 gradient model. 1,0 Empty Spectral L0 Gradient Model of Norm Forming the first constraint on the image gradient domain;
[0011] (3) Constructing the three-dimensional total variation weighted difference regularization term L 1-2SSTV, forms the second constraint on the image gradient domain;
[0012] (4) Combine the spatial spectrum L0 gradient and L 1-2 The SSTV regularization term is used to establish a hyperspectral image restoration model with dual gradient constraints on hyperspectral images. The restoration model is iteratively solved until it is stable under the ALM algorithm framework to obtain the denoised restored image.
[0013] The first constraint on the image gradient domain in step (2) specifically includes the following steps:
[0014] (2a) Clearly define l 1,0 Pseudo-norm definition: the number of sub-vectors whose l1 norm is not zero;
[0015] (2b) By l 1,0 The definition of the norm writes the mathematical equivalent of the L0 gradient model as: Where D = [D i ,D j ,D k ] are denoted as the periodic boundary conditions corresponding to the linear difference operators in the horizontal, vertical and spectral directions; B is a double diagonal matrix with elements on the diagonal being 0 or 1, which is used to force the difference value at the defined boundary to be 0.
[0016] In step (3), the second constraint on the image gradient domain specifically includes the following steps:
[0017] (3a) Introducing the one-dimensional difference operator D along the spectral direction z , extending the two-dimensional isotropic and anisotropic total variation model to the three-dimensional spectral isotropic Heterotropic Total Variation Model;
[0018] (3b) With parameter α∈[0,1] as the weight factor, the following improved spatial spectrum total variation L is constructed: 1-2 SSTV Model:
[0019]
[0020] In step (4), the hyperspectral image restoration model with dual gradient constraints on the hyperspectral image is as follows:
[0021]
[0022] Among them, λ1 and λ2 are adjustment parameters, which impose a norm on the sparse noise S to constrain it; D h is the horizontal difference operator; D v is the vertical difference operator; D z is a one-dimensional difference operator along the spectral direction.
[0023] The step (4) is solved under the ALM algorithm framework and specifically includes the following steps:
[0024] (4a) Using the DCA algorithm to rewrite the optimization function, the non-convex optimization function is transformed into a convex optimization function with a local closed solution;
[0025] (4b) Introducing auxiliary variables P, Q, and V, the augmented Lagrangian function of the optimization model is as follows:
[0026]
[0027] Among them, y1, y2, y3 are Lagrange multipliers, β is the penalty parameter, and c1 is a constant;
[0028] (4c) The augmented Lagrangian function is transformed into sub-problems related to five variables, and an iterative format for solving each unknown variable is established;
[0029] (4d) The soft threshold shrinkage algorithm is used to update the sub-problems regarding variables X, S, P, Q, and V to obtain the final denoised hyperspectral restored image.
[0030] It can be seen from the above technical scheme that the beneficial effects of the present invention are: first, the present invention has a stronger constraint on the sparsity of the spatial spectral gradient domain of the hyperspectral image. Compared with the traditional l1 norm-based method, it can effectively suppress the block artifacts generated in the denoising process and retain more image details; second, the present invention introduces the L0 gradient model, which can well preserve the edge structure of the image in the denoising process, produce sharp edges, and avoid the over-smoothing phenomenon caused by the limitations of the total variation model itself; third, the present invention has strong robustness and universality, and the dual gradient constraint model can be flexibly interspersed in other denoising models for use in combination. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of the method of the present invention;
[0032] Figure 2(a) is a noise-free image of Washington DC Mall with a size of 200×200×160 and band 61;
[0033] Figure 2(b) is a low-quality image after adding noise;
[0034] Figure 2 (c) shows the BM4D denoising result;
[0035] Figure 2 (d) shows the LRMR denoising result;
[0036] Figure 2 (e) shows the LRTV denoising result;
[0037] Figure 2 (f) shows the LRTDTV denoising result;
[0038] FIG. 2 (g) shows the L0-L proposed by the present invention. 1-2 Denoising results of the restored image of the SSTV model;
[0039] Figure 3 (a) shows a real image of the HYDICE Urban dataset with a size of 207×207×210 in band 139;
[0040] Figure 3 (b) shows the BM4D denoising result;
[0041] Figure 3 (c) shows the LRMR denoising result;
[0042] Figure 3 (d) shows the LRTV denoising result;
[0043] Figure 3 (e) shows the LRTDTV denoising result;
[0044] FIG. 3 (f) shows the L0-L proposed by the present invention. 1-2 Restoration image denoising results of the SSTV model. DETAILED DESCRIPTION
[0045] like Figure 1 As shown, a hyperspectral image restoration method based on dual gradient constraints includes the following steps in order:
[0046] (1) Input a noise-contaminated hyperspectral image Among them, m and n are spatial dimensions, d is the spectral number, Expand along the spectral dimension to obtain its matrix expression: T∈R mn×d ; The matrix T is decomposed into T = X + S + N, where X∈R mn×d is the original clean hyperspectral image not contaminated by noise, S∈R mn×d is sparse noise, N∈R mn×d is a Gaussian noise image, and R represents the real number domain space;
[0047] (2) Constructing the spatial spectrum L0 gradient model: for hyperspectral images Calculate image gradient band by band Count the non-zero gradients and sum the count results of each band to establish the empty spectrum L0 gradient model In order to unify the expression form of variables in the optimization model, that is, to express variables in matrix form, the pseudo-l 1,0 Norm and construct with Mathematically equivalent matrix-based models In the subsequent construction of the optimization model, use express,
[0048] (3) Constructing an improved SSTV regularization term: applying a one-dimensional finite difference operator along the spectral direction to the two-dimensional isotropic and anisotropic total variation model, introducing the parameter α as the weight of the three-dimensional isotropic and anisotropic total variation weighted difference, and establishing an improved SSTV regularization term that combines spatial information with spectral information;
[0049] (4) The spatial spectrum L0 gradient model is combined with the improved SSTV model to perform double gradient constraints on the hyperspectral image gradient domain, and a hyperspectral image restoration model based on the spatial spectrum L0 gradient and the improved SSTV regularization term is established;
[0050] (5) Using the DCA algorithm on the hyperspectral image restoration model, the nonlinear terms in the hyperspectral image restoration model are linearized to obtain a linearized restoration model;
[0051] (6) According to step (5), the linearized restoration model is iteratively solved using the ALM algorithm framework until the iteration is stable, thereby obtaining a denoised restoration image.
[0052] In step (2), the empty spectrum L0 gradient model is established Specifically:
[0053] First, the local smoothing information in the spatial domain of the hyperspectral image is used to calculate the gradient of the image band by band. The definition is as follows:
[0054]
[0055] Among them, i, j, k are the coordinates of the space and spectral directions corresponding to the hyperspectral image, represents the gradient on the kth band, represents the pixel value of the hyperspectral image at position (i, j, k), represents the gradient operator in the horizontal direction, Represents the gradient operator in the vertical direction;
[0056] The counting operator C(·) is introduced to count the non-zero gradients on each band and sum the counting results of all bands to establish a spatial spectrum L0 gradient model that combines spatial and spectral information:
[0057]
[0058] The improved SSTV regularization term constructed in step (3) specifically refers to:
[0059] First, by introducing a one-dimensional difference operator D along the spectral direction z, the two-dimensional isotropic and anisotropic total variation model is extended to the three-dimensional spatial spectral domain. Heterotropic Total Variation The model looks like this:
[0060]
[0061]
[0062] Among them, D x , D y Respectively represent the two-dimensional horizontal and vertical difference operators along the spatial direction, and the one-dimensional difference operator D z ∈R d×d The spectral signal b∈R applied to any pixel d×1 Middle, b i The spectral gradient at is defined as: η i =(D T b) i =b i+1 -b i , the boundary satisfies η d =0;
[0063] Introducing parameter α∈[0,1] as a weight factor, making a weighted difference between the isotropic and anisotropic total variation extended to three dimensions, and constructing the following improved spatial spectrum total variation L 1-2 SSTV Model:
[0064]
[0065] In step (4), the spatial spectrum L0 gradient model is combined with the improved SSTV model, and the regular form of the double gradient constraint on the hyperspectral image gradient domain is as follows:
[0066]
[0067] Among them, L0 is one type of norm;
[0068] Based on the dual gradient constraints in the gradient domain, the established hyperspectral image restoration optimization model is as follows:
[0069]
[0070] Among them, λ1 and λ2 are adjustment parameters, which are used to coordinate the compromise between the improved SSTV regularization term and the error term, and impose a norm on the sparse noise S to constrain it; D h is the horizontal difference operator; D v is the vertical difference operator;
[0071] The step (5) specifically comprises the following steps:
[0072] (5a) Rewrite the optimization function: F(X) = G(X) - H(X), where
[0073] c1 is a positive constant to ensure the strong convexity of H(X) and G(X);
[0074] (5b) From the starting point X 0 Initially, the DCA algorithm repeatedly constructs the following sequence in the wth iteration:
[0075]
[0076] in, Denoted as H(X) at point X ω The sub-gradient at
[0077] (5c) After H(X) is linearized, the non-convex optimization function is transformed into a convex optimization function with a local closed solution, which can be written as:
[0078]
[0079] Where D′X=(D x XD z ,D y XD z )=(D1X,D2X), represents the Klaunec product, D1 and D2 are both matrix operators, D1X=D x XD z , D2X=D y XD z ,
[0080] The iterative solution based on the ALM framework in step (6) specifically includes the following steps:
[0081] (6a) Auxiliary variables P, Q, and V are introduced to further rewrite the optimization function:
[0082]
[0083] Among them, y1, y2, y3 are Lagrange multipliers, and β is the penalty parameter;
[0084] (6b) Convert the solution of the model equivalence problem in step (6a) into a separable problem and establish an iterative format for solving each unknown variable:
[0085]
[0086]
[0087]
[0088]
[0089]
[0090] (6c) Update the sub-problems about variables X, S, P, Q, and V respectively. The solution of each problem is as follows:
[0091] (6c1) Update the hyperspectral image X to be repaired, take the derivative of both sides of the equation, extract the elements containing X, and obtain the closed solution:
[0092]
[0093] in, represents the transpose of D1; β is the penalty parameter;
[0094] (6c2) Using the soft threshold shrinkage operator, the explicit solution of P is:
[0095]
[0096] (6c3) Similarly, using the soft threshold shrinkage operator, we get the explicit solution of Q:
[0097]
[0098] (6c4) By about l 1,0 The indicator function of the pseudonorm and its solution, find the explicit solution of the variable V:
[0099]
[0100] (6c5) Similar to solving P,Q, the explicit solution of S is obtained by using the soft threshold shrinkage operator:
[0101] S w+1 =soft(TX,λ1)
[0102] (6c6) Finally, the Lagrange multipliers are updated using the updated variables X, S, P, Q, and V using the following iterative format:
[0103]
[0104] In step (2), 1,0 The pseudo-norm is defined as follows:
[0105] Let y∈R m is a vector, indexing the set θ1,…,θ i ,…,θ n, 1n≤m satisfies the following conditions:
[0106] (7a) For each set θ i The elements contained are subsets of 1,…m;
[0107] (7b) For any i≠l,
[0108] (7c)
[0109] Then y's l 1,0 The pseudo-norm is defined as:
[0110] in, is a subvector of y, the elements of which are indexed by the set θ i Specify; ||·||1 is defined as the sum of the absolute values of all elements in the vector; ||·||0 is defined as the number of all non-zero elements in the vector;
[0111] In summary, 1,0 The pseudo-norm is defined as the number of sub-vectors whose l1 norm is not zero. Therefore, the mathematical equivalent form of the L0 gradient is written as:
[0112]
[0113] Where D = [D i ,D j ,D k ] are denoted as the periodic boundary conditions corresponding to the linear difference operators in the horizontal, vertical and spectral directions; B is a double diagonal matrix with elements on the diagonal being 0 or 1, which is used to force the difference value at the defined boundary to be 0.
[0114] In the step (6c4), 1,0 The indicator function of the pseudo-norm and its solution are:
[0115] (8a)l 1,0 The indicator function of the pseudo-norm is defined as:
[0116]
[0117] Among them, the vector y∈R m , is a non-negative integer, B is a given operator, and is a binary diagonal matrix whose diagonal elements are 0 or 1; the parameter γ is a positive constant, representing the number of all non-zero gradients, which is used to directly control the smoothness of the output image;
[0118] (8b) For the following optimization problem:
[0119]
[0120] The optimal solution is as follows:
[0121]
[0122] in,
[0123] Embodiment 1
[0124] In this embodiment, Washington DC Mall is used as a simulation experiment data set, and the Urban data set is used as a real experiment data set for the experiment. The noise addition method in the simulation experiment is: randomly adding Gaussian noise with a noise intensity of 0.1 to 0.2, salt and pepper noise with an intensity of 0.1 in each band, and randomly adding stripe noise with a number of 3 to 10 and a pixel width of 1 to 3 in 4 bands.
[0125] The different hyperspectral image denoising methods used for comparison include: Method 1: The denoising method based on block matching and collaborative filtering proposed in the literature "M. Maggioni, V. Katkovnik, K. Egiazarian, A. Foi. Nonlocal transform-domain filter for volumetric data denoising and reconstruction. IEEE Transactions on Image Processing, 2013, 22 (1): 119-133.", referred to as BM4D. Method 2: The denoising method based on low-rank matrix decomposition proposed in the literature "H. Zhang, W. He, L. Zhang, H. Shen, and Q. Yuan, Hyperspectral image restoration using low-rank matrix recovery, IEEE Transactions on Geoscience and Remote Sensing, 2014, 52 (8): 4729-4743." Method 3: The denoising method based on total variation and low-rank matrix decomposition proposed in the document "W. He, H. Zhang, L. Zhang, H. Shen. Total-variation-regularized low-rank matrix factorization for hyperspectral image restoration. IEEE Transactions on Geoscience and Remote Sensing, 2016, 54 (1): 178-188.", referred to as LRTV. Method 4: The denoising method based on low-rank tensor decomposition and total variation proposed in the document "Y. Wang, J. Peng, Q. Zhao, Y. Leung, X.-L. Zhao, and D. Meng, Hyperspectral image restoration via total variation regularized low-rank tensor decomposition, IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2018, 11 (4): 1227-1243." Existing hyperspectral image denoising methods such as BM4D, LRMR, LRTV, and LRTDTV can be adopted as needed, using the parameter settings recommended in the original methods.
[0126] All experiments were conducted on MATLAB 2017A. Figure 2 (a) shows an image of Washington DC Mall with a size of 200×200×160 and band 61 that is not polluted by noise. Figure 2 (b) is a low-quality image after adding noise. Figure 2 (c) is the BM4D denoising result, and some image details are lost. Figure 2 (d) is the LRMR denoising result, and some noise is not completely removed. Figure 2 (e) is the LRTV denoising result, and dead line noise still remains. Figure 2 (f) is the LRTDTV denoising result, and the image details are not clear. Figure 2 (g) is the L0-L 1-2 The denoising results of the restored image of the SSTV model. From the restoration of the green part in the image, the model has well preserved the texture and details of the image during the denoising process; from the building roof in the image, the edge of the image is relatively clear and is not affected by the denoising, and there is no obvious block artifact phenomenon.
[0127] Figure 3 (a) shows a real image of the HYDICE Urban dataset with a size of 207×207×210 on band 139. It can be seen that the image is seriously contaminated by stripe noise. Figure 3 (b) shows the BM4D denoising result, Figure 3 (c) shows the LRMR denoising result, and Figure 3 (d) shows the LRTV denoising result. Figure 3 (e) shows the LRTDTV denoising result, and Figure 3 (f) shows the L0-L 1-2 The denoising results of the restored image of the SSTV model. From the denoising results obtained by each method, Figure 3(b) to Figure 3(e) The denoising results of the present invention show that the stripe noise is completely removed, which further proves that the present invention has a significant effect on removing sparse noise such as stripe noise, while the image details are more completely preserved.
[0128] In summary, compared with the prior art, the present invention solves the defect that mixed noise cannot be completely removed or image details are lost during the denoising process, resulting in poor restored image quality; the present invention makes full use of the spatial and spectral gradient domain information of the hyperspectral image, and can retain important structural details of the image, such as edges, while efficiently removing noise. At the same time, it has good unbiasedness and stability, and obtains a hyperspectral image with good visual effects.
Claims
1. A hyperspectral image restoration method based on dual gradient constraints, characterized by: The method comprises the following steps in order: (1) Input the noise-contaminated hyperspectral image T∈R mn×d , the hyperspectral image T is decomposed into T = X + S + N, where X∈R mn×d is the original clean hyperspectral image not contaminated by noise, S∈R mn×d is sparse noise, N∈R mn×d is a Gaussian noise image, R represents the real number domain space, m and n are the spatial dimensions, and d is the spectral number; (2) Using pseudo l 1,0 The norm definition constructs a pseudo-l-based model that is mathematically equivalent to the L0 gradient model. 1,0 Empty Spectral L0 Gradient Model of Norm Forming the first constraint on the image gradient domain; (3) Constructing the three-dimensional total variation weighted difference regularization term L 1-2 SSTV, forms the second constraint on the image gradient domain; (4) Combine the spatial spectrum L0 gradient and L 1-2 The SSTV regularization term is used to establish a hyperspectral image restoration model with dual gradient constraints on the hyperspectral image. The restoration model is iteratively solved to a stable state under the ALM algorithm framework to obtain the denoised restoration image. The first constraint on the image gradient domain in step (2) specifically includes the following steps: (2a) Clearly define l 1,0 Pseudo-norm definition: the number of sub-vectors whose l1 norm is not zero; (2b) By l 1,0 The definition of the norm writes the mathematical equivalent of the L0 gradient model as: Where D = [D i ,D j ,D k ] is recorded as the periodic boundary conditions corresponding to the linear difference operators in the horizontal, vertical and spectral directions; B is a double diagonal matrix with elements on the diagonal being 0 or 1, which is used to force the difference value at the boundary to be 0; In step (3), the second constraint on the image gradient domain specifically includes the following steps: (3a) Introducing the one-dimensional difference operator D along the spectral direction z , extending the two-dimensional isotropic and anisotropic total variation model to the three-dimensional spectral isotropic Heterotropic Total Variation Model; (3b) With parameter α∈[0,1] as the weight factor, the following improved spatial spectrum total variation L is constructed: 1-2 SSTV Model:
2. The hyperspectral image restoration method with dual gradient constraints according to claim 1, characterized in that: In step (4), the hyperspectral image restoration model with dual gradient constraints on the hyperspectral image is as follows: Among them, λ1 and λ2 are adjustment parameters, which impose a norm on the sparse noise S to constrain it; D h is the horizontal difference operator; D v is the vertical difference operator; D z is a one-dimensional difference operator along the spectral direction.
3. The hyperspectral image restoration method based on dual gradient constraints according to claim 1 is characterized in that: The step (4) is solved under the ALM algorithm framework and specifically includes the following steps: (4a) Using the DCA algorithm to rewrite the optimization function, the non-convex optimization function is transformed into a convex optimization function with a local closed solution; (4b) Introducing auxiliary variables P, Q, and V, the augmented Lagrangian function of the optimization model is as follows: Among them, y1, y2, y3 are Lagrange multipliers, β is the penalty parameter, and c1 is a constant; (4c) The augmented Lagrangian function is transformed into sub-problems related to five variables, and an iterative format for solving each unknown variable is established; (4d) The soft threshold shrinkage algorithm is used to update the sub-problems regarding variables X, S, P, Q, and V to obtain the final denoised hyperspectral restored image.
